From 1bb933788b790d8afc14515331d38efdbfd3fa96 Mon Sep 17 00:00:00 2001 From: Maksym Strukov Date: Sat, 17 Oct 2015 00:00:19 +0300 Subject: [PATCH] Improve logging in deploy_multiple_services_local_mirror systest Change-Id: I8439983268a7206f12b20e9bb35e13c182f8b090 Related-Bug: #1502239 --- fuelweb_test/tests/test_ha_one_controller.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fuelweb_test/tests/test_ha_one_controller.py b/fuelweb_test/tests/test_ha_one_controller.py index 9b87112de..f56652152 100644 --- a/fuelweb_test/tests/test_ha_one_controller.py +++ b/fuelweb_test/tests/test_ha_one_controller.py @@ -28,6 +28,7 @@ from fuelweb_test.settings import NEUTRON_SEGMENT from fuelweb_test.settings import NEUTRON_SEGMENT_TYPE from fuelweb_test.settings import OPENSTACK_RELEASE from fuelweb_test.settings import OPENSTACK_RELEASE_UBUNTU +from fuelweb_test.helpers.utils import run_on_remote_get_results from fuelweb_test.tests.base_test_case import SetupEnvironment from fuelweb_test.tests.base_test_case import TestBasic from fuelweb_test import logger @@ -470,16 +471,7 @@ class MultiroleMultipleServices(TestBasic): # CentOS is not supported yet, see bug#1467403 pass - result = remote.execute('fuel-createmirror') - logger.debug("'fuel-createmirror' [stdout]:\n{}" - .format(''.join(result['stdout']))) - logger.debug("'fuel-createmirror' [stderr]:\n{}" - .format(''.join(result['stderr']))) - assert_true(result['exit_code'] == 0, - "Executing 'fuel-createmirror' on admin node failed " - "with the ['exit_code']='{0}'. Please inspect " - "'sys_test.log' for more details." - .format(result['exit_code'])) + run_on_remote_get_results(remote, 'fuel-createmirror') # Check if there all repos were replaced with local mirrors ubuntu_id = self.fuel_web.client.get_release_id(