Confirmed users
1,989
edits
| Line 291: | Line 291: | ||
== Rebooting Pandas == | == Rebooting Pandas == | ||
* You can reboot from any machine that can access the panda-relay-* via ping, it's just TCP | |||
* You can | |||
* Soon they'll all be hooked up to BMM and you'll just be able to HTTP POST to reboot a panda | * 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 | * relay.py just talks to the relay control board that the pandas' power supplies are wired through so it's a hard powercycle | ||
* There's also a patch for create_dirs.sh queries the devices.json so you just have to specify the device name here https://bug807415.bugzilla.mozilla.org/attachment.cgi?id=683163 | |||
* 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 patch for create_dirs.sh queries the devices.json so you just have to specify the device name here https://bug807415.bugzilla.mozilla.org/attachment.cgi?id=683163 | |||
** ie. python reboot_panda.py -f ~/hg/tools/buildfarm/mobile/devices.json -d panda-0873 | ** ie. python reboot_panda.py -f ~/hg/tools/buildfarm/mobile/devices.json -d panda-0873 | ||
** I reboot ranges of pandas like this | |||
mobile kmoir$ 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== | ||