← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1761487] Fix merged to nova (master)

 

Reviewed:  https://review.openstack.org/559111
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=587eb4303be65810133e88114106ee9019940118
Submitter: Zuul
Branch:    master

commit 587eb4303be65810133e88114106ee9019940118
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
Date:   Thu Apr 5 11:25:49 2018 -0400

    Log a more useful error when neutron isn't configured
    
    When the [neutron] section of nova.conf isn't configured for
    auth with the networking service, end users of the compute
    REST API get a 500 error and the logs contain this mostly
    unhelpful error message:
    
      Unauthorized: Unknown auth type: None
    
    This change adds a more useful error log message indicating
    the root problem and provides a link to the networking service
    install guide for how to resolve it.
    
    Change-Id: I18f162c4f8d1964cb4d0c184ff2149c76e1e86b4
    Partial-Bug: #1761487


** 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/1761487

Title:
  Install guide and error message in logs is not clear that [neutron]
  auth must be configured in nova.conf

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

Bug description:
  While trying to launch new instance on newly installed test OpenStack
  I get this error:

  Unexpected API Error. Please report this at
  http://bugs.launchpad.net/nova/ and attach the Nova API log if
  possible. <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP
  500) (Request-ID: req-70a6cb07-72d9-41f3-80aa-ae6c230c62da)

  The same error from command line:

  openstack server create --flavor Basic --image cirros \
  >   --nic net-id=f5f0b96c-ab0d-4025-aca3-d2de8f0e6139 --security-group default \
  >   --key-name demo selfservice-instance
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-3050043e-0baa-471b-8c64-3015b38cef56)

  Openstack: Queens

  root@controller:~# dpkg -l | grep nova
  ii  nova-api                            2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - API frontend
  ii  nova-common                         2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - common files
  ii  nova-conductor                      2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - conductor service
  ii  nova-consoleauth                    2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - Console Authenticator
  ii  nova-novncproxy                     2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - NoVNC proxy
  ii  nova-placement-api                  2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - placement API frontend
  ii  nova-scheduler                      2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute - virtual machine scheduler
  ii  python-nova                         2:17.0.1-0ubuntu1~cloud0                   all          OpenStack Compute Python libraries
  ii  python-novaclient                   2:9.1.1-0ubuntu1~cloud0                    all          client library for OpenStack Compute API - Python 2.7

  Libvirt + KVM

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


References