diff options
author | Justin chi <chigang@huawei.com> | 2016-09-18 02:17:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-18 02:17:29 +0000 |
commit | 17092c09eea12270fe3c4878adc7f70ff7d98fbc (patch) | |
tree | 53f7373da002dc87909c421094260a112d07e935 /deploy | |
parent | 239a72670e7ea9fcfdfa97c0b508581e474ce790 (diff) | |
parent | 27cfc432206a7a8d5384c91c146d62cfb96a6d0f (diff) |
Merge "print cobbler status: it will print cobbler status when deploying was timeout"
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/client.py | 4 |
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: |