Commit Graph

2644 Commits

Author SHA1 Message Date
Rick Harris 601b19291a Calling compute api directly from OpenStack image create 2010-12-30 14:09:16 -06:00
Rick Harris 2a08bed775 Merging trunk 2010-12-30 11:26:21 -06:00
Todd Willey 0880026253 fix lp:695182, scheduler tests needed to DECLARE flag to run standalone. 2010-12-29 23:24:27 +00:00
Todd Willey e7be0b485e Fix scheduler testcase so it knows all flags and can run in isolation. 2010-12-29 17:01:34 -05:00
Ryan Lucio 9a84a2bb4a This branch fixes an issue where VM creation fails because of a missing flag definition for 'injected_network_template'. See Bug #695467 for more info. 2010-12-29 20:09:16 +00:00
Ryan Lucio 34f5bed4d9 Re-added flag definition for injected_network_template. Tested & verified fix in the same env as the original bug. 2010-12-29 11:24:42 -08:00
Rick Harris cc906e48c1 Updating Authors 2010-12-29 10:35:29 -06:00
Cerberus 90acbd3dd8 Changes and error fixes to help ensure basic parity with the Rackspace API. Some features are still missing, such as shared ip groups, and will be added in a later patch set. 2010-12-29 06:55:58 +00:00
Ewan Mellor 71be236ef4 Bug #694880: nova-compute now depends upon Cheetah even when not using libvirt
Only import Cheetah when needed, as we do already with libvirt and libxml2.  This ensures that users of other virt backends don't need Cheetah to run nova-compute.

Resubmitted with pep8 violations fixed.
2010-12-29 02:24:08 +00:00
Ewan Mellor 380b28f894 Fix pep8 violations. 2010-12-29 01:58:04 +00:00
Cerberus 99a228a8ef removed superfluous line 2010-12-28 17:34:51 -06:00
Soren Hansen b7b2760cd7 Address bug #695157 by using a blank request class and setting an empty request path.
This fixes the test suite in environments with webob >= 1.0 (e.g. Ubuntu Natty).

(Thanks for Greg Holt for the suggestion)
2010-12-28 23:09:18 +00:00
Soren Hansen 8ee15b6e93 Address bug #695157 by using a blank request class and setting an empty request path. 2010-12-28 23:25:50 +01:00
Cerberus 79abcb065a Merge from trunk 2010-12-28 15:49:36 -06:00
Cory Wright abc05ff27a This commit introduces scripts to apply XenServer host networking protections. 2010-12-28 21:49:33 +00:00
Cerberus 902df6eb49 Whoops 2010-12-28 15:48:48 -06:00
Cory Wright 8d03539e15 Update .mailmap with both email addresses for Ant and myself 2010-12-28 16:35:56 -05:00
Rick Harris f27c7589e6 Merging trunk 2010-12-28 13:01:54 -06:00
Rick Harris 96384b6899 Add some basic snapshot tests 2010-12-28 12:53:32 -06:00
Cory Wright 3a3987d3ac merge trunk 2010-12-28 10:50:18 -05:00
Ewan Mellor 675ca7c5f3 Bug #694890: run_tests.sh sometimes doesn't pass arguments to nosetest
Change the argument parsing in run_tests.sh so that we explicitly gather
the arguments that aren't meant for run_tests.sh, and pass them on to
nosetests.
2010-12-28 12:37:33 +00:00
Trey Morris d3d0e855d8 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.power_states which libvirt doesn't use and updated the xenapi power mapping to use it for suspended state. I also updated the mappings in nova.api.openstack.servers to map PAUSED to "error" and SUSPENDED to "suspended". Thoughts there are that we don't currently (openstack API v1.0) use pause, so if somehow an instance were to be paused an error occurred somewhere, or someone did something in error. Either way asking the xenserver host for the status would show "paused". Support for more power states needs to be added to the next version of the openstack API.
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.openstack.servers after pulling my branch. I made pause() and unpause() immediately return self.suspend() and self.resume(). Afterwards cloudserver pause (id) and cloudserver unpause (id) will perform the suspend/resume, and you can watch the compute worker log for info on what is happening.

SAMPLE LOG OUTPUT FOR PAUSE/UNPAUSE +++++++++++++++++++++
DEBUG:root:instance 1178831109: pausing
INFO:root:Task OpaqueRef:ba3b1595-0d70-574a-aaca-27442d04be87 status: success.
INFO:root:(VM_UTILS) xenserver vm state -> |Paused|
INFO:root:(VM_UTILS) xenapi power_state -> |3|
DEBUG:root:instance 1178831109: unpausing
INFO:root:Task OpaqueRef:2d9cb792-0ce5-be23-6c50-3dc52cf1535c status: success.
INFO:root:(VM_UTILS) xenserver vm state -> |Running|
INFO:root:(VM_UTILS) xenapi power_state -> |1|

