Merge lp:~ev/adt-image-mapper/fresh-keystone-client into lp:adt-image-mapper
Proposed by
Evan
Status: | Merged |
---|---|
Approved by: | Evan |
Approved revision: | 16 |
Merged at revision: | 11 |
Proposed branch: | lp:~ev/adt-image-mapper/fresh-keystone-client |
Merge into: | lp:adt-image-mapper |
Diff against target: |
58 lines (+23/-11) 1 file modified
adt_image_mapper/cloud.py (+23/-11) |
To merge this branch: | bzr merge lp:~ev/adt-image-mapper/fresh-keystone-client |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis Ginther | Approve | ||
Evan (community) | Needs Resubmitting | ||
Review via email: mp+253545@code.launchpad.net |
Commit message
Do not cache glanceclient so we get a fresh keystone auth token with every call.
Description of the change
I don't think it should be acceptable to use a bare exception to treat any error in talking to glance as 'expired token'. We can either explicitly look for 401 (glanceclient.
I'm proposing the latter to get the discussion moving. Is there a risk in requesting fresh tokens?
To post a comment you must log in.
Well, getting new token is just slow, as in *few* seconds ...