Bug 1459332 - Lack of specificity of the error messages from openstack command
Lack of specificity of the error messages from openstack command
Status: ASSIGNED
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
Ola Pavlenko
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-06 16:12 EDT by Marc Methot
Modified: 2017-10-13 08:57 EDT (History)
4 users (show)

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


Attachments (Terms of Use)

  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.
https://docs.openstack.org/developer/python-neutronclient/devref/transition_to_osc.html

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