access_IntermediateChangesAccessdev - ACCESS-NRI/accessdev-Trac-archive GitHub Wiki
Notes about making intermediate changes to Accessdev
Here are some notes I made when attempting to make changes to accessdev. This is not a guide and should be used in conjunction with the NCI document "!ACCESSdev operation". Changes should be tested on accessdev-test.nci.org.au before being applied to accessdev.nci.org.au.
To shutdown accessdev-test.nci.org.au for a rebuild
- Remove the floating ip by:
 
$ nova remove-floating-ip accessdev-test.nci.org.au 192.43.239.151
- 
Keep running
nova listuntil you see the floating ip address disappear from accessdev-test - 
Once the floating ip address disappears, delete the instance by:
 
$ nova delete accessdev-test.nci.org.au
Merging branches for intermediate changes
You will need to create a personal branch abc123/accessdev-test rather than "accessdev-test" as stated in section 4.2 of ACCESSdev operations. Replace "abc123" with your user id.
$ git branch abc123/accessdev-test
$ git checkout abc123/accessdev-test
$ git push -u origin abc123/accessdev-test
Create a branch that tracks the remote branch you are interested in. For example a branch that tracks scott's motd branch.
$ git checkout -b abc123/test origin/saw562/motd
If everything is ok, you can merge the branch that tracks "origin/saw562/motd" by
$ git checkout abc123/accessdev-test
$ git merge abc123/test
The branch abc123/accessdev-test should now include changes from Scott's branch saw562/motd.
You need to push the changes back to server before you can boot accessdev-test.
$ git push
You should be able to boot accessdev-test.nci.org.au with your branch abc123/accessdev-test. (Make sure you replace both references to abc123 with your user id.) It will take about 10-12 minutes to fully boot.
tools/nova-boot --name accessdev-test.nci.org.au --ip 192.43.239.151 --repo [email protected]:p/access.dev/puppet
  --branch abc123/accessdev-test -- --image centos -6-20121101 --flavor 2 --key-name abc123 --security-groups ssh,ping
You can see how the booting is going by running
nova console-log accessdev-test.nci.org.au
Unfortunately, I couldn't go any further than this step. accessdev-test.nci.org.au won't boot correctly at this stage. The node will boot if I don't specify an ip address, allowing some limited testing.
I haven't tried merging my branch ibc599/accessdev-test onto the main trunk due to the problems with booting accessdev-test.
There are further steps in "AccessDev Operation" regarding how to delete branches once finished.