python-monascaclient does not discard expired token before re-authenticating
Bug #1441306 reported by
Rohit Jaiswal
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Monasca |
Fix Committed
|
Undecided
|
Cindy O'Neill |
Bug Description
The attempt to re-authenticate on possible token expiry actually re-uses the expired token, which is clearly bound to fail in the expired case.
As a result, unless the client explicitly handles the 401, client will stop working once the original token has expired (by default after 24 hours).
and these errors are seen in the logs -
monascaclient.exc [-] exception: Authentication failed. Please try again with option --include-password or export MONASCA_
It will probably be good to handle this case in the client itself rather than the users of the client.
Refer the similar bug in novaclient - https:/
Changed in monasca: | |
status: | Triaged → In Progress |
To post a comment you must log in.
Triage: Cindy to work on, corresponding JIRA ticket=JAH-1401