]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use elevated context for backup destroy
authorIvan Kolodyazhny <e0ne@e0ne.info>
Sat, 20 Jun 2015 20:02:41 +0000 (23:02 +0300)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Mon, 22 Jun 2015 18:33:39 +0000 (18:33 +0000)
commitfb2c5e9937d579c0445a46000db1a889bbf62fa0
tree5504931b49c875c23b83ea2b8b2477ee43eae1d7
parent4ea25fa280261eb02b4689e419153e3fb8a28e4f
Use elevated context for backup destroy

db.backup_destroy requires admin context to mark backup record as
deleted. Commit Icff37261b367463b71a1268be16f9c97f595bf0c removed admin
context passed to backup_destroy method.

This patch uses elevated context to destroy backup.
Change-Id: I75b9e1fff48569a8aa320f2f02914fc7b6665d79
Closes-Bug: #1467167
cinder/backup/manager.py
cinder/objects/backup.py
cinder/tests/unit/objects/test_backup.py