Merge "Fix the usage of RBDVolumeProxy in getting manageable volumes"
This commit is contained in:
commit
24bcc02ae7
@ -1558,7 +1558,9 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
|||||||
with RADOSClient(self) as client:
|
with RADOSClient(self) as client:
|
||||||
for image_name in self.RBDProxy().list(client.ioctx):
|
for image_name in self.RBDProxy().list(client.ioctx):
|
||||||
image_id = volume_utils.extract_id_from_volume_name(image_name)
|
image_id = volume_utils.extract_id_from_volume_name(image_name)
|
||||||
with RBDVolumeProxy(self, image_name, read_only=True) as image:
|
with RBDVolumeProxy(self, image_name, read_only=True,
|
||||||
|
client=client.cluster,
|
||||||
|
ioctx=client.ioctx) as image:
|
||||||
try:
|
try:
|
||||||
image_info = {
|
image_info = {
|
||||||
'reference': {'source-name': image_name},
|
'reference': {'source-name': image_name},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user