commit b041160c8d56f657059743bc5a0e6dbefc27ddd6
Author: Matt Riedemann <email address hidden>
Date: Wed Nov 28 12:52:17 2018 -0500
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 95cbc35b0bdae0de15569bc35fadbcf970da5b9e)
(cherry picked from commit 315d9fab7aaa6b9835e80f5f56b49b44d382ca1f)
Reviewed: https:/ /review. openstack. org/638803 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b041160c8d5 6f657059743bc5a 0e6dbefc27ddd6
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit b041160c8d56f65 7059743bc5a0e6d befc27ddd6
Author: Matt Riedemann <email address hidden>
Date: Wed Nov 28 12:52:17 2018 -0500
Provide a useful error message when trying to update non-compute services
Starting in Pike, we disallowed trying to update (enable/ disable/ force down) nova-compute services because of multi-cell support using host mappings
non-
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: I44f09aec60b0b1 8c458f9ba6d8b72 5db962e9cc7 e15569bc35fadbc f970da5b9e) 835e80f5f56b49b 44d382ca1f)
Closes-Bug: #1805164
(cherry picked from commit 95cbc35b0bdae0d
(cherry picked from commit 315d9fab7aaa6b9