Lower log levels for non error's 73/63373/5
authorSam Hague <shague@redhat.com>
Wed, 20 Sep 2017 21:44:04 +0000 (17:44 -0400)
committerSam Hague <shague@redhat.com>
Thu, 21 Sep 2017 16:11:44 +0000 (16:11 +0000)
Change-Id: Ia60e0b8bc87182cc2e4ac6611b77b0f421947da9
Signed-off-by: Sam Hague <shague@redhat.com>
12 files changed:
vpnservice/aclservice/api/src/main/java/org/opendaylight/netvirt/aclservice/api/utils/AclInterfaceCacheUtil.java
vpnservice/elanmanager/elanmanager-impl/src/main/java/org/opendaylight/netvirt/elan/utils/ElanUtils.java
vpnservice/fibmanager/fibmanager-impl/src/main/java/org/opendaylight/netvirt/fibmanager/BaseVrfEntryHandler.java
vpnservice/ipv6service/impl/src/main/java/org/opendaylight/netvirt/ipv6service/IfMgr.java
vpnservice/natservice/natservice-impl/src/main/java/org/opendaylight/netvirt/natservice/internal/ExternalNetworkGroupInstaller.java
vpnservice/natservice/natservice-impl/src/main/java/org/opendaylight/netvirt/natservice/internal/NatUtil.java
vpnservice/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnNatManager.java
vpnservice/neutronvpn/neutronvpn-impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnUtils.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/SubnetOpDpnManager.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/SubnetRouteInterfaceStateChangeListener.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnFootprintService.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnSubnetRouteHandler.java

