Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zap: change cni component structure #2143

Merged
merged 4 commits into from
Aug 15, 2023
Merged

zap: change cni component structure #2143

merged 4 commits into from
Aug 15, 2023

Conversation

paulyufan2
Copy link
Contributor

@paulyufan2 paulyufan2 commented Aug 14, 2023

Reason for Change:

This PR is to change the CNI zap logging component structure. Instead of putting component:cni everywhere, we provide component name globally.

Example logs in Linux:
{"level":"info","ts":"2023-08-15T20:44:48.779Z","msg":"Plugin started","pid":3139991,"component":"cni"}
{"level":"info","ts":"2023-08-15T20:44:48.779Z","msg":"[cni-net] Processing ADD command","pid":3139991,"component":"cni","containerId":"9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c","netNS":"/var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb","ifName":"eth0","args":"K8S_POD_NAME=linux-pod2;K8S_POD_INFRA_CONTAINER_ID=9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c;K8S_POD_UID=ed43fc0a-e04c-4876-ba1d-be581f99ee39;IgnoreUnknown=1;K8S_POD_NAMESPACE=default","path":"/opt/cni/bin","stdinData":"{"cniVersion":"0.3.0","ipam":{"mode":"overlay","type":"azure-cns"},"ipsToRouteViaHost":["169.254.20.10"],"mode":"transparent","name":"azure","type":"azure-vnet"}"}
{"level":"info","ts":"2023-08-15T20:44:48.780Z","msg":"[cni-net] Found network with subnet","pid":3139991,"component":"cni","network":"azure","subnet":"10.244.0.0/16"}
{"level":"info","ts":"2023-08-15T20:44:48.780Z","msg":"linux-pod2","pid":3139991,"component":"cni"}
{"level":"info","ts":"2023-08-15T20:44:48.780Z","msg":"Requesting IP for pod using ipconfig","pid":3139991,"component":"cni","pod":{"PodName":"linux-pod2","PodNamespace":"default"},"ipconfig":{"desiredIPAddresses":null,"podInterfaceID":"9ac1b7e2-eth0","infraContainerID":"9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c","orchestratorContext":{"PodName":"linux-pod2","PodNamespace":"default"},"ifname":""}}
{"level":"info","ts":"2023-08-15T20:44:48.783Z","msg":"Received info for pod","pid":3139991,"component":"cni","ipv4info":{},"podInfo":{"PodName":"linux-pod2","PodNamespace":"default"}}
{"level":"info","ts":"2023-08-15T20:44:48.783Z","msg":"Received info for pod","pid":3139991,"component":"cni","ipv4info":{},"podInfo":{"PodName":"linux-pod2","PodNamespace":"default"}}
{"level":"info","ts":"2023-08-15T20:44:48.783Z","msg":"[cni-net] Creating endpoint","pid":3139991,"component":"cni","endpointInfo":"Id:9ac1b7e2-eth0 ContainerID:9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c NetNsPath:/var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb IfName:eth0 IfIndex:0 MacAddr: IPAddrs:[{10.244.0.84 ffff0000} {fd9a:2e13:4857:dd28::18 ffffffffffffffff0000000000000000}] Gateways:[] Data:map[vethname:default.linux-pod2]"}
2023/08/15 20:44:48 [3139991] Generate veth name based on the key provided default.linux-pod2
2023/08/15 20:44:48 [3139991] Transparent client
2023/08/15 20:44:48 [3139991] [net] Creating veth pair azvf1dc5516897 azvf1dc55168972.
2023/08/15 20:44:48 [3139991] [net] Setting link azvf1dc5516897 state up.
2023/08/15 20:44:48 [3139991] [Azure-Utils] sysctl -w net.ipv6.conf.azvf1dc5516897.accept_ra=0
2023/08/15 20:44:48 [3139991] Setting mtu 1500 on veth interface azvf1dc5516897
2023/08/15 20:44:48 [3139991] [net] Adding route for the ip 10.244.0.84/32
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:10.244.0.84 Mask:ffffffff} Src: Gw: Protocol:0 DevName: Scope:0 Priority:0 Table:0} to link azvf1dc5516897.
2023/08/15 20:44:48 [3139991] [net] Adding route for the ip fd9a:2e13:4857:dd28::18/128
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:10.244.0.84 Mask:ffffffff} Src: Gw: Protocol:0 DevName: Scope:0 Priority:0 Table:0} to link azvf1dc5516897.
2023/08/15 20:44:48 [3139991] [netlink] Received {NlMsghdr:{Len:64 Type:2 Flags:0 Seq:6 Pid:3139991} data:[239 255 255 255 44 0 0 0 24 0 5 6 6 0 0 0 151 233 47 0 2 32 0 0 0 4 0 1 0 0 0 0 8 0 1 0 10 244 0 84 8 0 4 0 155 0 0 0] payload:[]}, err=file exists
2023/08/15 20:44:48 [3139991] [net] route already exists
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:fd9a:2e13:4857:dd28::18 Mask:ffffffffffffffffffffffffffffffff} Src: Gw: Protocol:0 DevName: Scope:0 Priority:0 Table:0} to link azvf1dc5516897.
2023/08/15 20:44:48 [3139991] calling setArpProxy for azvf1dc5516897
2023/08/15 20:44:48 [3139991] [Azure-Utils] echo 1 > /proc/sys/net/ipv4/conf/azvf1dc5516897/proxy_arp
2023/08/15 20:44:48 [3139991] [net] Opening netns /var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb.
2023/08/15 20:44:48 [3139991] [net] Setting link azvf1dc55168972 netns /var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb.
2023/08/15 20:44:48 [3139991] [net] Entering netns /var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb.
2023/08/15 20:44:48 [3139991] Enable ipv6 setting in container.
2023/08/15 20:44:48 [3139991] [Azure-Utils] sysctl -w net.ipv6.conf.all.disable_ipv6=0
2023/08/15 20:44:48 [3139991] [net] Setting link azvf1dc55168972 state down.
2023/08/15 20:44:48 [3139991] [net] Setting link azvf1dc55168972 name eth0.
2023/08/15 20:44:48 [3139991] [Azure-Utils] sysctl -w net.ipv6.conf.eth0.accept_ra=0
2023/08/15 20:44:48 [3139991] [net] Setting link eth0 state up.
2023/08/15 20:44:48 [3139991] [net] Adding IP address 10.244.0.84/16 to link eth0.
2023/08/15 20:44:48 [3139991] [net] Adding IP address fd9a:2e13:4857:dd28::18/64 to link eth0.
2023/08/15 20:44:48 [3139991] [net] Deleting IP route {Dst:{IP:10.244.0.0 Mask:ffff0000} Src: Gw: Protocol:2 DevName: Scope:253 Priority:0 Table:0} from link eth0.
2023/08/15 20:44:48 [3139991] [net] Deleting IP route {Dst:{IP:fd9a:2e13:4857:dd28:: Mask:ffffffffffffffff0000000000000000} Src: Gw: Protocol:2 DevName: Scope:253 Priority:0 Table:0} from link eth0.
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:169.254.1.1 Mask:ffffffff} Src: Gw: Protocol:0 DevName: Scope:253 Priority:0 Table:0} to link eth0.
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:0.0.0.0 Mask:00000000} Src: Gw:169.254.1.1 Protocol:0 DevName: Scope:0 Priority:0 Table:0} to link eth0.
2023/08/15 20:44:48 [3139991] [net] Adding static arp for IP address 169.254.1.1/32 and MAC aa:aa:aa:aa:aa:aa in Container namespace
2023/08/15 20:44:48 [3139991] Setting up ipv6 routes in container
2023/08/15 20:44:48 [3139991] defaultv6ipnet :::/0
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP:fe80::1234:5678:9abc Mask:ffffffffffffffffffffffffffffffff} Src: Gw: Protocol:0 DevName: Scope:253 Priority:0 Table:0} to link eth0.
2023/08/15 20:44:48 [3139991] [net] Adding IP route {Dst:{IP::: Mask:00000000000000000000000000000000} Src: Gw:fe80::1234:5678:9abc Protocol:0 DevName: Scope:0 Priority:0 Table:0} to link eth0.
2023/08/15 20:44:48 [3139991] [net] Add v6 neigh entry for default gw ip
2023/08/15 20:44:48 [3139991] [net] Exiting netns /var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb.
2023/08/15 20:44:48 [3139991] [net] Created endpoint &{Id:9ac1b7e2-eth0 HnsId: SandboxKey: IfName:azvf1dc55168972 HostIfName:azvf1dc5516897 MacAddress:3e:1f:c8:7e:8b:14 InfraVnetIP:{IP: Mask:} LocalIP: IPAddresses:[{IP:10.244.0.84 Mask:ffff0000} {IP:fd9a:2e13:4857:dd28::18 Mask:ffffffffffffffff0000000000000000}] Gateways:[0.0.0.0] DNS:{Suffix: Servers:[] Options:[]} Routes:[{Dst:{IP:0.0.0.0 Mask:00000000} Src: Gw:169.254.1.1 Protocol:0 DevName: Scope:0 Priority:0 Table:0}] VlanID:0 EnableSnatOnHost:false EnableInfraVnet:false EnableMultitenancy:false AllowInboundFromHostToNC:false AllowInboundFromNCToHost:false NetworkContainerID: NetworkNameSpace:/var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb ContainerID:9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c PODName:linux-pod2 PODNameSpace:default InfraVnetAddressSpace: NetNs:}. Num of endpoints:2
2023/08/15 20:44:48 [3139991] [net] Save succeeded.
{"level":"info","ts":"2023-08-15T20:44:48.843Z","msg":"[cni-net] ADD command completed for pod %v with IPs:%+v err:%v.","pid":3139991,"component":"cni","pod":"linux-pod2","IPs":[{"address":"10.244.0.84/16","gateway":"169.254.1.1"},{"address":"fd9a:2e13:4857:dd28::18/64","gateway":"fe80::1234:5678:9abc"}]}
{"level":"info","ts":"2023-08-15T20:44:48.843Z","msg":"Plugin stopped","pid":3139991,"component":"cni"}
2023/08/15 20:44:48 [3139991] Released process lock
{"level":"info","ts":"2023-08-15T20:46:09.224Z","msg":"Environment variable set","pid":3142512,"component":"cni","CNI_COMMAND":"DEL"}
2023/08/15 20:46:09 [3142512] Acquiring process lock
2023/08/15 20:46:09 [3142512] Acquired process lock with timeout value of 10s
2023/08/15 20:46:09 [3142512] Connected to telemetry service
{"level":"info","ts":"2023-08-15T20:46:09.227Z","msg":"Plugin Info","pid":3142512,"component":"cni","name":"azure-vnet","version":"v1.5.9-19-ge338f17e"}
2023/08/15 20:46:09 [3142512] [net] Restored state
{"level":"info","ts":"2023-08-15T20:46:09.228Z","msg":"Plugin started","pid":3142512,"component":"cni"}
{"level":"info","ts":"2023-08-15T20:46:09.228Z","msg":"[cni-net] Processing DEL command","pid":3142512,"component":"cni","containerId":"9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c","netNS":"/var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb","ifName":"eth0","args":"K8S_POD_UID=ed43fc0a-e04c-4876-ba1d-be581f99ee39;IgnoreUnknown=1;K8S_POD_NAMESPACE=default;K8S_POD_NAME=linux-pod2;K8S_POD_INFRA_CONTAINER_ID=9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c","path":"/opt/cni/bin","stdinData":"{"cniVersion":"0.3.0","ipam":{"mode":"overlay","type":"azure-cns"},"ipsToRouteViaHost":["169.254.20.10"],"mode":"transparent","name":"azure","type":"azure-vnet"}"}
{"level":"info","ts":"2023-08-15T20:46:09.228Z","msg":"Execution mode","pid":3142512,"component":"cni","mode":""}
{"level":"info","ts":"2023-08-15T20:46:09.228Z","msg":"[cni-net] Endpoints to be deleted","pid":3142512,"component":"cni","count":1}
{"level":"info","ts":"2023-08-15T20:46:09.228Z","msg":"Deleting endpoint","pid":3142512,"component":"cni","endpointID":"9ac1b7e2-eth0"}
2023/08/15 20:46:09 [3142512] [net] Deleting endpoint 9ac1b7e2-eth0 from network azure.
2023/08/15 20:46:09 [3142512] [net] Deleting route for the ip 10.244.0.84/32
2023/08/15 20:46:09 [3142512] [net] Deleting IP route {Dst:{IP:10.244.0.84 Mask:ffffffff} Src: Gw: Protocol:0 DevName: Scope:0 Priority:0 Table:0} from link azvf1dc5516897.
2023/08/15 20:46:09 [3142512] [net] Deleting route for the ip fd9a:2e13:4857:dd28::18/128
2023/08/15 20:46:09 [3142512] [net] Deleting IP route {Dst:{IP:fd9a:2e13:4857:dd28::18 Mask:ffffffffffffffffffffffffffffffff} Src: Gw: Protocol:0 DevName: Scope:0 Priority:0 Table:0} from link azvf1dc5516897.
2023/08/15 20:46:09 [3142512] [net] Deleted endpoint &{Id:9ac1b7e2-eth0 HnsId: SandboxKey: IfName:azvf1dc55168972 HostIfName:azvf1dc5516897 MacAddress:3e:1f:c8:7e:8b:14 InfraVnetIP:{IP: Mask:} LocalIP: IPAddresses:[{IP:10.244.0.84 Mask:ffff0000} {IP:fd9a:2e13:4857:dd28::18 Mask:ffffffffffffffff0000000000000000}] Gateways:[0.0.0.0] DNS:{Suffix: Servers:[] Options:[]} Routes:[{Dst:{IP:0.0.0.0 Mask:00000000} Src: Gw:169.254.1.1 Protocol:0 DevName: Scope:0 Priority:0 Table:0}] VlanID:0 EnableSnatOnHost:false EnableInfraVnet:false EnableMultitenancy:false AllowInboundFromHostToNC:false AllowInboundFromNCToHost:false NetworkContainerID: NetworkNameSpace:/var/run/netns/cni-55d04a42-99a4-c2aa-ff40-383dff9d1efb ContainerID:9ac1b7e2429d7d2ad36a6b497d6756279fd074d7974910a1c281afeb16e00f6c PODName:linux-pod2 PODNameSpace:default InfraVnetAddressSpace: NetNs:}. Num of endpoints:1
2023/08/15 20:46:09 [3142512] [net] Save succeeded.
{"level":"info","ts":"2023-08-15T20:46:09.229Z","msg":"Release ip","pid":3142512,"component":"cni","ip":"10.244.0.84"}
{"level":"info","ts":"2023-08-15T20:46:09.232Z","msg":"Release ip","pid":3142512,"component":"cni","ip":"fd9a:2e13:4857:dd28::18"}
{"level":"info","ts":"2023-08-15T20:46:09.232Z","msg":"[cni-net] DEL command completed","pid":3142512,"component":"cni","pod":"linux-pod2"}
{"level":"info","ts":"2023-08-15T20:46:09.232Z","msg":"Plugin stopped","pid":3142512,"component":"cni"}

