Can't delete backup: User does not have admin privileges

Bug #1467167 reported by Ivan Kolodyazhny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Ivan Kolodyazhny
Ivan Kolodyazhny (e0ne)
Changed in cinder:
importance: Undecided → High
assignee: nobody → Ivan Kolodyazhny (e0ne)
Changed in cinder:
status: New → In Progress
Ivan Kolodyazhny (e0ne)
Changed in cinder:
milestone: none → liberty-1
Revision history for this message
Thang Pham (thang-pham) wrote :

Looks like you just need to do:
backup._context = context

at https://github.com/openstack/cinder/blob/master/cinder/backup/manager.py#L460, so you assign the elevated context to the backup object.

Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Thang, we can't do it because it will be unsecure and it's a bad design to assign private variables. I created review request with fix: https://review.openstack.org/193828

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.