]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete a temporary volume in DB with admin context
authorMasaki Kanno <kanno.masaki@jp.fujitsu.com>
Sun, 4 Oct 2015 06:57:22 +0000 (15:57 +0900)
committerMasaki Kanno <kanno.masaki@jp.fujitsu.com>
Sun, 4 Oct 2015 06:57:22 +0000 (15:57 +0900)
commit1f546af6ffc8f51f7ac2546fb9456cdac86082b1
tree03eb29a3f463a6c01d1c93498f549f1dafcc4a17
parent049497e824fba59c1d84fc1f3a475020be64be85
Delete a temporary volume in DB with admin context

Non-disruptive backup creates a temporary volume. Information
of the volume will be deleted from DB if the volume cannot be
created by drivers. volume_destroy method is used in order to
delete the information. We must elevate the context to admin
context because the method requests admin context.

Change-Id: Ie5cd935cdd9e13c261708e504fa6fb2622a8aebb
Closes-Bug: 1502460
cinder/volume/driver.py