Skip to content

Commit

Permalink
Modified the function call in upgrade.py as the function definations …
Browse files Browse the repository at this point in the history
…have changed

and correcting the indentation.
Closes-Bug: 1494497

Change-Id: Idbfe4974edc5ccd32301c695624429c63bf65b38
  • Loading branch information
Shweta Naik committed Sep 10, 2015
1 parent 0aaf580 commit 972c5e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions fabfile/tasks/provision.py
Expand Up @@ -1507,14 +1507,14 @@ def prov_config_node(host_string, oper='add', tgt_node=None):
tgt_ip = hstr_to_ip(get_control_host_string(env.host_string))
tgt_hostname = sudo("hostname")

with cd(UTILS_DIR):
cmd = "python provision_config_node.py"
cmd += " --api_server_ip %s" % cfgm_ip
cmd += " --host_name %s" % tgt_hostname
cmd += " --host_ip %s" % tgt_ip
cmd += " --oper %s" % oper
cmd += " %s" % get_mt_opts()
sudo(cmd)
with cd(UTILS_DIR):
cmd = "python provision_config_node.py"
cmd += " --api_server_ip %s" % cfgm_ip
cmd += " --host_name %s" % tgt_hostname
cmd += " --host_ip %s" % tgt_ip
cmd += " --oper %s" % oper
cmd += " %s" % get_mt_opts()
sudo(cmd)
#end prov_config_node

@task
Expand Down
6 changes: 3 additions & 3 deletions fabfile/tasks/upgrade.py
Expand Up @@ -247,9 +247,9 @@ def upgrade_contrail(from_rel, pkg, orch='yes'):
execute('upgrade_compute', from_rel, pkg)
# Adding config, database and analytics nodes to api-server
if float(from_rel) < 2.2:
execute('prov_config_node')
execute('prov_database_node')
execute('prov_analytics_node')
execute('prov_config')
execute('prov_database')
execute('prov_analytics')
execute('compute_reboot')
#Clear the connections cache
connections.clear()
Expand Down

0 comments on commit 972c5e2

Please sign in to comment.