summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2016-05-24 09:03:59 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-24 09:03:59 +0000
commit2ca5561d0b0b1a913cca24c1571a612f381ea018 (patch)
tree9dd7c0f9d9d42cb0592c071f42afe37c43b722db /deploy
parent3fb8f37c0e1cbf1a5de75282d8889f365105fb61 (diff)
parent115f9bf5de5b3aea2f7f3afe4527f10d399ca0cf (diff)
Merge "Dump anslible log from defined path"
Diffstat (limited to 'deploy')
-rw-r--r--deploy/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/client.py b/deploy/client.py
index a87decc9..8617a56a 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -913,7 +913,8 @@ class CompassClient(object):
def print_ansible_log():
os.system("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i %s root@192.168.200.2 \
- 'while ! tail -f /var/ansible/run/openstack_liberty-opnfv2/ansible.log 2>/dev/null; do :; sleep 1; done'" % CONF.rsa_file)
+ 'while ! tail -f /var/ansible/run/%s-%s/ansible.log 2>/dev/null; do :; sleep 1; done'" %
+ (CONF.rsa_file, CONF.adapter_name, CONF.cluster_name))
def kill_print_proc():
os.system("ps aux|grep -v grep|grep -E 'ssh.+root@192.168.200.2'|awk '{print $2}'|xargs kill -9")