[taskflow] Create volume revert fails when request is initiated by a member user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Abhijeet Malawade |
Bug Description
Commit: 1874d913ecbf8f0
If a non-admin (member) user initiates a Create volume request, and an error occurs in a task
after the EntryCreateTask is complete, the revert operation, or volume destroy db call fails as it uses the non-admin context
to do so.
The following stacktrace is seen in c-api.log:
2013-09-25 00:39:44.522 15017 ERROR cinder.
88d3c621d
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
2013-09-25 00:39:44.522 15017 TRACE cinder.
The volume gets stuck in "Creating" state and is unusable.
Commands snip:
$ cinder create 1
ERROR: The server has either erred or is incapable of performing the requested operation.
$ cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 3faea4c8-
+------
Changed in cinder: | |
assignee: | nobody → Abhijeet Malawade (abhijeet-malawade) |
description: | updated |
Changed in cinder: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/48891
Review: https:/