add some logs

Change-Id: I04d23c9446847dca944eeed77105f498b04cac0d
This commit is contained in:
Eyal 2017-07-09 11:52:53 +03:00
parent 6c26625116
commit 3b67a40632
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,10 @@ class TestTopology(BaseTopologyTest):
cli_graph = utils.run_vitrage_command(
'vitrage topology show --all-tenants',
self.conf)
LOG.info('api-graph=%(api)s cli-graph=%(cli)s', {'api': api_graph,
'cli': cli_graph})
self._compare_graphs(api_graph, cli_graph)
@utils.tempest_logger

View File

@ -69,6 +69,10 @@ def run_vitrage_command(command, conf):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
if stderr:
LOG.error('error from command %(command)s = %(error)s',
{'error': stderr, 'command': full_command})
return stdout