SAMPLE LOG OUTPUT FOR SUSPEND/RESUME +++++++++++++++++++++
DEBUG:root:instance 1178831109: suspending
INFO:root:Task OpaqueRef:bc5d51da-922f-c9fb-f07c-aaa027fde601 status: success.
INFO:root:(VM_UTILS) xenserver vm state -> |Suspended|
INFO:root:(VM_UTILS) xenapi power_state -> |7|
DEBUG:root:instance 1178831109: resuming
INFO:root:Task OpaqueRef:4e5a3af8-baed-c144-30ea-63637390f6c8 status: success.
INFO:root:(VM_UTILS) xenserver vm state -> |Running|
INFO:root:(VM_UTILS) xenapi power_state -> |1|
2010-12-28 05:51:31 +00:00
Trey Morris 32bfe6acdf fixed a line length 2010-12-28 05:14:21 +00:00
Ewan Mellor eab0ce934e Bug #694880: nova-compute now depends upon Cheetah even when not using libvirt
Only import Cheetah when needed, as we do already with libvirt and libxml2.
This ensures that users of other virt backends don't need Cheetah to run
nova-compute.
2010-12-28 01:37:04 +00:00
Ewan Mellor 821fc6b5bc Bug #694890: run_tests.sh sometimes doesn't pass arguments to nosetest
Change the argument parsing in run_tests.sh so that we explicitly gather
the arguments that aren't meant for run_tests.sh, and pass them on to
nosetests.
2010-12-28 01:09:42 +00:00
Armando Migliaccio a40f3e0b14 fix bug #lp694311 2010-12-28 00:41:22 +00:00
Cerberus 31d3aed581 Typo fix 2010-12-27 17:35:59 -06:00
Cerberus ef248060b5 Merge from trunk 2010-12-27 17:30:23 -06:00
Cerberus 431c54ba76 Renamed based on feedback from another branch 2010-12-27 17:29:45 -06:00
Trey Morris 7cc68042a9 missed a couple of gettext _() 2010-12-27 22:59:08 +00:00
Trey Morris 6a36c901b4 Cleans up nova.api.openstack.images and fix it to work with cloudservers api. Previously "cloudservers image-list" wouldn't work, now it will. There are mappings in place to handle s3 or glance/local image service. In the future when the local image service is working, we can probably drop the s3 mappings. 2010-12-27 22:02:57 +00:00
Rick Harris 8d522838ac Fixing snapshots, pep8 fixes 2010-12-27 15:42:30 -06:00
Trey Morris 243ba12a90 translate status was returning the wrong item 2010-12-27 20:39:48 +00:00
Rick Harris 748aa8089e Fixing bad merge 2010-12-27 14:23:53 -06:00
Trey Morris e86f765181 inst -> item 2010-12-27 20:17:53 +00:00
Trey Morris 0c983d1f3c syntax error 2010-12-27 20:11:36 +00:00
Trey Morris d2ec717f7f renaming things to be a bit more descriptive 2010-12-27 20:06:45 +00:00
Rick Harris d22b5f10be Merging trunk 2010-12-27 13:45:57 -06:00
Cerberus b879c74604 backup schedule changes 2010-12-27 13:20:37 -06:00
Rick Harris 54778eacd5 Merging trunk, fixing failed tests 2010-12-27 12:13:57 -06:00
Cerberus 3490fde00f A few fixes 2010-12-27 12:08:22 -06:00
Trey Morris 4040159036 removed \ 2010-12-27 17:18:43 +00:00
Cory Wright 002bbfa7a6 Moving README to doc/networking.rst per recommendation from Jay Pipes 2010-12-27 12:06:36 -05:00
Trey Morris 4b271b9e25 couple of pep8s 2010-12-27 16:41:41 +00:00
Cory Wright d009dcbfb4 merge trunk 2010-12-27 11:27:46 -05:00
Salvatore Orlando 0ef58bac84 Fixed after Jay's review.
Integrated code from Soren (we now use the same 'magic number' for images without kernel & ramdisk.
2010-12-27 14:06:50 +00:00
Salvatore Orlando c2e645416d Fixed pep8 errors 2010-12-27 10:04:25 +00:00
Armando Migliaccio 1c00947aa8 logs inner exception in nova/utils.py->import_class 2010-12-26 14:08:38 +00:00
Armando Migliaccio bd6a3cb1ac Fix Bug #693963 2010-12-25 12:47:20 +00:00
Armando Migliaccio f361891d10 remove requirement of sudo on tests 2010-12-24 19:17:02 +00:00