designate python client is not showing proper help message when authentication environment variable are missing

Bug #1466265 reported by Pradeep Kumar Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-designateclient
In Progress
High
Federico Ceratto

Bug Description

pksingh@myenv:~/designate$ designate server-list
ERROR: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-d8925e1b-c04a-4e30-a507-e83773fb6bf4)
pksingh@myenv:~/designate$

Here env variable OS_USERNAME is missing, and designate is sending the request to keystone withot proper validation of environemnet variables, i think it should check all these variables before sending the request.

When no environemnt variable is set, i get following message
pksingh@myenv:~/designate$ designate server-list
ERROR: No endpoint was found. Missing credentials?

I think this should generate some help message why error is comming and how can user correct it.
It should show what parameters need to be passed or set into environment.

Changed in designate:
assignee: nobody → pradeep kumar singh (pradeep-singh-u)
Tim Simmons (timsim)
affects: designate → python-designateclient
Changed in python-designateclient:
importance: Undecided → High
status: New → Triaged
Changed in python-designateclient:
assignee: Pradeep Kumar Singh (pradeep-singh-u) → Federico Ceratto (federico-ceratto)
status: Triaged → In Progress
Revision history for this message
Pradeep Kumar Singh (pradeep-singh-u) wrote :

Hi Federico Ceratto,

I think its better to ask before assigning the bug to yourself.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-designateclient (master)

Change abandoned by Federico Ceratto (<email address hidden>) on branch: master
Review: https://review.openstack.org/199067
Reason: As discussed, there seems to be no way to reliably check for options. Changes in Keystone would break the CLI tool.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.