access_ShutdownProcedures - ACCESS-NRI/accessdev-Trac-archive GitHub Wiki
#!html
<h1 style="text-align: center; color: blue"> Shutdown Procedures for Accessdev </h1>
This wiki page outlines the procedures for shutting down the accessdev machine cleanly in order for a rebuild or a puppet update. Administrators need to belong to the "access.admin" group in order to have the privilages to shutdown various services on this machine.
Users who are currently logged onto accessdev should be notify the machine will be shutdown. This can be done through the wall command. It is recommend this be broadcast 1hr, 30mins, 10min, 1min beforehand.
   wall "Accessdev will be shutdown in 30 mins"
   sudo /usr/local/umui/ghui3.0/bin/ghui_haltserver umui
   sudo service rosa stop
   sudo service httpd stop
To be completed
$ ./nova-boot --name accessdev-test.nci.org.au --repo [email protected]:p/access.dev/puppet --branch origin/master -- --image centos-6-20121101 --flavor 2 --key-name saw562-dev --security-groups ssh,umui,http
...
| c7007774-5a04-47de-90e6-ad970139208a | accessdev-test.nci.org.au | ACTIVE | private=10.0.0.18                  |
| c9961288-b12c-40c1-83f6-fe025e7c4e40 | accessdev-test.nci.org.au | ACTIVE | private=10.0.0.74, 192.43.239.151  |
Wait for puppet to complete, when it does the console-log will show
$ nova console-log c7007774-5a04-47de-90e6-ad970139208a
...
Finished catalog run in 233.57 seconds
user-data exit code: 0
CentOS release 6.3 (Final)
Kernel 2.6.32-279.11.1.el6.x86_64 on an x86_64
accessdev-test.nci.org.au login: 
nova delete c9961288-b12c-40c1-83f6-fe025e7c4e40
$ nova add-floating-ip c7007774-5a04-47de-90e6-ad970139208a 192.43.239.151