X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=deploy%2Fcommon.py;h=cc418b59bdc3255a6d0b8265499c2d44763e3192;hb=857d1204ba768cd949f85511e66c697a630e2be4;hp=ccd43d79a7dbbae430df6114ed1abd0b5e417dfd;hpb=2e2d69dcef35b57c57f30b7f3a96d32353e9bc05;p=fuel.git diff --git a/deploy/common.py b/deploy/common.py index ccd43d79a..cc418b59b 100644 --- a/deploy/common.py +++ b/deploy/common.py @@ -18,9 +18,8 @@ import stat import errno N = {'id': 0, 'status': 1, 'name': 2, 'cluster': 3, 'ip': 4, 'mac': 5, - 'roles': 6, 'pending_roles': 7, 'online': 8} -E = {'id': 0, 'status': 1, 'name': 2, 'mode': 3, 'release_id': 4, - 'changes': 5, 'pending_release_id': 6} + 'roles': 6, 'pending_roles': 7, 'online': 8, 'group_id': 9} +E = {'id': 0, 'status': 1, 'name': 2, 'release_id': 3, 'pending_release_id': 4} R = {'id': 0, 'name': 1, 'state': 2, 'operating_system': 3, 'version': 4} RO = {'name': 0, 'conflicts': 1} CWD = os.getcwd() @@ -49,8 +48,13 @@ def exec_cmd(cmd, check=True): return_code = process.returncode if check: if return_code > 0: + print "Failed command: " + str(cmd) + print "Command returned response: " + str(response) + print "Command return code: " + str(return_code) raise Exception(response) else: + print "Command: " + str(cmd) + print str(response) return response return response, return_code