Added retry for revert master node

Change-Id: Ie06fa2a11eefa8166cfb73c14ce536fe62ff9277
Merge "Added retry for revert master node"