add some logs
Change-Id: I04d23c9446847dca944eeed77105f498b04cac0d
This commit is contained in:
parent
6c26625116
commit
3b67a40632
@ -53,6 +53,10 @@ class TestTopology(BaseTopologyTest):
|
|||||||
cli_graph = utils.run_vitrage_command(
|
cli_graph = utils.run_vitrage_command(
|
||||||
'vitrage topology show --all-tenants',
|
'vitrage topology show --all-tenants',
|
||||||
self.conf)
|
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)
|
self._compare_graphs(api_graph, cli_graph)
|
||||||
|
|
||||||
@utils.tempest_logger
|
@utils.tempest_logger
|
||||||
|
@ -69,6 +69,10 @@ def run_vitrage_command(command, conf):
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
|
if stderr:
|
||||||
|
LOG.error('error from command %(command)s = %(error)s',
|
||||||
|
{'error': stderr, 'command': full_command})
|
||||||
|
|
||||||
return stdout
|
return stdout
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user