|
|
Line 360: |
Line 360: |
| == Rebooting Pandas == | | == Rebooting Pandas == |
|
| |
|
| To reboot a batch of pandas, specify '-D <panda>' for each:
| | Go to lifeguard ui http://mobile-imaging-010.p10.releng.scl1.mozilla.com/ui/lifeguard.html. Select the pandas you want to reboot. Select please_power_cycle in the drop down menu on the bottom left hand corner of the page. Select go. Their status should show rebooting. |
| | |
| cd tools; hg pull -u
| |
| python buildfarm/maintenance/manage_foopies.py -f buildfarm/mobile/devices.json -D panda-xxx -D panda-yyy reboot
| |
| | |
| Note that panda reboots can fail due to contention on the relay board used for them. Also, double-check the enabled/disabled state.
| |
| | |
| An alternative method:
| |
| | |
| * You can reboot from any machine that can access the panda-relay-* via ping, it's just TCP
| |
| * Soon they'll all be hooked up to BMM and you'll just be able to HTTP POST to reboot a panda
| |
| * relay.py just talks to the relay control board that the pandas' power supplies are wired through so it's a hard powercycle
| |
| | |
| * Method #1
| |
| ** Clone http://hg.mozilla.org/users/tmielczarek_mozilla.com/relay-control to get relay.py
| |
| ** Look in inventory for the panda you want to reboot, https://inventory.mozilla.org/en-US/#inventory, for example panda-0010: https://inventory.mozilla.org/en-US/systems/show/6812/
| |
| ** At the bottom of the page, you can see the server, bank and relay: panda-relay-001.build.scl1.mozilla.com:bank1:relay4
| |
| ** These are the parameters to relay.py: "python relay.py powercycle panda-relay-001.build.scl1.mozilla.com 1 4"
| |
| | |
| * Method #2
| |
| ** There's also a script to query the devices.json so you just have to specify the device name here https://hg.mozilla.org/build/braindump/reboot_panda.py. You'll need to update the path to the relay.py in the script.
| |
| ** ie. python reboot_panda.py -f ~/hg/tools/buildfarm/mobile/devices.json -d panda-0873
| |
| ** I reboot ranges of pandas like this
| |
| for ((c=615;c<=623;c++)) ; do echo panda-0$c; python reboot_panda.py -f ~/hg/tools/buildfarm/mobile/devices.json -d panda-0$c ; done
| |
|
| |
|
| ==Moving replacement pandas into production== | | ==Moving replacement pandas into production== |