From 27cfc432206a7a8d5384c91c146d62cfb96a6d0f Mon Sep 17 00:00:00 2001 From: Wutianwei Date: Mon, 12 Sep 2016 15:27:51 +0800 Subject: print cobbler status: it will print cobbler status when deploying was timeout Change-Id: I22fa89c6170353884f561eadd4d0fda2406f915f Signed-off-by: Wutianwei --- deploy/client.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- cgit 1.2.3-korg