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
- 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
Now that the rpc API includes more than RabbitMQ, update a filename and
directory name to be 'rpc' instead of 'rabbit'.
Change-Id: Ib7fcccdd77fae128b6de3ee490fee3d6325ca7c5
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
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
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
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/4848https://review.openstack.org/4873https://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
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
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