Comment 11 for bug 1805164

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/queens)

Reviewed: https://review.openstack.org/638803
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b041160c8d56f657059743bc5a0e6dbefc27ddd6
Submitter: Zuul
Branch: stable/queens

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)