Unhelpful error message when neutron server is unavailable

Bug #1675394 reported by Dr. Jens Harbott on 2017-03-23
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)

Bug Description

When the neutron API is unavailable, I'm getting this error message which is not really helpful:

$ openstack extension list --network
'unicode' object has no attribute 'get'

The neutron CLI is showing the real error:

$ neutron ext-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
The server is currently unavailable. Please try again at a later time.<br /><br />


Running with --debug verifies that OSC is getting the same response, just doesn't handle it well, see attached output.

Dr. Jens Harbott (j-harbott) wrote :
Dr. Jens Harbott (j-harbott) wrote :

The issue appears for OSC version 3.8.1 in Ubuntu Ocata UCA, after pip-installing OSC 3.9.0 I get the correct error message:

$ osc/bin/openstack extension list --network
HttpException: Service Unavailable (HTTP 503) (Request-ID: req-f790c8ee-6185-47de-8512-8405dc5e57cd)

Dean Troyer (dtroyer) wrote :

Is this still a problem? Also, knowing which version of openstacksdk is installed may be helpful as all of the network commands use it rather than neutronclient.

I currently see this in the current master OSC which will soon be released as 3.10.0 on a nova-net cloud:

  dtroyer@brewster:~/src/openstack/python-openstackclient $ os extension list --network
  public endpoint for network service in RegionOne region not found

Changed in python-openstackclient:
status: New → Confirmed
status: Confirmed → Incomplete
Dean Troyer (dtroyer) wrote :

So ignore that bit about the SDK, I found it in the debug output, 0.9.13, and I see the same result with that version.

Dr. Jens Harbott (j-harbott) wrote :

So will there be a patch for the stable/ocata branch that fixes this issue? Or would you expect distros to update to a newer release?

Changed in python-openstackclient:
status: Incomplete → Confirmed
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-openstackclient (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments