diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2015-12-08 11:21:19 +0100 |
---|---|---|
committer | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2015-12-08 14:34:11 +0100 |
commit | e9dade97d97f0d80fef3dd7d73b83cbe84eebf31 (patch) | |
tree | 264df7f7aa382156d36fcaeed677cea5cf475403 /deploy/common.py | |
parent | 5a6f83ed600757a2850ef3c83c2daf950decb5c8 (diff) |
Reaping improvements for Fuel 7
In order to download the deployment information, the node id
must be explicitly specified.
The fuel setting commmand returns "ha_compact" as the mode for
a cluster, but Fuel does itself not understand this when changing
the settings - it needs to be named "ha".
Added shebang for reap.py and deploy.py.
Upped the default image sizes for the DHA template to match
Fuel 7.
Change-Id: I3ecacb83dc44454b90dedc98104658a16926dc1f
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
Diffstat (limited to 'deploy/common.py')
-rw-r--r-- | deploy/common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deploy/common.py b/deploy/common.py index 17fd2174a..ccd43d79a 100644 --- a/deploy/common.py +++ b/deploy/common.py @@ -39,10 +39,12 @@ LOG.addHandler(out_handler) os.chmod(LOGFILE, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) def exec_cmd(cmd, check=True): + nul_f = open(os.devnull, 'w') process = subprocess.Popen(cmd, stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, + stderr=nul_f, shell=True) + nul_f.close() response = process.communicate()[0].strip() return_code = process.returncode if check: |