Skip to content

Commit

Permalink
Added missing host_string and renamed start_cfgm_node routine
Browse files Browse the repository at this point in the history
Change-Id: I7e91d88da6ef3d68827e4b7fd1ddb6d52e3a0d4f
Closes-Bug: #1633868
  • Loading branch information
aswanikumar90 committed Oct 17, 2016
1 parent a37c526 commit 6937630
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fabfile/tasks/services.py
Expand Up @@ -85,7 +85,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')
Expand All @@ -98,9 +98,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')
Expand Down Expand Up @@ -244,7 +244,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):
Expand Down

0 comments on commit 6937630

Please sign in to comment.