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: I12e1ddb7b771834b536beeb314549e326c985678
Closes-Bug: #1633868
  • Loading branch information
aswanikumar90 committed Oct 17, 2016
1 parent 30abee8 commit b10a530
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fabfile/tasks/services.py
Expand Up @@ -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')
Expand All @@ -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')
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b10a530

Please sign in to comment.