From 17a5836bbdb4f87e627b6f510586a56730b4f4bc Mon Sep 17 00:00:00 2001 From: deepssin Date: Thu, 25 Sep 2025 07:22:32 -0400 Subject: [PATCH] Openstack: handle attached_volumes field when fetching volumes Some clouds use attached_volumes instead of os-extended-volumes:volumes_attached Signed-off-by: deepssin --- teuthology/openstack/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index 54973cfd1..11d8ff150 100644 --- a/teuthology/openstack/__init__.py +++ b/teuthology/openstack/__init__.py @@ -128,8 +128,12 @@ class OpenStackInstance(object): Return the uuid of the volumes attached to the name_or_id OpenStack instance. """ - volumes = self['os-extended-volumes:volumes_attached'] - return [volume['id'] for volume in volumes ] + info = self.info or {} + vols = (info.get('os-extended-volumes:volumes_attached') + or info.get('attached_volumes') + or []) + volumes = [v['id'] for v in vols if isinstance(v, dict) and 'id' in v] + return volumes def get_addresses(self): """ -- 2.47.3