You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ja...@apache.org on 2014/01/08 07:12:59 UTC

git commit: updated refs/heads/4.3 to cb48c97

Updated Branches:
  refs/heads/4.3 f561e126b -> cb48c9780


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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cb48c978
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cb48c978
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cb48c978

Branch: refs/heads/4.3
Commit: cb48c978015c3b56dffda2014e8926bb60eda6f0
Parents: f561e12
Author: Jayapal <ja...@apache.org>
Authored: Wed Jan 8 11:36:43 2014 +0530
Committer: Jayapal <ja...@apache.org>
Committed: Wed Jan 8 11:42:25 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/network/vpc/VpcManagerImpl.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cb48c978/server/src/com/cloud/network/vpc/VpcManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/vpc/VpcManagerImpl.java b/server/src/com/cloud/network/vpc/VpcManagerImpl.java
index 0d1c537..c34ad23 100644
--- a/server/src/com/cloud/network/vpc/VpcManagerImpl.java
+++ b/server/src/com/cloud/network/vpc/VpcManagerImpl.java
@@ -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;
                 }
             }