Skip to content

Commit

Permalink
Check reimage status with --ip option.
Browse files Browse the repository at this point in the history
In fab task all_sm_reimage_status instead of grep-ing for
the ip address of the server, now the code would pass ip
address as one of the parameters to SM client to get the
status of the server.

Change-Id: I3c77974c93fe6f9dca041ec27cbcfb49d928d3e2
  • Loading branch information
ritamganguly committed May 20, 2015
1 parent 1292c61 commit 8d1211b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabfile/tasks/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,8 +1274,8 @@ def all_sm_reimage_status(attempts=180, interval=10, node=None, contrail_role='a
count+=1
for node in nodes:
user, hostip = node.split('@')
cmd = smgr_client + " status server"
cmd = cmd + " | grep %s -A3 | grep status" %(hostip)
cmd = smgr_client + " status server --ip %s" %(hostip)
cmd = cmd + " | grep status"
try:
op_string=local(cmd,capture=True)
except:
Expand Down

0 comments on commit 8d1211b

Please sign in to comment.