Commit: ef600046a80059cde055159d0e2ba7af54932134
Author: Alex Ermolov <email address hidden>
Date: Thu Jun 4 16:16:52 2015
Fix detach_sriov_ports to get context to be able to get image metadata
The previous implementation took the context using
get_admin_context() which return context with admin flag set,
but all the other attributes are None.
This is not sufficient to get image metadata,
it is need context with elevated permission.
The change here is to update API to pass the context to suspend so
it will be able to pass it to detach_sriov_ports.
Also update the snapshot method to pass context to detach_sriov_ports
Reviewed: https:/ /review. fuel-infra. org/7524 ci/fuel- 6.0-updates/ 2014.2
Submitter: mos-infra-ci <>
Branch: openstack-
Commit: ef600046a80059c de055159d0e2ba7 af54932134
Author: Alex Ermolov <email address hidden>
Date: Thu Jun 4 16:16:52 2015
Fix detach_sriov_ports to get context to be able to get image metadata
The previous implementation took the context using
get_admin_context() which return context with admin flag set,
but all the other attributes are None.
This is not sufficient to get image metadata,
it is need context with elevated permission.
The change here is to update API to pass the context to suspend so
it will be able to pass it to detach_sriov_ports.
Also update the snapshot method to pass context to detach_sriov_ports
Closes-Bug: #1452294 66db03c5d2410de 7378c039d41
Change-Id: I4757a7646d7bee