Current codes in create_volume() may exists a scenario that
a context which is not elevated but after it fails in volume
creation, it becomes elevated. This patch saves original
context, so that if it fails in volume creation simply use the
original context for further scheduling.
Reviewed: https:/ /review. openstack. org/35496 github. com/openstack/ cinder/ commit/ ca0e7295f44235c 7d64954a225a172 718a074dd8
Committed: http://
Submitter: Jenkins
Branch: master
commit ca0e7295f44235c 7d64954a225a172 718a074dd8
Author: XueChendi <email address hidden>
Date: Wed Jul 3 22:20:32 2013 +0800
Prevent wrongly privilege escalation of a context
Current codes in create_volume() may exists a scenario that
a context which is not elevated but after it fails in volume
creation, it becomes elevated. This patch saves original
context, so that if it fails in volume creation simply use the
original context for further scheduling.
Fix bug:1187076
Change-Id: I2822b1612ec741 209b278fc65f18d 0f8f3243e0a