Merge lp:~tr3buchet/nova/xs_suspend into lp:~hudson-openstack/nova/trunk
Status: | Merged |
---|---|
Approved by: | Jay Pipes |
Approved revision: | 479 |
Merged at revision: | 497 |
Proposed branch: | lp:~tr3buchet/nova/xs_suspend |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
360 lines (+175/-9) 12 files modified
nova/api/openstack/__init__.py (+2/-0) nova/api/openstack/servers.py (+26/-3) nova/compute/api.py (+18/-0) nova/compute/manager.py (+33/-0) nova/compute/power_state.py (+3/-1) nova/tests/api/openstack/test_servers.py (+30/-2) nova/tests/test_compute.py (+10/-2) nova/virt/fake.py (+12/-0) nova/virt/libvirt_conn.py (+8/-0) nova/virt/xenapi/vm_utils.py (+5/-1) nova/virt/xenapi/vmops.py (+20/-0) nova/virt/xenapi_conn.py (+8/-0) |
To merge this branch: | bzr merge lp:~tr3buchet/nova/xs_suspend |
Related bugs: | |
Related blueprints: |
XenServer Suspend
(High)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Matt Dietz (community) | Approve | ||
Review via email: mp+44550@code.launchpad.net |
Description of the change
I've added suspend along with a few changes to power state as well. I can't imagine suspend will be controversial but I've added a new power state for "suspended" to nova.compute.
merge notes:
merge with trunk went well locally
unittests passed locally
testing of suspend succeeded locally
Notes for testing:
Suspending an instance requires PV drivers.
If using the cloudservers API, suspend and resume are not implemented. I tested by modifying in place nova.api.
SAMPLE LOG OUTPUT FOR PAUSE/UNPAUSE +++++++
DEBUG:root:instance 1178831109: pausing
INFO:root:Task OpaqueRef:
INFO:root:
INFO:root:
DEBUG:root:instance 1178831109: unpausing
INFO:root:Task OpaqueRef:
INFO:root:
INFO:root:
SAMPLE LOG OUTPUT FOR SUSPEND/RESUME +++++++
DEBUG:root:instance 1178831109: suspending
INFO:root:Task OpaqueRef:
INFO:root:
INFO:root:
DEBUG:root:instance 1178831109: resuming
INFO:root:Task OpaqueRef:
INFO:root:
INFO:root:
It is true that xenapi-unittest is a throw's stone away from being in trunk, but I would encourage start writing unit tests for xenapi along with this branch. During my last merges a number of changes broke the ones written in lp:~armando-migliaccio/nova/xenapi-unittests and that helped me a lot to figure out how to fix things.
Plus, it would be useful very useful for us getting an early feedback on how the fake xenapi works in practice for everyone.
Thanks,
Armando