mirror of https://github.com/apache/cloudstack.git
More logging on nic release
This commit is contained in:
parent
3c58197de2
commit
9bebe245ca
|
|
@ -167,9 +167,15 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
||||||
DataCenterVO dcVo = _dcDao.findById(dcId);
|
DataCenterVO dcVo = _dcDao.findById(dcId);
|
||||||
if(dcVo.getNetworkType() != NetworkType.Basic) {
|
if(dcVo.getNetworkType() != NetworkType.Basic) {
|
||||||
super.release(nic, vm, reservationId);
|
super.release(nic, vm, reservationId);
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Released nic: " + nic);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
nic.deallocate();
|
nic.deallocate();
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Released nic: " + nic);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -177,6 +183,9 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
||||||
_dcDao.releaseLinkLocalIpAddress(nic.getId(), reservationId);
|
_dcDao.releaseLinkLocalIpAddress(nic.getId(), reservationId);
|
||||||
|
|
||||||
nic.deallocate();
|
nic.deallocate();
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Released nic: " + nic);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,10 @@ public class PodBasedNetworkGuru extends AdapterBase implements NetworkGuru {
|
||||||
|
|
||||||
nic.deallocate();
|
nic.deallocate();
|
||||||
|
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Released nic: " + nic);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,10 @@ public class PublicNetworkGuru extends AdapterBase implements NetworkGuru {
|
||||||
txn.commit();
|
txn.commit();
|
||||||
}
|
}
|
||||||
nic.deallocate();
|
nic.deallocate();
|
||||||
|
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Deallocated nic: " + nic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue