The code was missing reset() call on RequestContext prior
calling the waitForStateChange, which relies on the reset attempt
value. As a result, the code didn't wait for the VM status change.
Issue-ID: APPC-1913
Signed-off-by: Marcin Wilk <m.wilk@samsung.com>
Change-Id: Ib80bb154e6380dd6a90077179db41117ec74e31b
String targetHost) throws ZoneException, RequestFailedException {
String msg;
Context ctx = server.getContext();
+ rcCtx.reset();
while (rcCtx.attempt()) {
try {
logger.debug("Calling CDP moveServer - server id = " + server.getId());