rackspace/reddwarf — pull request #408 by TimSimpsonR (2012-03-03 20:34:22+00:00)
Title: Added guest functionality and integration tests for Guest upgrade API call.

* Commented most methods of AptGuest, moved some code around.
* Added "update_guest" RPC method and AptGuest::install_self_update which updates the guest.
* Pulled a method out of Interrogator so we could use it to find info on any process.
* Created an "execute_and_abandon" static method in Process that doesn't redirect stdin/ out.
* Clean the Process class up a bit by adding some resource handling classes.
* Changed the reddwarf CI file to build two versions of the guest, one of which is reports a different version string and has dishonest metadata indicating its an upgrade.
* Added the integration test for update guest by allowing the test conf file to state a shell script to call to make an upgrade available.
* Changed the management API to only return a 404 if the instance isn't found versus if any exception is raised from compute.api.
* Changed all calls to the "guest_status_upgrade" to use an instance of the GuestStatus class.
* Changed the description of GuestStatus to match the original mapping from an integer code to the power state description, then changed code to use the description of GuestStatus when updating the DB.