From 1f9e4d7bd977e55246e580fb5c84bf7b30cf6177 Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 20 Apr 2016 17:54:05 +0300 Subject: [PATCH] Run nova service-list only for online controllers nova service-list only needs to report the status of online controllers. Down and deleted nodes should not cause the test to fail. Change-Id: I56765f6cf889b6afb9780b32857a164e2b62c340 Related-Bug: #1570847 --- fuel_health/tests/sanity/test_sanity_infrastructure.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fuel_health/tests/sanity/test_sanity_infrastructure.py b/fuel_health/tests/sanity/test_sanity_infrastructure.py index 22af4f7c..4061ee33 100644 --- a/fuel_health/tests/sanity/test_sanity_infrastructure.py +++ b/fuel_health/tests/sanity/test_sanity_infrastructure.py @@ -37,6 +37,7 @@ class SanityInfrastructureTest(nmanager.SanityChecksTest): def setUpClass(cls): super(SanityInfrastructureTest, cls).setUpClass() cls.controllers = cls.config.compute.online_controllers + cls.controller_names = cls.config.compute.online_controller_names cls.computes = cls.config.compute.online_computes cls.usr = cls.config.compute.controller_node_ssh_user cls.pwd = cls.config.compute.controller_node_ssh_password @@ -58,7 +59,10 @@ class SanityInfrastructureTest(nmanager.SanityChecksTest): Duration: 180 s. """ downstate = u'down' - cmd = 'source /root/openrc; nova service-list' + cmd = "source /root/openrc" + for controller in self.controller_names: + cmd += '; nova service-list --host {0}'.format(controller) + if not self.controllers: self.skipTest('Step 1 failed: there are no controller nodes.') ssh_client = SSHClient(self.controllers[0],