summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWutianwei <wutianwei1@huawei.com>2016-09-12 15:27:51 +0800
committerWutianwei <wutianwei1@huawei.com>2016-09-12 16:15:39 +0800
commit27cfc432206a7a8d5384c91c146d62cfb96a6d0f (patch)
tree4aa72bfd6315361ac9d0aab925074dee57d12a6e
parentbdcfcecc915128a37bda596b7e28a3996c67d046 (diff)
print cobbler status:
it will print cobbler status when deploying was timeout Change-Id: I22fa89c6170353884f561eadd4d0fda2406f915f Signed-off-by: Wutianwei <wutianwei1@huawei.com>
-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: