From 8d1211b416e1c86f1ff9c418537653a08d468115 Mon Sep 17 00:00:00 2001 From: Ritam Gangopadhyay Date: Wed, 20 May 2015 16:36:31 +0530 Subject: [PATCH] Check reimage status with --ip option. 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 --- fabfile/tasks/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fabfile/tasks/helpers.py b/fabfile/tasks/helpers.py index b3762949a..91ff3904e 100644 --- a/fabfile/tasks/helpers.py +++ b/fabfile/tasks/helpers.py @@ -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: