Revert "Stop using deprecated Nova APIs"
This reverts commit 8dcb7a2da80415d88c8b7e971839edba1c375ee9.
Reason for revert: in Yoga manila's scenario manager is still
standalone and is not inherited from tempest's scenario manager.
Change-Id: If88947a742def5620a457897aa192db94b713213
Related-Issue: PRODX-35739
diff --git a/manila_tempest_tests/tests/scenario/manager_share.py b/manila_tempest_tests/tests/scenario/manager_share.py
index 6e492ea..657b1f1 100644
--- a/manila_tempest_tests/tests/scenario/manager_share.py
+++ b/manila_tempest_tests/tests/scenario/manager_share.py
@@ -82,7 +82,7 @@
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.image_client.list_images()["images"]
+ images = self.compute_images_client.list_images()["images"]
for img in images:
if img["name"] == CONF.share.image_with_share_tools:
self.image_id = img['id']
@@ -184,7 +184,8 @@
storage_net_nic[0]['addr']
)
# Attach a floating IP
- self.associate_floating_ip(floating_ip, instance)
+ self.compute_floating_ips_client.associate_floating_ip_to_server(
+ floating_ip['floating_ip_address'], instance['id'])
self.assertIsNotNone(server_ip)
# Check ssh