incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [3/15] git commit: More logging on nic release
Date Mon, 23 Jul 2012 17:49:19 GMT
More logging on nic release


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

Branch: refs/heads/vpc
Commit: 9b4c578e0d10afb600c7aa1e63bddb93a7a02de8
Parents: 152b17b
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Wed Jul 18 10:59:07 2012 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Fri Jul 20 16:44:24 2012 -0700

----------------------------------------------------------------------
 .../com/cloud/network/guru/ControlNetworkGuru.java |    9 +++++++++
 .../cloud/network/guru/PodBasedNetworkGuru.java    |    4 ++++
 .../com/cloud/network/guru/PublicNetworkGuru.java  |    4 ++++
 3 files changed, 17 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b4c578e/server/src/com/cloud/network/guru/ControlNetworkGuru.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/guru/ControlNetworkGuru.java b/server/src/com/cloud/network/guru/ControlNetworkGuru.java
index 6cbed8d..ec8887f 100755
--- a/server/src/com/cloud/network/guru/ControlNetworkGuru.java
+++ b/server/src/com/cloud/network/guru/ControlNetworkGuru.java
@@ -173,9 +173,15 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements
NetworkGu
         	DataCenterVO dcVo = _dcDao.findById(dcId);
         	if(dcVo.getNetworkType() != NetworkType.Basic) {
 	        	super.release(nic, vm, reservationId);
+	        	if (s_logger.isDebugEnabled()) {
+	                s_logger.debug("Released nic: " + nic);
+	            }
 	        	return true;
         	} else {
                 nic.deallocate();
+                if (s_logger.isDebugEnabled()) {
+                    s_logger.debug("Released nic: " + nic);
+                }
         		return true;
         	}
         }
@@ -183,6 +189,9 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements
NetworkGu
         _dcDao.releaseLinkLocalIpAddress(nic.getId(), reservationId);
         
         nic.deallocate();
+        if (s_logger.isDebugEnabled()) {
+            s_logger.debug("Released nic: " + nic);
+        }
         
         return true;
     }

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b4c578e/server/src/com/cloud/network/guru/PodBasedNetworkGuru.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/guru/PodBasedNetworkGuru.java b/server/src/com/cloud/network/guru/PodBasedNetworkGuru.java
index 12f23cc..b513325 100755
--- a/server/src/com/cloud/network/guru/PodBasedNetworkGuru.java
+++ b/server/src/com/cloud/network/guru/PodBasedNetworkGuru.java
@@ -149,6 +149,10 @@ public class PodBasedNetworkGuru extends AdapterBase implements NetworkGuru
{
         
         nic.deallocate();
         
+        if (s_logger.isDebugEnabled()) {
+            s_logger.debug("Released nic: " + nic);
+        }
+        
         return true;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b4c578e/server/src/com/cloud/network/guru/PublicNetworkGuru.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/guru/PublicNetworkGuru.java b/server/src/com/cloud/network/guru/PublicNetworkGuru.java
index 46477f3..f23ff9a 100755
--- a/server/src/com/cloud/network/guru/PublicNetworkGuru.java
+++ b/server/src/com/cloud/network/guru/PublicNetworkGuru.java
@@ -198,6 +198,10 @@ public class PublicNetworkGuru extends AdapterBase implements NetworkGuru
{
             txn.commit();
         }
         nic.deallocate();
+        
+        if (s_logger.isDebugEnabled()) {
+            s_logger.debug("Deallocated nic: " + nic);
+        }
     }
 
     @Override


Mime
View raw message