summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplugin_source/deployment_scripts/compute_post_deployment.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin_source/deployment_scripts/compute_post_deployment.py b/plugin_source/deployment_scripts/compute_post_deployment.py
index 7ba11f4..598e72e 100755
--- a/plugin_source/deployment_scripts/compute_post_deployment.py
+++ b/plugin_source/deployment_scripts/compute_post_deployment.py
@@ -456,7 +456,11 @@ def check_and_setup_ceilometer(himn, username, password):
456 456
457def enable_conntrack_service(himn, username): 457def enable_conntrack_service(himn, username):
458 # use conntrack statistic mode, so change conntrackd.conf 458 # use conntrack statistic mode, so change conntrackd.conf
459 if not os.path.exists('/etc/conntrackd/conntrackd.conf.back'): 459 errcode, out, err = utils.ssh_detailed(
460 himn, username, 'ls', '/etc/conntrackd/conntrackd.conf.back',
461 allowed_return_codes=[0, 2])
462 if errcode == 2:
463 # Only make conntrackd.conf.back if it doesn't exist
460 utils.ssh(himn, username, 464 utils.ssh(himn, username,
461 'mv', 465 'mv',
462 '/etc/conntrackd/conntrackd.conf', 466 '/etc/conntrackd/conntrackd.conf',