Skip to content

Commit cb48c97

Browse files
author
Jayapal
committed
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.
1 parent f561e12 commit cb48c97

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎server/src/com/cloud/network/vpc/VpcManagerImpl.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,10 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
15591559
s_logger.debug("Private gateway " + gateway + " was applied succesfully on the backend");
15601560
} else {
15611561
s_logger.warn("Private gateway " + gateway + " failed to apply on the backend");
1562+
gatewayVO.setState(VpcGateway.State.Ready);
1563+
_vpcGatewayDao.update(gatewayVO.getId(), gatewayVO);
1564+
s_logger.debug("Marked gateway " + gatewayVO + " with state " + VpcGateway.State.Ready);
1565+
15621566
return false;
15631567
}
15641568
}

0 commit comments

Comments
 (0)