Commit Graph

13126 Commits

Author SHA1 Message Date
Andrew Clay Shafer 3d4213d1fa Reset instance to ACTIVE when no hosts found
bug 928521

modified nova/scheduler/manager.py to reset vm_state to ACTIVE and set
task_state to None when prep_resize raises a NoHostsFound

refactored run_instance and prep_resize so they don't go through
_schedule and now must be implemented in driver

Changed behavior to set vm_state to error on any other exception in
prep_resize.

Change behavior to change instance vm_state to ERROR on exceptions

Added tests that the vm_state gets updated

Added tests that schedule_prep_resize and schedule_run_instance
have no implementation in the Driver base class

Had to adjust methods and tests for Multi scheduler to reflect the
new Scheduler contract

Change-Id: Ibcac7ef0df3456793a2132beb7a711849510da80
2012-03-06 16:24:18 -05:00
Jenkins 922420faf3 Merge "Better glance exception handling" 2012-03-06 21:02:10 +00:00
Jenkins 31b0e17d7b Merge "Rename files/dirs from 'rabbit' to 'rpc'." 2012-03-06 20:50:59 +00:00
Jenkins 40f541270c Merge "Change references to RabbitMQ to include Qpid." 2012-03-06 20:39:58 +00:00
Jenkins 5fb0bdd7bf Merge "Check all migrations have downgrade in test_misc" 2012-03-06 20:29:15 +00:00
Jenkins ce016b2772 Merge "Rename DistributedScheduler as FilterScheduler" 2012-03-06 20:10:21 +00:00
Jenkins 225286d8bb Merge "Fixes for ec2 images" 2012-03-06 19:59:21 +00:00
Jenkins 80eaaad9b3 Merge "Ensures that we don't exceed iptables chain max" 2012-03-06 19:48:32 +00:00
Jenkins a231acabb6 Merge "Fixes bug 942556 and bug 944105" 2012-03-06 19:37:21 +00:00
Jenkins 342778997f Merge "Test creating a server with metadata key too long." 2012-03-06 19:26:26 +00:00
Jenkins 4bbc792624 Merge "Fixing incorrect use of instance keyword in logging." 2012-03-06 19:13:36 +00:00
Jenkins 0dcf6072e0 Merge "Provide a provider for boto.utils" 2012-03-06 19:02:33 +00:00
Jenkins 7459e8f397 Merge "Get rid of all of the autodoc import errors." 2012-03-06 18:50:31 +00:00
Jenkins cab9a483e8 Merge "Decode nova-manage args into unicode." 2012-03-06 18:39:05 +00:00
Jenkins ca8effc574 Merge "No longer ignoring man/novamanage" 2012-03-06 18:28:07 +00:00
Mark Washenberger f56cef93ea Better glance exception handling
- Adds a conversion step that turns glance exceptions into nova
  exceptions
- Converts Invalid to HTTPBadRequest in /images and /images/detail,
  fixing bug 944846
- Makes stub glance client return glance exceptions instead of nova
  exceptions
- Rebased off of http://review.openstack.org/4788 to pick up
  MissingCredentialError handling as well, and added a test
- A few small, miscellaneous testing fixes for issues I noticed

Change-Id: I88eebfe7a7ac21cc5cd84ad84d64b311ddccf91e
2012-03-06 13:24:08 -05:00
Jenkins 700459891e Merge "sm volume driver: fix backend adding failure" 2012-03-06 18:16:46 +00:00
Jenkins 01dbefb085 Merge "Nova options tool enhancements" 2012-03-06 18:05:16 +00:00
Russell Bryant 2511341840 Rename files/dirs from 'rabbit' to 'rpc'.
Now that the rpc API includes more than RabbitMQ, update a filename and
directory name to be 'rpc' instead of 'rabbit'.

Change-Id: Ib7fcccdd77fae128b6de3ee490fee3d6325ca7c5
2012-03-06 12:34:08 -05:00
Russell Bryant b6f6e1b7f4 Change references to RabbitMQ to include Qpid.
Update the documentation that referred to RabbitMQ to clarify that Qpid
can be used, as well.

Change-Id: I3abe32c2074bfdd3b5129ea65e9ca36cc9555c27
2012-03-06 12:32:02 -05:00
Johannes Erdfelt 52b65f2f14 Avoid running code that uses logging in a thread
Fixes bug 946687

This avoids problems with code that uses logging from running in a thread
which isn't necessary for unit tests anyway.

Change-Id: I9c296c3c46317c9aaba7f1a92cd565a35682ce23
2012-03-06 16:56:59 +00:00
Derek Higgins f9c0f1e7ab No longer ignoring man/novamanage
Fixes Bug #948165
man/novamanage is a manpage and should be included

Change-Id: I497b3d2a348dc74f8ebcd08e628a6b9324dd3a8f
2012-03-06 16:41:04 +00:00
Alex Meade b425676da9 Fixing incorrect use of instance keyword in logging.
Fixes bug 948154

Change-Id: I8adc48482c26528d1e671c8e038c23caaa0f861d
2012-03-06 16:28:00 +00:00
Doug Hellmann c16cd04cf6 Fix rst formatting and cross-references
blueprint sphinx-doc-cleanup
bug 944385

- Fix formatting and markup issues that produce error messages
- Update TOC lists for missing/new files
- Fix a few links
- Update instructions with dependencies for building the documentation
- Updated base on review comments from oubiwann to fix trailing whitespace in modified files

Change-Id: I589152bfab9c543d2b11fa8bed2344259aa90675
2012-03-06 08:08:25 -05:00
Hengqing Hu db056da982 Provide a provider for boto.utils
Fixes bug #945355

