Committed by
Gerrit Code Review
Added more debug messages
Change-Id: I52b38b38998db65f0f4ba981e6f93c041b2f658a
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -910,24 +910,26 @@ public class CordVtn implements CordVtnService { | ... | @@ -910,24 +910,26 @@ public class CordVtn implements CordVtnService { |
910 | public void connected(Host host) { | 910 | public void connected(Host host) { |
911 | // TODO remove check VM here after applying network config host provider | 911 | // TODO remove check VM here after applying network config host provider |
912 | if (!isVm(host)) { | 912 | if (!isVm(host)) { |
913 | + log.debug("Host {} is not a VM, ignore it.", host.id()); | ||
913 | return; | 914 | return; |
914 | } | 915 | } |
915 | 916 | ||
916 | CordVtnNode node = getNodeByBridgeId(host.location().deviceId()); | 917 | CordVtnNode node = getNodeByBridgeId(host.location().deviceId()); |
917 | if (node == null || !Objects.equals(getNodeState(node), NodeState.COMPLETE)) { | 918 | if (node == null || !Objects.equals(getNodeState(node), NodeState.COMPLETE)) { |
918 | - // do nothing for the host on unregistered or unprepared device | 919 | + log.debug("VM {} is detected unknown or incomplete device, ignore it.", host.id()); |
919 | return; | 920 | return; |
920 | } | 921 | } |
921 | 922 | ||
922 | OpenstackNetwork vNet = getOpenstackNetworkByHost(host); | 923 | OpenstackNetwork vNet = getOpenstackNetworkByHost(host); |
923 | if (vNet == null) { | 924 | if (vNet == null) { |
925 | + log.debug("Failed to get OpenStack network for VM {}, ignore it.", host.id()); | ||
924 | return; | 926 | return; |
925 | } | 927 | } |
926 | 928 | ||
927 | // TODO host ip should be set in host information after applying network config host provider | 929 | // TODO host ip should be set in host information after applying network config host provider |
928 | IpAddress hostIp = getHostIpFromOpenstack(host); | 930 | IpAddress hostIp = getHostIpFromOpenstack(host); |
929 | if (hostIp == null) { | 931 | if (hostIp == null) { |
930 | - log.error("Failed to get host IP of {}", host.id()); | 932 | + log.debug("Failed to get host IP of {}, ignore it.", host.id()); |
931 | return; | 933 | return; |
932 | } | 934 | } |
933 | 935 | ... | ... |
-
Please register or login to post a comment