今天部署3.2.0开启kubeedge功能,添加节点时报错,edgecore日志如下
I1209 10:30:52.211745 49180 core.go:24] Starting module twin
I1209 10:30:52.211830 49180 core.go:24] Starting module edged
I1209 10:30:52.211848 49180 core.go:24] Starting module websocket
I1209 10:30:52.211878 49180 core.go:24] Starting module eventbus
I1209 10:30:52.211926 49180 core.go:24] Starting module edgemesh
I1209 10:30:52.211939 49180 core.go:24] Starting module metaManager
I1209 10:30:52.211955 49180 core.go:24] Starting module edgestream
I1209 10:30:52.212043 49180 process.go:113] Begin to sync sqlite
I1209 10:30:52.212161 49180 edged.go:290] Starting edged...
E1209 10:30:52.212230 49180 csi_plugin.go:226] kubernetes.io/csi: CSIDriverLister not found on KubeletVolumeHost
I1209 10:30:52.212285 49180 fs_resource_analyzer.go:64] Starting FS ResourceAnalyzer
I1209 10:30:52.212425 49180 client.go:86] parsed scheme: "unix"
I1209 10:30:52.212431 49180 client.go:86] scheme "unix" not registered, fallback to default scheme
I1209 10:30:52.212517 49180 passthrough.go:48] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}
I1209 10:30:52.212540 49180 clientconn.go:948] ClientConn switching balancer to "pick_first"
I1209 10:30:52.212747 49180 http.go:40] tlsConfig InsecureSkipVerify true
I1209 10:30:52.213012 49180 common.go:96] start connect to mqtt server with client id: hub-client-sub-1639017052
I1209 10:30:52.213022 49180 common.go:98] client hub-client-sub-1639017052 isconnected: false
I1209 10:30:52.213126 49180 log.go:181] DEBUG: Installed strategy plugin: [RoundRobin].
I1209 10:30:52.213136 49180 log.go:181] DEBUG: ConfigurationFactory Initiated
I1209 10:30:52.213142 49180 log.go:181] INFO: Configuration files: []
I1209 10:30:52.213152 49180 log.go:181] WARN: empty configurtion from [FileSource]
I1209 10:30:52.213156 49180 log.go:181] INFO: invoke dynamic handler:FileSource
I1209 10:30:52.213169 49180 log.go:181] INFO: archaius init success
I1209 10:30:52.213436 49180 log.go:181] INFO: create new watcher
I1209 10:30:52.222982 49180 client.go:150] finish hub-client sub
I1209 10:30:52.223007 49180 common.go:96] start connect to mqtt server with client id: hub-client-pub-1639017052
I1209 10:30:52.223045 49180 common.go:98] client hub-client-pub-1639017052 isconnected: false
I1209 10:30:52.234351 49180 proxy.go:95] [EdgeMesh] chain EDGE-MESH not exists
I1209 10:30:52.236289 49180 proxy.go:103] [EdgeMesh] inbound rule -p tcp -d 9.251.0.0/16 -i docker0 -j EDGE-MESH not exists
I1209 10:30:52.238263 49180 proxy.go:111] [EdgeMesh] outbound rule -p tcp -d 9.251.0.0/16 -o docker0 -j EDGE-MESH not exists
I1209 10:30:52.240318 49180 proxy.go:119] [EdgeMesh] dnat rule -p tcp -j DNAT --to-destination 172.17.0.1:40001 not exists
W1209 10:30:52.240450 49180 proxy.go:64] [EdgeMesh] add route err: file exists
I1209 10:30:52.241093 49180 client.go:166] finish hub-client pub
I1209 10:30:52.241102 49180 eventbus.go:63] Init Sub And Pub Client for externel mqtt broker tcp://127.0.0.1:1883 successfully
I1209 10:30:52.241658 49180 client.go:91] edge-hub-cli subscribe topic to $hw/events/upload/#
F1209 10:30:52.247227 49180 certmanager.go:92] Error: failed to get edge certificate from the cloudcore, error: Get "https://192.168.194.130:30002/edge.crt": x509: certificate is valid for 10.233.70.40, not 192.168.194.130
goroutine 118 [running]:
k8s.io/klog/v2.stacks(0xc000010001, 0xc000ae18c0, 0xe1, 0x227)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/k8s.io/klog/v2/klog.go:996 +0xb9
k8s.io/klog/v2.(*loggingT).output(0x4f97020, 0xc000000003, 0x0, 0x0, 0xc0002ba5b0, 0x4c47314, 0xe, 0x5c, 0x0)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/k8s.io/klog/v2/klog.go:945 +0x191
k8s.io/klog/v2.(*loggingT).printf(0x4f97020, 0x3, 0x0, 0x0, 0x378d187, 0x9, 0xc0006bddc0, 0x1, 0x1)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/k8s.io/klog/v2/klog.go:733 +0x17a
k8s.io/klog/v2.Fatalf(...)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/k8s.io/klog/v2/klog.go:1456
github.com/kubeedge/kubeedge/edge/pkg/edgehub/certificate.(*CertManager).Start(0xc000165790)
/root/codes/src/github.com/kubeedge/kubeedge/edge/pkg/edgehub/certificate/certmanager.go:92 +0xed
github.com/kubeedge/kubeedge/edge/pkg/edgehub.(*EdgeHub).Start(0xc000165790)
/root/codes/src/github.com/kubeedge/kubeedge/edge/pkg/edgehub/edgehub.go:65 +0x425
created by github.com/kubeedge/beehive/pkg/core.StartModules
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/kubeedge/beehive/pkg/core/core.go:23 +0x15c
goroutine 1 [chan receive]:
github.com/kubeedge/beehive/pkg/core.GracefulShutdown()
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/kubeedge/beehive/pkg/core/core.go:33 +0x16d
github.com/kubeedge/beehive/pkg/core.Run()
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/kubeedge/beehive/pkg/core/core.go:50 +0x2a
github.com/kubeedge/kubeedge/edge/cmd/edgecore/app.NewEdgeCoreCommand.func1(0xc00033cb00, 0x4fca160, 0x0, 0x0)
/root/codes/src/github.com/kubeedge/kubeedge/edge/cmd/edgecore/app/server.go:99 +0x3f2
github.com/spf13/cobra.(*Command).execute(0xc00033cb00, 0xc00004e1b0, 0x0, 0x0, 0xc00033cb00, 0xc00004e1b0)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/spf13/cobra/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc00033cb00, 0xc0000580b8, 0x0, 0x0)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/spf13/cobra/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/root/codes/src/github.com/kubeedge/kubeedge/vendor/github.com/spf13/cobra/command.go:887
main.main()
/root/codes/src/github.com/kubeedge/kubeedge/edge/cmd/edgecore/edgecore.go:16 +0x65
