devplayground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devplayground [2024/05/22 18:51] – pdonnell | devplayground [2026/09/14 14:23] (current) – djgalloway | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ^ Name ^ Notes ^ | ^ Name ^ Notes ^ | ||
| - | | [[hardware: | ||
| - | | [[hardware: | ||
| - | | [[hardware: | ||
| | [[hardware: | | [[hardware: | ||
| | [[hardware: | | [[hardware: | ||
| Line 19: | Line 16: | ||
| ==== Playing Nice ==== | ==== Playing Nice ==== | ||
| - | Developer playgrounds should be able to build the '' | + | Developer playgrounds should be able to build the '' |
| Using the developer machines to look at teuthology QA artifacts is encouraged. Try to avoid using a text editor to look at large (1GB+) debug logs as this can be RAM intensive/ | Using the developer machines to look at teuthology QA artifacts is encouraged. Try to avoid using a text editor to look at large (1GB+) debug logs as this can be RAM intensive/ | ||
| Line 48: | Line 45: | ||
| ******************************************************************************* | ******************************************************************************* | ||
| </ | </ | ||
| + | |||
| ==== Configuring CephFS Mounts ==== | ==== Configuring CephFS Mounts ==== | ||
| - | The following | + | The following |
| - | < | ||
| - | #!/bin/bash | ||
| - | HOST=" | + | ==== Teuthology scheduling ==== |
| - | function run { | + | Configure the dev playground node to schedule jobs: |
| - | printf ' | + | |
| - | " | + | |
| - | } | + | |
| - | function mssh { | + | < |
| - | | + | sudo tee / |
| - | } | + | default_machine_type: |
| + | queue_host: teuthology.front.sepia.ceph.com | ||
| + | queue_port: 11300 | ||
| + | active_machine_types: | ||
| + | - smithi | ||
| + | | ||
| + | - gibba | ||
| + | EOF | ||
| + | </ | ||
| - | mssh sudo mkdir -p -m 755 /etc/ceph | + | Note: killing a run is (generally) still necessary on [[services:teuthology|teuthology |
| - | ssh reesi001.front.sepia.ceph.com 'env CEPH_KEYRING=/ | + | |
| - | mssh sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com 'cat / | + | |
| - | mssh sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com ' | + | |
| - | mssh sudo chmod 600 / | + | |
| - | + | ||
| - | + | ||
| - | function genmount { | + | |
| - | local secret=$(mssh sudo cat / | + | |
| - | # create mountpoint | + | |
| - | mssh sudo mkdir -p -- " | + | |
| - | # make the mountpoint directory (shadowed) unwriteable to prevent accidental modification | + | |
| - | mssh sudo chmod 000 -- " | + | |
| - | # set it immutable to enforce that even for root | + | |
| - | mssh sudo chattr +i -- " | + | |
| - | printf ' | + | |
| - | } | + | |
| - | + | ||
| - | genmount /teuthology-archive /teuthology | + | |
| - | genmount / /scratch scratch | + | |
| - | genmount / /postfile postfile | + | |
| - | + | ||
| - | mssh sudo systemctl daemon-reload | + | |
| - | mssh sudo mount / | + | |
| - | mssh sudo mount /scratch | + | |
| - | mssh sudo mount /postfile | + | |
| - | mssh sudo ln -s /teuthology /a | + | |
| - | </ | + | |
| ==== Configuring LVM volumes using spare disks ==== | ==== Configuring LVM volumes using spare disks ==== | ||
| Line 128: | Line 100: | ||
| chmod 000 $HOME/build | chmod 000 $HOME/build | ||
| sudo chattr +i $HOME/build | sudo chattr +i $HOME/build | ||
| - | echo "/ | + | echo "/ |
| - | sudo systemctl daemon reload | + | sudo systemctl daemon-reload |
| sudo mount $HOME/build | sudo mount $HOME/build | ||
| </ | </ | ||
| Line 150: | Line 122: | ||
| < | < | ||
| - | wipefs -a / | + | wipefs -a / |
| + | shred -v -n 0 -z -s 16M / | ||
| + | env OSD=8 ~/ | ||
| + | | ||
| </ | </ | ||
| Feel free to make any other volumes that you require. | Feel free to make any other volumes that you require. | ||
devplayground.1716403904.txt.gz · Last modified: by pdonnell
