nova/nova/tests/unit/api
Matt Riedemann b041160c8d Provide a useful error message when trying to update non-compute services
Starting in Pike, we disallowed trying to update (enable/disable/force down)
non-nova-compute services because of multi-cell support using host mappings
to lookup service records, and simply because disabling non-compute services
doesn't do anything.

However, before microversion 2.53, the error the user gets back is confusing:

  HTTP exception thrown: Host 'p024.domain.com' is not mapped to any cell

This change provides a useful error message in this case and also changes
the 404 response to a 400 response to align with the type of error and the
behavior of the 2.53 microversion.

Change-Id: I44f09aec60b0b18c458f9ba6d8b725db962e9cc7
Closes-Bug: #1805164
(cherry picked from commit 95cbc35b0b)
(cherry picked from commit 315d9fab7a)
2019-02-23 10:13:45 +00:00
..
openstack Provide a useful error message when trying to update non-compute services 2019-02-23 10:13:45 +00:00
__init__.py
test_auth.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
test_compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
test_wsgi.py Capture stdout in for test_wsgi:test_debug 2016-09-26 06:45:08 -04:00