cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject git commit: updated refs/heads/master to 31fe99e
Date Wed, 07 Aug 2013 08:02:44 GMT
Updated Branches:
  refs/heads/master 0b00e13e2 -> 31fe99ef9


CLOUDSTACK-4025. NPE observed during VM start.
NPE was hit during VM start because the network it was to be deployed in didn't get implemented
- Handling this failure.


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

Branch: refs/heads/master
Commit: 31fe99ef917219fc235e238d6ab9a687ee881a12
Parents: 0b00e13
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Wed Aug 7 13:21:57 2013 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Wed Aug 7 13:28:27 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/31fe99ef/server/src/com/cloud/network/NetworkManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkManagerImpl.java b/server/src/com/cloud/network/NetworkManagerImpl.java
index ed583c5..42e4093 100755
--- a/server/src/com/cloud/network/NetworkManagerImpl.java
+++ b/server/src/com/cloud/network/NetworkManagerImpl.java
@@ -2077,6 +2077,10 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager,
L
 
         for (NicVO nic : nics) {
             Pair<NetworkGuru, NetworkVO> implemented = implementNetwork(nic.getNetworkId(),
dest, context);
+            if (implemented.first() == null) {
+                s_logger.warn("Failed to implement network id=" + nic.getNetworkId() + "
as a part of preparing nic id=" + nic.getId());
+                throw new CloudRuntimeException("Failed to implement network id=" + nic.getNetworkId()
+ " as a part preparing nic id=" +nic.getId());
+            }
 
             NetworkVO network = implemented.second();
             NicProfile profile = prepareNic(vmProfile, dest, context, nic.getId(), network);


Mime
View raw message