Add wait for nodes get online state after revert

Change-Id: Id87ee91bcfc77a3867bca72bf48f5ff972461ef4
Merge "Add wait for nodes get online state after revert" into stable/4.1