commit 6cc2dc834663ba7792f1b8c0945b81dc248b4783
Author: Moshe Levi <email address hidden>
Date: Sun Jan 18 11:40:30 2015 +0200
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
(cherry picked from commit 6f002d26f28998c99d9922fdd49b0805c44ff22f)
Reviewed: https:/ /review. openstack. org/164713 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6cc2dc83466 3ba7792f1b8c094 5b81dc248b4783
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 6cc2dc834663ba7 792f1b8c0945b81 dc248b4783
Author: Moshe Levi <email address hidden>
Date: Sun Jan 18 11:40:30 2015 +0200
Fix detach_sriov_ports to get context to be able to get image metadata
The previous implementation took the context using admin_context( ) which return context with admin flag set,
get_
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
(cherry picked from commit 6f002d26f28998c 99d9922fdd49b08 05c44ff22f)
Closes- Bug:#1406486 66db03c5d2410de 7378c039d41
Change-Id: I4757a7646d7bee