commit a2830e5417539980249e3ab12d8bf9538d8956c4
Author: John Griffith <email address hidden>
Date: Thu Feb 28 19:01:39 2013 +0000
Elevate context for delete volume with no host.
So in the case of a volume that is placed in error state
on create and never actually deployed, the cinder.volume.api delete
call does a short cut call to db.destroy_volume which is fine because
all we have is a DB entry (scheduler never deployed the volume).
Unfortunately, this requires admin context, so just add an elevate
context to the db.destroy_volume call.
Reviewed: https:/ /review. openstack. org/23196 github. com/openstack/ cinder/ commit/ a2830e541753998 0249e3ab12d8bf9 538d8956c4
Committed: http://
Submitter: Jenkins
Branch: master
commit a2830e541753998 0249e3ab12d8bf9 538d8956c4
Author: John Griffith <email address hidden>
Date: Thu Feb 28 19:01:39 2013 +0000
Elevate context for delete volume with no host.
So in the case of a volume that is placed in error state
on create and never actually deployed, the cinder.volume.api delete
call does a short cut call to db.destroy_volume which is fine because
all we have is a DB entry (scheduler never deployed the volume).
Unfortunately, this requires admin context, so just add an elevate
context to the db.destroy_volume call.
Fixes bug: 1084273
Change-Id: I0ef8bf4356047c 385bef703b8dce7 d5edf537bf6