Stop using deprecated Nova APIs

some places in scenario manager were still using very long deprecated
nova APIs, like nova images and nova networks,
which breaks if tempest is configured to use nova microverson > 2.35.

Change-Id: I5b83e0d120525f7e8959f68a340635cf954bc7f8
This commit is contained in:
Pavlo Shchelokovskyy 2023-09-14 14:39:40 +00:00
parent d6a4d27f49
commit 88018ca2fa
1 changed files with 2 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
if CONF.share.image_with_share_tools == 'centos':
self.image_ref = self._create_centos_based_glance_image()
elif CONF.share.image_with_share_tools:
images = self.compute_images_client.list_images()["images"]
images = self.image_client.list_images()["images"]
for img in images:
if img["name"] == CONF.share.image_with_share_tools:
self.image_id = img['id']
@ -186,8 +186,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
storage_net_nic[0]['addr']
)
# Attach a floating IP
self.compute_floating_ips_client.associate_floating_ip_to_server(
floating_ip['floating_ip_address'], instance['id'])
self.associate_floating_ip(floating_ip, instance)
self.assertIsNotNone(server_ip)
# Check ssh