Change-Id: I0b09f6d8d2373f52359806945de467585421fb65
2012-03-06 17:44:31 +08:00
Jenkins 8979743653 Merge "Allows new style config to be used for --flagfile" 2012-03-06 04:34:17 +00:00
Monty Taylor 702a4743f0 Get rid of all of the autodoc import errors.
This hasn't worked right in a bazillion years.

Change-Id: I4db20ce97f920cdb7254d51e18a0630b0283b39d
2012-03-05 20:22:51 -08:00
Jenkins 9bb2a33590 Merge "Raise 409 when rescuing instance in RESCUE mode" 2012-03-06 03:08:00 +00:00
Joe Gordon a81130b1a9 Rename DistributedScheduler as FilterScheduler
Change-Id: I1091609d5997c4ba9c26a3f2426496ff7f1e64fa
2012-03-05 17:53:57 -08:00
Vishvananda Ishaya 9627c88d68 Allows new style config to be used for --flagfile
* includes tests
 * fixes bug 947549

Change-Id: Ibf319ea75a2d6156c5d8f1112cd58a33e5a98fe0
2012-03-05 17:27:44 -08:00
OpenStack Jenkins 43b52f7bd2 Merge "Imported Translations from Launchpad" 2012-03-06 00:45:21 +00:00
Joe Gordon e8bc00eff2 Add assertRaises check to tools/hacking.py as N202
Change-Id: I25113bcc73ff642cae146f0558f319684b4568d0
2012-03-05 14:09:57 -08:00
Jenkins 5f9cee0c9c Merge "Retry download_vhd with different glance host each time" 2012-03-05 20:05:08 +00:00
Philip Knouff 913ecb84d2 Raise 409 when rescuing instance in RESCUE mode
fixes bud #940581

Change-Id: I8c6b600d36a35ef4e32f35b888f8f2eb8effebcd
2012-03-05 19:42:32 +00:00
Jenkins 84dc739b28 Merge "bug #941794 VIF and intf drivers for Quantum Linux Bridge plugin" 2012-03-05 19:21:21 +00:00
Jenkins f31d94d272 Merge "Only raw string literals should be used with _()" 2012-03-05 18:34:12 +00:00
Jenkins 2badee254b Merge "Remove unnecessary code in test setUp/tearDown" 2012-03-05 18:15:40 +00:00
Jenkins f31ab49e31 Merge "Log a certain rare instance termination exception" 2012-03-05 17:10:53 +00:00
Jenkins c4e5d655e6 Merge "populate glance 'name' field through ec2-register" 2012-03-05 16:23:53 +00:00
Jenkins 6122a3bab5 Merge "Allows --flat_interface flag to override db" 2012-03-05 16:13:14 +00:00
Mark Washenberger 7ab0489bc4 Log a certain rare instance termination exception
- Clean up logging per Michael Still's comments

Change-Id: I3b7e647dde582dca4644b557bb30251e31644c17
2012-03-05 10:37:46 -05:00
Johannes Erdfelt 6b49f4e66c Remove unnecessary code in test setUp/tearDown
Change-Id: I41c033dceafdf1ce39ff3dc11f11b54a909cec12
2012-03-04 23:45:45 +00:00
Jenkins e6c21648d5 Merge "Added docs on MySQL queries blocking main thread." 2012-03-04 23:37:38 +00:00
OpenStack Jenkins 83c3ee9187 Imported Translations from Launchpad
Change-Id: Icea78b1823c1948639da73552b156a6bdeef3ea3
2012-03-04 23:02:22 +00:00
Johannes Erdfelt 534a894ad1 Only raw string literals should be used with _()
Fix a number of places where formatted strings were used with _() (causing
gettext to not match the string) or variables with _() (causing xgettext
to not extract a string)

Also, there's no value in internationalizing an empty string

Change-Id: Iac7dbe46eeaa8ddf03c2a357ecd52f69aa8678aa
2012-03-04 22:10:59 +00:00
Johannes Erdfelt 8813ab185d assertRaises(Exception, ...) considered harmful
Expecting that Exception is raised can end up passing an a test when an
unexpected error occurs. For instance, errors in the unit test itself
can be masked:

https://review.openstack.org/4848
https://review.openstack.org/4873
https://review.openstack.org/4874

Change a variety of unit tests to expect a more specific exception so
we don't run into false positive tests in the future.

Change-Id: Ibc0c63b1f6b5574a3ce93d9f02c9d1ff5ac4a8b0
2012-03-04 17:22:36 +00:00
Lorin Hochstein d304d828d0 Added docs on MySQL queries blocking main thread.
Added to the RST docs to describe how queries to MySQL will block a nova
service.

Change-Id: I4ae209e2827978cc5469162d386197f2e46b342d
2012-03-03 20:56:24 -05:00
Johannes Erdfelt d0cae6b5a1 Fix test_unrescue to actually test unrescue
Another case where assertRaises(Exception, ...) masked a bug in the
unit test. The unrescue method takes another argument now. When
TypeError was raised, it was caught by the broad match to Exception
as well.

Change-Id: I6b948baa41f2061ea413e14ae6aba054e6f22ecf
2012-03-03 16:18:10 +00:00
Sumit Naiksatam 3c62c9d65d bug #941794 VIF and intf drivers for Quantum Linux Bridge plugin
Drivers have been reviewed earlier by Quantum reviewers and are being
moved here on their request.

Also incorporating Soren,Dan, pp-draigbrady and Vish's suggestions.

Change-Id: If04807c473542e2f0259faa6d243c3e6e9539f64
2012-03-03 01:38:12 -08:00
Jenkins f3a7149a85 Merge "Fix test_migrate_disk_and_power_off_exception" 2012-03-03 07:06:45 +00:00