Bug 1459332 - Lack of specificity of the error messages from openstack command
Lack of specificity of the error messages from openstack command
Status: ON_QA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient (Show other bugs)
10.0 (Newton)
All All
low Severity low
: Upstream M3
: 13.0 (Queens)
Assigned To: Julie Pichon
Shai Revivo
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2017-06-06 16:12 EDT by Marc Methot
Modified: 2018-03-28 17:35 EDT (History)
5 users (show)

See Also:
Fixed In Version: python-openstackclient-3.13.0-0.20180109064941.8c5f755.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 519831 None master: MERGED python-openstackclient: Show detailed message of neutron exception (I8ba694bda86f7cc8362e301b2044d9b610dde49c) 2018-02-07 09:14 EST

  None (edit)
Description Marc Methot 2017-06-06 16:12:16 EDT
Description of problem:
Client reported that on OSP 10, when encountering errors, the  messages provided by the "openstack" commands are at times much less meaningful than their older counterparts (neutron, nova, etc.) In this case the "network" plugin.

For example when encountering a quota on total number of rbac, we get the following error : 
openstack network rbac create --action access_as_external --target-project e308b6b702ea46918752cdaeb932bff8 --type network ce629dbc-b24b-4d57-b988-81879db62eea
HttpException: Conflict

Whereas the equivalent "neutron" command gives us more explanation :

neutron rbac-create --target-tenant e308b6b702ea46918752cdaeb932bff8 --action access_as_external --type network ce629dbc-b24b-4d57-b988-81879db62eea
Quota exceeded for resources: ['rbac_policy'].

Version-Release number of selected component (if applicable):
OSP 10

How reproducible:
All the time

Actual results:
Non meaningful error.

Expected results:
The same error message as the neutron cli returns

Additional info:
Acknowledged that the we are still in a transition state to the openstack cli.
Comment 3 Julie Pichon 2018-01-25 08:22:26 EST
Unfortunately, "fixing all the error messages" is a bit too vague and difficult to resolve, it is better to open a bug about a specific message in order to get it fixed (cf. also https://bugs.launchpad.net/python-openstackclient/+bug/1554302 ).

It appears the one mentioned in the description is now resolved (and likely applies to all the 'network' commands):

$ openstack network rbac create --action access_as_external --target-project 6210656262954848a7ff0fc27a7e0201 --type network ed5848fd-8f1d-4d1e-b842-61b9ee7cfbfa
HttpException: Conflict (HTTP 409) (Request-ID: req-8f5ef45f-7259-4927-abae-efb48e1071ff), Quota exceeded for resources: ['rbac_policy'].

Based on this I'm going to mark this one as resolved, though please feel free to open more targeted bugs as you find new problematic messages.

Note You need to log in before you can comment on or make changes to this bug.