Cinder should handle token expiration for long ops
Bug #1298135 reported by
Andrew Kerr
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Medium
|
Unassigned |
Bug Description
Certain operations, such as upload-to-image and backup-restore, have the possibility of being long-running operations. It is possible that the auth token provided by keystone could expire before the operations complete. This can result in operations failing simply because the api calls being used are now sending an expired token.
Cinder should attempt a reauthorization during long running operations if it receives a 401 response code.
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cinder: | |
assignee: | nobody → wanghong (w-wanghong) |
Changed in cinder: | |
status: | Confirmed → Triaged |
milestone: | none → next |
Changed in cinder: | |
status: | Triaged → Fix Released |
Changed in cinder: | |
status: | Fix Released → Triaged |
Changed in cinder: | |
status: | Triaged → Confirmed |
assignee: | wanghong (w-wanghong) → nobody |
Changed in cinder: | |
assignee: | nobody → j_king (james-agentultra) |
tags: | added: bugsmash |
Changed in cinder: | |
assignee: | nobody → Serhii Rusin (serhii-rusin) |
Changed in cinder: | |
assignee: | Serhii Rusin (serhii-rusin) → nobody |
Changed in cinder: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Rescope of a token does not extend its expiry time, so I'm not sure there's an existing keystone API we can use.
There's a second problem for backups initiated from Horizon, in that Horizon invalidates tokens on log-out or project switch, so in its case the problem is even worse.
You might be able to use keystone trusts to extend a token, but that is outside of the intended use-case for trusts.