index d9915d95d38c949efe1d6c43d2cba9c6ea298cd2..59946c9e8e6066b92f20f4bfdee20e5db8148287 100644 (file)
@@ -24,7 +24,7 @@ public final class AclInterfaceCacheUtil {
     public static synchronized void removeAclInterfaceFromCache(String interfaceId) {
         AclInterface aclInterface = cachedMap.get(interfaceId);
         if (aclInterface == null) {
-            LOG.warn("AclInterface object not found in cache for interface {}", interfaceId);
+            LOG.debug("AclInterface object not found in cache for interface {}", interfaceId);
             return;
         }
         if (aclInterface.isMarkedForDelete()) {
index 53422860a26cb43cc15eba83405b59644b3ef3b1..262b2d680af27b719653495ce80cb2b2b0218e27 100755 (executable)
@@ -831,7 +831,7 @@ public class ElanUtils {
                     .getEgressActionsForInterface(getEgressActionInput);
             RpcResult<GetEgressActionsForInterfaceOutput> rpcResult = result.get();
             if (!rpcResult.isSuccessful()) {
-                LOG.warn("RPC Call to Get egress actions for interface {} returned with Errors {}", ifName,
+                LOG.debug("RPC Call to Get egress actions for interface {} returned with Errors {}", ifName,
                         rpcResult.getErrors());
             } else {
                 List<Action> actions = rpcResult.getResult().getAction();
index 539d2c3c8dbfef2a5fe9af8d0e3ea5c7b2ec3fdc..96b0dfcc23fd0a830c40a6dbd4902a2645f65cf7 100644 (file)
@@ -291,7 +291,7 @@ public class BaseVrfEntryHandler implements AutoCloseable {
         String ipPrefix = prefixInfo.getIpAddress();
         String ifName = prefixInfo.getVpnInterfaceName();
         if (ifName == null) {
-            LOG.warn("Failed to get VPN interface for prefix {}", ipPrefix);
+            LOG.debug("Failed to get VPN interface for prefix {}", ipPrefix);
             return;
         }
         String macAddress = FibUtil.getMacAddressFromPrefix(dataBroker, ifName, ipPrefix);
index 7dcb1d58b43cf3e8b0b422050d26793096a7bb95..c761dcd902f0b2bed10d0d399f34c4b1ccb2228c 100644 (file)
@@ -401,7 +401,7 @@ public class IfMgr {
     public void updateHostIntf(Uuid portId, Boolean portIncludesV6Address) {
         VirtualPort intf = vintfs.get(portId);
         if (intf == null) {
-            LOG.warn("Update Host interface failed. Could not get Host interface details {}", portId);
+            LOG.debug("Update Host interface failed. Could not get Host interface details {}", portId);
             return;
         }
 
index d2b37185d3318bfa9fc54914a82bd19ae8f2953a..3b2a6d825334e55e56d411bc68a626ef5afbb6d1 100644 (file)
@@ -62,7 +62,7 @@ public class ExternalNetworkGroupInstaller {
         }
 
         if (NatUtil.isIPv6Subnet(subnetMap.getSubnetIp())) {
-            LOG.error("installExtNetGroupEntries : Subnet id {} is not an IPv4 subnet, hence skipping.",
+            LOG.debug("installExtNetGroupEntries : Subnet id {} is not an IPv4 subnet, hence skipping.",
                     subnetMap.getId());
             return;
         }
@@ -86,7 +86,7 @@ public class ExternalNetworkGroupInstaller {
         }
 
         if (NatUtil.isIPv6Subnet(subnetMap.getSubnetIp())) {
-            LOG.warn("installExtNetGroupEntries : Subnet-id {} is not an IPv4 subnet, hence skipping.",
+            LOG.debug("installExtNetGroupEntries : Subnet-id {} is not an IPv4 subnet, hence skipping.",
                     subnetMap.getId());
             return;
         }
@@ -171,7 +171,7 @@ public class ExternalNetworkGroupInstaller {
 
         Collection<String> extInterfaces = elanService.getExternalElanInterfaces(networkId.getValue());
         if (extInterfaces == null || extInterfaces.isEmpty()) {
-            LOG.error("removeExtNetGroupEntries : No external ELAN interfaces attached to network {} subnet {}",
+            LOG.debug("removeExtNetGroupEntries : No external ELAN interfaces attached to network {} subnet {}",
                     networkId, subnetName);
             return;
         }
@@ -192,8 +192,8 @@ public class ExternalNetworkGroupInstaller {
                                                long groupId, String extInterface) {
         BigInteger dpId = NatUtil.getDpnForInterface(interfaceManager, extInterface);
         if (BigInteger.ZERO.equals(dpId)) {
-            LOG.error("buildExtNetGroupEntity: No DPN for interface {}. NAT ext-net flow will not be installed "
-                    + "for subnet {}", extInterface, subnetName);
+            LOG.info("buildExtNetGroupEntity: No DPN for interface {}. NAT ext-net flow will not be installed "
+                + "for subnet {}", extInterface, subnetName);
             return null;
         }
 
index 7d0d8f941b9aea4691da7b5c157693f792a779bf..525484b10392fb0729478d6ddd2c235d4f416047 100644 (file)
@@ -601,7 +601,7 @@ public class NatUtil {
                 }
             }
         }
-        LOG.error("getVpnForRouter : VPN not found for routerID:{}", routerId);
+        LOG.debug("getVpnForRouter : VPN not found for routerID:{}", routerId);
         return null;
     }
 
@@ -1108,7 +1108,7 @@ public class NatUtil {
                                                WriteTransaction writeOperTxn) {
         BigInteger dpId = getDpnForInterface(ifaceMgrRpcService, vpnInterfaceName);
         if (dpId.equals(BigInteger.ZERO)) {
-            LOG.warn("removeFromNeutronRouterDpnsMap : Could not retrieve dp id for interface {} to handle router {}"
+            LOG.debug("removeFromNeutronRouterDpnsMap : Could not retrieve dp id for interface {} to handle router {}"
                     + " dissociation model", vpnInterfaceName, routerName);
             return;
         }
@@ -1153,8 +1153,9 @@ public class NatUtil {
                                         OdlInterfaceRpcService ifaceMgrRpcService, WriteTransaction writeOperTxn) {
         BigInteger dpId = getDpnForInterface(ifaceMgrRpcService, vpnInterfaceName);
         if (dpId.equals(BigInteger.ZERO)) {
-            LOG.warn("removeFromDpnRoutersMap : removeFromDpnRoutersMap() : Could not retrieve DPN ID for interface {} "
-                    + "to handle router {} dissociation model", vpnInterfaceName, routerName);
+            LOG.debug("removeFromDpnRoutersMap : removeFromDpnRoutersMap() : "
+                + "Could not retrieve DPN ID for interface {} to handle router {} dissociation model",
+                vpnInterfaceName, routerName);
             return;
         }
         removeFromDpnRoutersMap(broker, routerName, vpnInterfaceName, dpId, ifaceMgrRpcService, writeOperTxn);
@@ -1238,7 +1239,7 @@ public class NatUtil {
                 continue;
             }
             if (!vmInterfaceName.equalsIgnoreCase(vpnInterfaceName)) {
-                LOG.error("removeFromDpnRoutersMap : Router {} is present in the DPN {} through the other interface {} "
+                LOG.info("removeFromDpnRoutersMap : Router {} is present in the DPN {} through the other interface {} "
                     + "Hence DPN router model WOULD NOT be cleared", routerName, curDpnId, vmInterfaceName);
                 return;
             }
@@ -1278,7 +1279,7 @@ public class NatUtil {
             if (dpIdResult.isSuccessful()) {
                 nodeId = dpIdResult.getResult().getDpid();
             } else {
-                LOG.error("removeFromDpnRoutersMap : Could not retrieve DPN Id for interface {}", ifName);
+                LOG.debug("removeFromDpnRoutersMap : Could not retrieve DPN Id for interface {}", ifName);
             }
         } catch (NullPointerException | InterruptedException | ExecutionException e) {
             LOG.error("removeFromDpnRoutersMap : Exception when getting dpn for interface {}", ifName, e);
index 56009c1a0c3fe1c2c3a62282d9139452cf596ed9..f0ac3a13503377985329248e84ba140f5f6d0c9b 100644 (file)
@@ -565,7 +565,7 @@ public class NeutronvpnNatManager implements AutoCloseable {
             if (optionalRouters.isPresent()) {
                 builder = new RoutersBuilder(optionalRouters.get());
             } else {
-                LOG.error("No Routers element found for router {}", routerId.getValue());
+                LOG.debug("No Routers element found for router {}", routerId.getValue());
                 return;
             }
             List<Uuid> subList = NeutronvpnUtils.getNeutronRouterSubnetIds(broker, routerId);
index abec07ccf17214ad68544610d2341bb754e872da..d5270875039e4161cd15fc227f99d608ad05b4a1 100644 (file)
@@ -213,7 +213,7 @@ public class NeutronvpnUtils {
                 }
             }
         }
-        LOG.error("getVpnForNetwork: Failed for network {} as no VPN present in VPNMaps DS", network.getValue());
+        LOG.debug("getVpnForNetwork: Failed for network {} as no VPN present in VPNMaps DS", network.getValue());
         return null;
     }
 
@@ -259,7 +259,7 @@ public class NeutronvpnUtils {
                 }
             }
         }
-        LOG.error("getVpnForRouter: Failed for router {} as no VPN present in VPNMaps DS", routerId.getValue());
+        LOG.debug("getVpnForRouter: Failed for router {} as no VPN present in VPNMaps DS", routerId.getValue());
         return null;
     }
 
index 336ef98a9a3f628c15dd37c5f435f23c92a89b92..e734221e0ab6aa90f14a5cfb5268fa798b211320 100644 (file)
@@ -174,7 +174,7 @@ public class SubnetOpDpnManager {
                 subOpIdentifier.child(SubnetToDpn.class, new SubnetToDpnKey(dpnId));
             Optional<SubnetToDpn> optionalSubDpn = VpnUtil.read(broker, LogicalDatastoreType.OPERATIONAL, dpnOpId);
             if (!optionalSubDpn.isPresent()) {
-                LOG.error("removeInterfaceFromDpn: Cannot delete, SubnetToDpn for intf {} subnet {} DPN {}"
+                LOG.debug("removeInterfaceFromDpn: Cannot delete, SubnetToDpn for intf {} subnet {} DPN {}"
                         + " not available in datastore", intfName, subnetId.getValue(), dpnId);
                 return false;
             }
index 7f6c346f90285ddae2a7137b4908a649f59e3cd4..c54121c8f32a45af65fb149a96d532e2ff48980a 100644 (file)
@@ -80,7 +80,7 @@ public class SubnetRouteInterfaceStateChangeListener extends AsyncDataTreeChange
                 if (intrf.getOperStatus().equals(Interface.OperStatus.Up)) {
                     subnetId = getSubnetId(intrf);
                     if (subnetId == null) {
-                        LOG.error("SubnetRouteInterfaceListener add: Port {} doesnt exist in configDS",
+                        LOG.trace("SubnetRouteInterfaceListener add: Port {} doesnt exist in configDS",
                                 intrf.getName());
                         return;
                     }
@@ -120,7 +120,7 @@ public class SubnetRouteInterfaceStateChangeListener extends AsyncDataTreeChange
                 LOG.trace("SubnetRouteInterfaceListener remove: Received interface {} down event", intrf);
                 subnetId = getSubnetId(intrf);
                 if (subnetId == null) {
-                    LOG.error("SubnetRouteInterfaceListener add: Port {} doesnt exist in configDS",
+                    LOG.trace("SubnetRouteInterfaceListener add: Port {} doesnt exist in configDS",
                             intrf.getName());
                     return;
                 }
@@ -172,7 +172,7 @@ public class SubnetRouteInterfaceStateChangeListener extends AsyncDataTreeChange
                     original, update);
                 subnetId = getSubnetId(update);
                 if (subnetId == null) {
-                    LOG.error("SubnetRouteInterfaceListener update: Port {} doesnt exist in configDS",
+                    LOG.trace("SubnetRouteInterfaceListener update: Port {} doesnt exist in configDS",
                             update.getName());
                     return;
                 }
index a8b8bc03ce816afbd09ae8a4a5c1ffe7ad7a42b8..21d8153cd02f24eff1f968136062741c37c693dc 100644 (file)
@@ -307,7 +307,7 @@ public class VpnFootprintService implements IVpnFootprintService {
             }
             List<IpAddresses> ipAddresses = dpnInVpn.getIpAddresses();
             if (ipAddresses == null) {
-                LOG.error("Could not find ipAddresses for DpnInVpn map for VPN=[name={} rd={} id={}] and dpnId={}",
+                LOG.info("Could not find ipAddresses for DpnInVpn map for VPN=[name={} rd={} id={}] and dpnId={}",
                         vpnName, rd, id, dpnId);
                 return;
             }
index 6e43b7754362495beed91805143f1eb9f7540531..1df2f5d14e0697a351366e5df9e15f890caffcdc 100644 (file)
@@ -552,7 +552,7 @@ public class VpnSubnetRouteHandler {
                 Optional<SubnetOpDataEntry> optionalSubs = VpnUtil.read(dataBroker, LogicalDatastoreType.OPERATIONAL,
                     subOpIdentifier);
                 if (!optionalSubs.isPresent()) {
-                    LOG.error("{} onInterfaceUp: SubnetOpDataEntry for subnet {} is not available."
+                    LOG.trace("{} onInterfaceUp: SubnetOpDataEntry for subnet {} is not available."
                             + " Ignoring interfaceUp for port{}", LOGGING_PREFIX, subnetId.getValue(), intfName);
                     return;
                 }