CLOUDSTACK-5552 Setup private gateway state to ready on delete failure

On delete private gateway failure set the state to ready, So that it can be
deleted later.
This commit is contained in:
Jayapal 2014-01-08 11:36:43 +05:30
parent f561e126b2
commit cb48c97801
1 changed files with 4 additions and 0 deletions

View File

@ -1559,6 +1559,10 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
s_logger.debug("Private gateway " + gateway + " was applied succesfully on the backend");
} else {
s_logger.warn("Private gateway " + gateway + " failed to apply on the backend");
gatewayVO.setState(VpcGateway.State.Ready);
_vpcGatewayDao.update(gatewayVO.getId(), gatewayVO);
s_logger.debug("Marked gateway " + gatewayVO + " with state " + VpcGateway.State.Ready);
return false;
}
}