Skip ServersTestBootFromVolume for Ironic
The tests were never launched in upstream as we don't have cinder
enabled on jobs where running smoke tests.
Enable once they are fixed in upstream.
Change-Id: Ie41eb99087f5470a25a317d62ebcd33e9439df47
Related-Prod: PROD-22634
(cherry picked from commit 160f3648130d22e75fae10fbf586460365b9b8ea)
diff --git a/tempest/api/compute/servers/test_create_server.py b/tempest/api/compute/servers/test_create_server.py
index 4f0dbad..846f3be 100644
--- a/tempest/api/compute/servers/test_create_server.py
+++ b/tempest/api/compute/servers/test_create_server.py
@@ -162,6 +162,12 @@
@classmethod
def skip_checks(cls):
super(ServersTestBootFromVolume, cls).skip_checks()
+ msg = None
if not utils.get_service_list()['volume']:
msg = "Volume service not enabled."
+ # The tests are not launched in upstream and not working with Ironic
+ if (hasattr(CONF.service_available, 'ironic') and
+ CONF.service_available.ironic):
+ msg = "Volume tests are not available for ironic."
+ if msg is not None:
raise cls.skipException(msg)