ReferencePlatforms/Test/MountainLion: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
 
Line 5: Line 5:


= Re-imaging a machine =
= Re-imaging a machine =
Assuming the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. [https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=34014655 Instructions are in mana.]
If the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. [https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=34014655 Instructions are in mana.]
If the machine is idle, you can reboot it immediately.
If the machine is idle, you can reboot it immediately.


Until we figure out the cause of {{bug|902903}}, netbooting Lion slaves need a second reboot once they come back up in order to start buildbot properly:
Assuming the machine is enabled in [https://secure.pub.build.mozilla.org/slavealloc/ui/#slaves slavealloc], it will enter production automatically.
ps auxww | grep buildbot | grep -v grep || sudo reboot


= Post-imaging steps =  
= Post-imaging steps =  

Latest revision as of 18:30, 14 August 2013

Initial setup

If the machine is new or offline, DCOps will need to physically boot, attach a keyboard, and netboot.

Re-imaging a machine

If the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. Instructions are in mana. If the machine is idle, you can reboot it immediately.

Assuming the machine is enabled in slavealloc, it will enter production automatically.

Post-imaging steps

None at present.

Rebooting via PDU

The slaves are on a PDU, for example. Find the host in inventory, note its PDU and PDU-outlet and the select reboot for the outlet in question here. See this article for more details.

Connecting via VNC

To connect via vnc on a mac, run this command to enable vnc for user cltbld. There is a bug 733534 to fix this, however vnc is apparently hosed in Mountain Lion.

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
  -configure -allowAccessFor -specifiedUsers
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
  -activate -configure -access -on -users cltbld -privs -all -restart -agent -menu
  • Finder -> Go -> Connect to Server -> vnc://talos-mtnlion-r5-001.test.releng.scl3.mozilla.com -> Connect
  • login with cltbld credentials
  • connect to virtual window

There's an open bug 779678 to configure the 10.8 slaves so you can connect via vnc on Linux.

You can't sudo to root from cltbld, you must ssh directly as root.