aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-09-18 02:17:29 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-18 02:17:29 +0000
commit17092c09eea12270fe3c4878adc7f70ff7d98fbc (patch)
tree53f7373da002dc87909c421094260a112d07e935
parent239a72670e7ea9fcfdfa97c0b508581e474ce790 (diff)
parent27cfc432206a7a8d5384c91c146d62cfb96a6d0f (diff)
Merge "print cobbler status: it will print cobbler status when deploying was timeout"
-rw-r--r--deploy/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/client.py b/deploy/client.py
index 51919838..e5623c8b 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -888,6 +888,10 @@ class CompassClient(object):
if current_time() >= deployment_timeout:
LOG.info("current_time=%s, deployment_timeout=%s" \
% (current_time(), deployment_timeout))
+ LOG.info("cobbler status:")
+ os.system("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
+ -i %s root@192.168.200.2 \
+ 'cobbler status'" % (CONF.rsa_file))
raise RuntimeError("installation timeout")
try: