From b10a5300e9edf53f94c696a0c103ed3b96e741e3 Mon Sep 17 00:00:00 2001 From: Aswani Kumar Reddy G Date: Fri, 14 Oct 2016 11:55:03 +0530 Subject: [PATCH] Added missing host_string and renamed start_cfgm_node routine Change-Id: I12e1ddb7b771834b536beeb314549e326c985678 Closes-Bug: #1633868 --- fabfile/tasks/services.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fabfile/tasks/services.py b/fabfile/tasks/services.py index a8bb52c8b..6bb3c25db 100644 --- a/fabfile/tasks/services.py +++ b/fabfile/tasks/services.py @@ -86,7 +86,7 @@ def start_cfgm(): def start_cfgm_node(*args): openstack_services = get_openstack_services() for host_string in args: - with settings(warn_only=True): + with settings(host_string=host_string,warn_only=True): sudo('service %s start' % openstack_services['rabbitmq-server']) sudo('service supervisor-config start') sudo('service neutron-server start') @@ -99,9 +99,9 @@ def start_cfgm_db(): execute('start_cfgm_node', env.host_string) @task -def start_cfgm_node(*args): +def start_cfgm_db_node(*args): for host_string in args: - with settings(warn_only=True): + with settings(host_string=host_string,warn_only=True): if manage_config_db(): sudo('service contrail-database start') sudo('service zookeeper start') @@ -246,7 +246,7 @@ def restart_cfgm_db(): """Restarts the contrail config db services.""" @task -def restart_cfgm_node(*args): +def restart_cfgm_db_node(*args): """Restarts the contrail config db services in once cfgm node. USAGE:fab restart_cfgm_node:user@1.1.1.1,user@2.2.2.2""" for host_string in args: with settings(host_string=host_string):