Example of Windows Log:
{"level":"info","ts":"2023-08-15T20:51:20.379Z","msg":"Plugin Info","pid":11200,"component":"cni","name":"azure-vnet","version":"v1.5.9-19-ge338f17e"}
2023/08/15 20:51:20 [11200] [net] Restored state
{"level":"info","ts":"2023-08-15T20:51:20.380Z","msg":"Plugin started","pid":11200,"component":"cni"}
{"level":"info","ts":"2023-08-15T20:51:20.380Z","msg":"[cni-net] Processing ADD command","pid":11200,"component":"cni","containerId":"45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61","netNS":"31b673d2-2b52-480a-8ca2-ffd04ffb4a68","ifName":"eth0","args":"K8S_POD_NAMESPACE=default;K8S_POD_NAME=windows-pod23;K8S_POD_INFRA_CONTAINER_ID=45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61;K8S_POD_UID=f2d54c55-bdb2-478a-95ec-bff490a4df37;IgnoreUnknown=1","path":"c:/k/azurecni/bin","stdinData":"{"AdditionalArgs":[{"Name":"EndpointPolicy","Value":{"ExceptionList":["10.244.0.0/16"],"Type":"OutBoundNAT"}},{"Name":"EndpointPolicy","Value":{"ExceptionList":["fd9a:2e13:4857:dd28::/64"],"Type":"OutBoundNAT"}},{"Name":"EndpointPolicy","Value":{"Action":"Block","Direction":"Out","Priority":200,"Protocols":"6","RemoteAddresses":"168.63.129.16/32","RemotePorts":"80","RuleType":"Switch","Type":"ACL"}},{"Name":"EndpointPolicy","Value":{"Action":"Allow","Direction":"In","Priority":65500,"Type":"ACL"}},{"Name":"EndpointPolicy","Value":{"Action":"Allow","Direction":"Out","Priority":65500,"Type":"ACL"}}],"bridge":"azure0","capabilities":{"dns":true,"portMappings":true},"cniVersion":"0.3.0","dns":{"Nameservers":["10.0.0.10","168.63.129.16"],"Search":["svc.cluster.local"]},"executionMode":"v4swift","ipam":{"mode":"v4overlay","type":"azure-cns"},"mode":"bridge","name":"azure","runtimeConfig":{"dns":{"Servers":["10.0.0.10"],"Searches":["default.svc.cluster.local","svc.cluster.local","cluster.local"],"Options":["ndots:5"]}},"type":"azure-vnet","windowsSettings":{"enableLoopbackDSR":true}}"}
{"level":"info","ts":"2023-08-15T20:51:20.382Z","msg":"[cni-net] Found network with subnet","pid":11200,"component":"cni","network":"azure","subnet":"10.244.0.0/16"}
{"level":"info","ts":"2023-08-15T20:51:20.382Z","msg":"windows-pod23","pid":11200,"component":"cni"}
{"level":"info","ts":"2023-08-15T20:51:20.382Z","msg":"Requesting IP for pod using ipconfig","pid":11200,"component":"cni","pod":{"PodName":"windows-pod23","PodNamespace":"default"},"ipconfig":{"desiredIPAddresses":null,"podInterfaceID":"45dce45f-eth0","infraContainerID":"45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61","orchestratorContext":{"PodName":"windows-pod23","PodNamespace":"default"},"ifname":""}}
{"level":"info","ts":"2023-08-15T20:51:20.694Z","msg":"Received info for pod","pid":11200,"component":"cni","ipv4info":{},"podInfo":{"PodName":"windows-pod23","PodNamespace":"default"}}
{"level":"info","ts":"2023-08-15T20:51:20.694Z","msg":"Received info for pod","pid":11200,"component":"cni","ipv4info":{},"podInfo":{"PodName":"windows-pod23","PodNamespace":"default"}}
{"level":"info","ts":"2023-08-15T20:51:20.694Z","msg":"Runtime Info","pid":11200,"component":"cni","config":{"dns":{"servers":["10.0.0.10"],"searches":["default.svc.cluster.local","svc.cluster.local","cluster.local"],"options":["ndots:5"]}}}
{"level":"info","ts":"2023-08-15T20:51:20.694Z","msg":"[cni-net] Creating endpoint","pid":11200,"component":"cni","endpointInfo":"Id:45dce45f-eth0 ContainerID:45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61 NetNsPath:31b673d2-2b52-480a-8ca2-ffd04ffb4a68 IfName:eth0 IfIndex:0 MacAddr: IPAddrs:[{10.244.3.80 ffff0000} {fd9a:2e13:4857:dd28::390 ffffffffffffffff0000000000000000}] Gateways:[] Data:map[]"}
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: OutBoundNAT
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: OutBoundNAT
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: ACL
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: ACL
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: ACL
2023/08/15 20:51:20 [11200] DSR policy for ip:10.244.3.80
2023/08/15 20:51:20 [11200] Successfully retrieve endpoint policy: OutBoundNAT
2023/08/15 20:51:20 [11200] [net] Creating hcn endpoint: 45dce45f-eth0 computenetwork:6e43a293-6c18-4b33-8a59-89f513759934
2023/08/15 20:51:20 [11200] [net] Successfully created hcn endpoint with response: &{Id:76489afa-8616-4656-813b-e8ef4898324c Name:45dce45f-eth0 HostComputeNetwork:6e43a293-6c18-4b33-8a59-89f513759934 HostComputeNamespace: Policies:[{Type:OutBoundNAT Settings:[123 34 69 120 99 101 112 116 105 111 110 115 34 58 91 34 49 48 46 50 52 52 46 48 46 48 47 49 54 34 93 125]} {Type:OutBoundNAT Settings:[123 34 69 120 99 101 112 116 105 111 110 115 34 58 91 34 102 100 57 97 58 50 101 49 51 58 52 56 53 55 58 100 100 50 56 58 58 47 54 52 34 93 125]} {Type:ACL Settings:[123 34 80 114 111 116 111 99 111 108 115 34 58 34 54 34 44 34 82 101 109 111 116 101 65 100 100 114 101 115 115 101 115 34 58 34 49 54 56 46 54 51 46 49 50 57 46 49 54 47 51 50 34 44 34 82 101 109 111 116 101 80 111 114 116 115 34 58 34 56 48 34 44 34 80 114 105 111 114 105 116 121 34 58 50 48 48 44 34 65 99 116 105 111 110 34 58 34 66 108 111 99 107 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 44 34 82 117 108 101 84 121 112 101 34 58 34 83 119 105 116 99 104 34 125]} {Type:ACL Settings:[123 34 80 114 105 111 114 105 116 121 34 58 54 53 53 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 73 110 34 125]} {Type:ACL Settings:[123 34 80 114 105 111 114 105 116 121 34 58 54 53 53 48 48 44 34 65 99 116 105 111 110 34 58 34 65 108 108 111 119 34 44 34 68 105 114 101 99 116 105 111 110 34 58 34 79 117 116 34 125]} {Type:OutBoundNAT Settings:[123 34 68 101 115 116 105 110 97 116 105 111 110 115 34 58 91 34 49 48 46 50 52 52 46 51 46 56 48 34 93 125]} {Type:L2Driver Settings:[]} {Type:EncapOverhead Settings:[123 34 79 118 101 114 104 101 97 100 34 58 53 48 125]}] IpConfigurations:[{IpAddress:10.244.3.80 PrefixLength:16} {IpAddress:fd9a:2e13:4857:dd28::390 PrefixLength:64}] Dns:{Domain:kube-system.svc.cluster.local,svc.cluster.local,cluster.local Search:[default.svc.cluster.local svc.cluster.local cluster.local] ServerList:[10.0.0.10] Options:[]} Routes:[{NextHop:10.244.3.1 DestinationPrefix:0.0.0.0/0 Metric:0} {NextHop:fd9a:2e13:4857:dd28::301 DestinationPrefix:::/0 Metric:0}] MacAddress:00-15-5D-D0-01-80 Flags:0 Health:{Data: Extra:{Resources:[] SharedContainers:[91 93] LayeredOn: SwitchGuid: UtilityVM: VirtualMachine:}} SchemaVersion:{Major:2 Minor:0}}
2023/08/15 20:51:20 [11200] [net] Created endpoint &{Id:45dce45f-eth0 HnsId:76489afa-8616-4656-813b-e8ef4898324c SandboxKey:45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61 IfName:eth0 HostIfName: MacAddress:00:15:5d:d0:01:80 InfraVnetIP:{IP: Mask:} LocalIP: IPAddresses:[{IP:10.244.3.80 Mask:ffff0000} {IP:fd9a:2e13:4857:dd28::390 Mask:ffffffffffffffff0000000000000000}] Gateways:[10.244.3.1] DNS:{Suffix:default.svc.cluster.local,svc.cluster.local,cluster.local Servers:[10.0.0.10] Options:[ndots:5]} Routes:[{Dst:{IP:0.0.0.0 Mask:00000000} Src: Gw:10.244.3.1 Protocol:0 DevName: Scope:0 Priority:0 Table:0}] VlanID:0 EnableSnatOnHost:false EnableInfraVnet:false EnableMultitenancy:false AllowInboundFromHostToNC:false AllowInboundFromNCToHost:false NetworkContainerID: NetworkNameSpace: ContainerID:45dce45f6be6bbcbdbf95275743763425abe026a690153b287365f5d4aaa9e61 PODName:windows-pod23 PODNameSpace:default InfraVnetAddressSpace: NetNs:31b673d2-2b52-480a-8ca2-ffd04ffb4a68}. Num of endpoints:10
2023/08/15 20:51:20 [11200] [net] Save succeeded.
{"level":"info","ts":"2023-08-15T20:51:20.716Z","msg":"[cni-net] ADD command completed for pod %v with IPs:%+v err:%v.","pid":11200,"component":"cni","pod":"windows-pod23","IPs":[{"address":"10.244.3.80/16","gateway":"10.244.3.1"},{"address":"fd9a:2e13:4857:dd28::390/64","gateway":"fd9a:2e13:4857:dd28::301"}]}
{"level":"info","ts":"2023-08-15T20:51:20.716Z","msg":"Plugin stopped","pid":11200,"component":"cni"}
2023/08/15 20:51:20 [11200] Released process lock

Issue Fixed:

Requirements:

Notes:

@paulyufan2 paulyufan2 added the cni Related to CNI. label Aug 14, 2023
@paulyufan2 paulyufan2 requested a review from a team as a code owner August 14, 2023 21:10
@paulyufan2 paulyufan2 force-pushed the zaplogpid branch 2 times, most recently from af6f1f9 to 6651016 Compare August 15, 2023 17:26
@paulyufan2 paulyufan2 merged commit 0f835df into master Aug 15, 2023
@paulyufan2 paulyufan2 deleted the zaplogpid branch August 15, 2023 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cni Related to CNI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants