470
edits
m (→Kitten) |
|||
Line 188: | Line 188: | ||
== Kitten == | == Kitten == | ||
kitten.py is a command line tool designed to make gathering and basic host management tasks easier to do from the command line. You can get information about a host and also request to reboot it all in one command. | |||
A buildduty environment has been created on Cruncher to make it easier to work with all of the briarpatch tools (of which Kitten.py is one.) | |||
sudo su - buildduty | |||
cd /home/buildduty/production | |||
. bin/activate | |||
From their you can run: | |||
python kitten.py <hostname> | |||
For example: | |||
(production)[buildduty@cruncher production]$ python kitten.py -v talos-r3-xp-019 | |||
ERROR socket error establishing ssh connection | |||
Traceback (most recent call last): | |||
File "/home/buildduty/production/briar-patch/releng/remote.py", line 151, in __init__ | |||
self.client.connect(self.fqdn, username=remoteEnv.sshuser, password=remoteEnv.sshPassword, allow_agent=False, look_for_keys=True) | |||
File "/home/buildduty/production/lib/python2.6/site-packages/ssh/client.py", line 296, in connect | |||
sock.connect(addr) | |||
File "<string>", line 1, in connect | |||
error: [Errno 111] Connection refused | |||
talos-r3-xp-019: enabled | |||
farm: moz | |||
colo: scl1 | |||
distro: winxp | |||
pool: tests-scl1-windows | |||
trustlevel: try | |||
master: bm15-tests1-windows | |||
fqdn: talos-r3-xp-019.build.scl1.mozilla.com. | |||
PDU?: False | |||
IPMI?: False | |||
ERROR Unable to control host remotely | |||
reachable: False | |||
buildbot: | |||
tacfile: | |||
lastseen: unknown | |||
master: | |||
error: current master is different than buildbot.tac master [] | |||
The output up to the "ERROR" line shows all of the metadata for a host, and if the host was reachable via SSH the lines after would show the details of the buildbot environment and it's status. | |||
Kitten.py has the following commands: | |||
kitten.py [--info | -i ] [--reboot | -r] | |||
where --info will show only the metadata and will not try to SSH to the host and --reboot will try to graceful the buildbot and reboot the host if it appears to be idle or hung. | |||
== File a bug == | == File a bug == |
edits