dyrnq / kubeadm-vagrant

Run kubernetes cluster with kubeadm on vagrant.
1 stars 5 forks source link

pod IP get 172.17.0.2 calico not working #54

Closed dyrnq closed 2 years ago

dyrnq commented 2 years ago
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pri-kns.kube-system" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pro-kns.kube-system" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pro-kns.kube-system" ipVersion=0x4 table="mangle"
2022-09-17 09:36:39.243 [INFO][104] felix/int_dataplane.go 1524: Received *proto.ActiveProfileUpdate update from calculation graph msg=id:<name:"ksa.kube-system.calico-kube-controllers" > profile:<> 
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pri-_PTRGc0U-L5Kz7V6ERW" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pro-_PTRGc0U-L5Kz7V6ERW" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-pro-_PTRGc0U-L5Kz7V6ERW" ipVersion=0x4 table="mangle"
2022-09-17 09:36:39.243 [INFO][104] felix/int_dataplane.go 1524: Received *proto.WorkloadEndpointUpdate update from calculation graph msg=id:<orchestrator_id:"k8s" workload_id:"kube-system/calico-kube-controllers-749f6598d9-nhp6q" endpoint_id:"eth0" > endpoint:<state:"active" name:"cali6dab2dd7d06" profile_ids:"kns.kube-system" profile_ids:"ksa.kube-system.calico-kube-controllers" ipv4_nets:"172.17.0.2/32" > 
2022-09-17 09:36:39.243 [INFO][104] felix/endpoint_mgr.go 588: Updating per-endpoint chains. id=proto.WorkloadEndpointID{OrchestratorId:"k8s", WorkloadId:"kube-system/calico-kube-controllers-749f6598d9-nhp6q", EndpointId:"eth0"}
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-tw-cali6dab2dd7d06" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-pri-kns.kube-system"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-pri-_PTRGc0U-L5Kz7V6ERW"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-fw-cali6dab2dd7d06" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-pro-kns.kube-system"
2022-09-17 09:36:39.243 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-pro-_PTRGc0U-L5Kz7V6ERW"
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-sm-cali6dab2dd7d06" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.244 [INFO][104] felix/endpoint_mgr.go 619: Updating endpoint routes. id=proto.WorkloadEndpointID{OrchestratorId:"k8s", WorkloadId:"kube-system/calico-kube-controllers-749f6598d9-nhp6q", EndpointId:"eth0"}
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-from-wl-dispatch" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-fw-cali6dab2dd7d06"
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-to-wl-dispatch" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-tw-cali6dab2dd7d06"
2022-09-17 09:36:39.244 [INFO][104] felix/endpoint_mgr.go 1165: Skipping configuration of interface because it is oper down. ifaceName="cali6dab2dd7d06"
2022-09-17 09:36:39.244 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-set-endpoint-mark" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.245 [INFO][104] felix/table.go 580: Chain became referenced, marking it for programming chainName="cali-sm-cali6dab2dd7d06"
2022-09-17 09:36:39.245 [INFO][104] felix/table.go 506: Queueing update of chain. chainName="cali-from-endpoint-mark" ipVersion=0x4 table="filter"
2022-09-17 09:36:39.245 [INFO][104] felix/endpoint_mgr.go 481: Re-evaluated workload endpoint status adminUp=true failed=false known=true operUp=false status="down" workloadEndpointID=proto.WorkloadEndpointID{OrchestratorId:"k8s", WorkloadId:"kube-system/calico-kube-controllers-749f6598d9-nhp6q", EndpointId:"eth0"}
dyrnq commented 2 years ago
2022-09-17 09:36:30.957 [ERROR][28] tunnel-ip-allocator/ipam.go 1788: Error reading block 10.244.39.0/26: resource does not exist: IPAMBlock(10-244-39-0-26) with error: ipamblocks.crd.projectcalico.org "10-244-39-0-26" not found
2022-09-17 09:36:30.969 [INFO][28] tunnel-ip-allocator/allocateip.go 357: Current address is not assigned, assign a new one currentAddr="10.244.39.0" type="ipipTunnelAddress"
2022-09-17 09:36:30.969 [INFO][28] tunnel-ip-allocator/allocateip.go 370: Release any old tunnel addresses IP="10.244.39.0" type="ipipTunnelAddress"
2022-09-17 09:36:30.986 [INFO][28] tunnel-ip-allocator/allocateip.go 381: Assign new tunnel address IP="10.244.39.0" type="ipipTunnelAddress"
2022-09-17 09:36:30.986 [INFO][28] tunnel-ip-allocator/ipam.go 104: Auto-assign 1 ipv4, 0 ipv6 addrs for host 'master-1'
2022-09-17 09:36:31.026 [INFO][28] tunnel-ip-allocator/ipam.go 657: Looking up existing affinities for host handle="ipip-tunnel-addr-master-1" host="master-1"
2022-09-17 09:36:31.231 [INFO][28] tunnel-ip-allocator/ipam.go 369: Looking up existing affinities for host host="master-1"
2022-09-17 09:36:31.355 [INFO][28] tunnel-ip-allocator/ipam.go 518: Ran out of existing affine blocks for host host="master-1"
2022-09-17 09:36:31.379 [INFO][28] tunnel-ip-allocator/ipam.go 535: Tried all affine blocks. Looking for an affine block with space, or a new unclaimed block host="master-1"
2022-09-17 09:36:31.513 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 154: Found free block: 10.244.39.0/26
2022-09-17 09:36:31.513 [INFO][28] tunnel-ip-allocator/ipam.go 547: Found unclaimed block host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.513 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 171: Trying to create affinity in pending state host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.555 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 201: Successfully created pending affinity for block host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.555 [INFO][28] tunnel-ip-allocator/ipam.go 152: Attempting to load block cidr=10.244.39.0/26 host="master-1"
2022-09-17 09:36:31.572 [INFO][28] tunnel-ip-allocator/ipam.go 157: The referenced block doesn't exist, trying to create it cidr=10.244.39.0/26 host="master-1"
2022-09-17 09:36:31.623 [INFO][28] tunnel-ip-allocator/ipam.go 164: Wrote affinity as pending cidr=10.244.39.0/26 host="master-1"
2022-09-17 09:36:31.648 [INFO][28] tunnel-ip-allocator/ipam.go 173: Attempting to claim the block cidr=10.244.39.0/26 host="master-1"
2022-09-17 09:36:31.648 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 223: Attempting to create a new block host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.695 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 264: Successfully created block
2022-09-17 09:36:31.695 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 275: Confirming affinity host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.723 [INFO][28] tunnel-ip-allocator/ipam_block_reader_writer.go 290: Successfully confirmed affinity host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.723 [INFO][28] tunnel-ip-allocator/ipam.go 582: Block '10.244.39.0/26' has 64 free ips which is more than 1 ips required. host="master-1" subnet=10.244.39.0/26
2022-09-17 09:36:31.723 [INFO][28] tunnel-ip-allocator/ipam.go 1177: Attempting to assign 1 addresses from block block=10.244.39.0/26 handle="ipip-tunnel-addr-master-1" host="master-1"
2022-09-17 09:36:31.750 [INFO][28] tunnel-ip-allocator/ipam.go 1679: Creating new handle: ipip-tunnel-addr-master-1
2022-09-17 09:36:31.898 [INFO][28] tunnel-ip-allocator/ipam.go 1200: Writing block in order to claim IPs block=10.244.39.0/26 handle="ipip-tunnel-addr-master-1" host="master-1"
2022-09-17 09:36:32.158 [INFO][28] tunnel-ip-allocator/ipam.go 1213: Successfully claimed IPs: [10.244.39.0/26] block=10.244.39.0/26 handle="ipip-tunnel-addr-master-1" host="master-1"
2022-09-17 09:36:32.158 [INFO][28] tunnel-ip-allocator/ipam.go 844: Auto-assigned 1 out of 1 IPv4s: [10.244.39.0/26] handle="ipip-tunnel-addr-master-1" host="master-1"
2022-09-17 09:36:32.605 [INFO][28] tunnel-ip-allocator/allocateip.go 469: Assigned tunnel address to node IP="10.244.39.0" type="ipipTunnelAddress"
Calico node started successfully
dyrnq commented 2 years ago

I lost kubelet args --network-plugin=cni