← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1805164] Re: Confusing error message when trying to disable non-nova-compute service

 

Reviewed:  https://review.openstack.org/620667
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=95cbc35b0bdae0de15569bc35fadbcf970da5b9e
Submitter: Zuul
Branch:    master

commit 95cbc35b0bdae0de15569bc35fadbcf970da5b9e
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
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


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1805164

Title:
  Confusing error message when trying to disable non-nova-compute
  service

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) pike series:
  Triaged
Status in OpenStack Compute (nova) queens series:
  Triaged
Status in OpenStack Compute (nova) rocky series:
  Triaged

Bug description:
  I'm trying to disable nova services, but the requests fail.

  python-nova-17.0.7-1.el7.noarch
  openstack-nova-api-17.0.7-1.el7.noarch
  openstack-nova-novncproxy-17.0.7-1.el7.noarch
  openstack-nova-placement-api-17.0.7-1.el7.noarch
  python2-novaclient-10.1.0-1.el7.noarch
  openstack-nova-conductor-17.0.7-1.el7.noarch
  openstack-nova-scheduler-17.0.7-1.el7.noarch
  openstack-nova-console-17.0.7-1.el7.noarch
  openstack-nova-common-17.0.7-1.el7.noarch

  How to reproduce:
  # openstack compute service set p024.domain.com nova-consoleauth --disable
  Failed to set service status to disabled
  Compute service nova-consoleauth of host p024.domain.com failed to set.

  Logs:
  Action: 'update', calling method: <function version_select at 0x7f49474a8938>, body: {"binary": "nova-consoleauth", "host": "p024.domain.com"} _process_stack /usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:604
  HTTP exception thrown: Host 'p024.domain.com' is not mapped to any cell
  Returning 404 to user: Host 'p024.domain.com' is not mapped to any cell __call__ /usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:1064
  XX.XX.XX.XX "PUT /v2.1/os-services/disable HTTP/1.1" status: 404 len: 511 time: 0.3039389

  
  Why nova-consoleauth should be mapped to a cell? Is that a bug?

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1805164/+subscriptions


References