swift-market-16829
07/30/2022, 8:14 PMNetworkAttachmentDefinition
CRD”. Are there instructions as to exactly that this CR needs to look like?apiVersion: "<http://k8s.cni.cncf.io/v1|k8s.cni.cncf.io/v1>"
kind: NetworkAttachmentDefinition
metadata:
name: bridge-conf
spec:
config: '{
"cniVersion": "0.3.1",
"name": "bridge-conf",
"type": "bridge",
"bridge": "harvester-br0",
"vlan": 1,
"ipam": {
"type": "host-local",
"subnet": "192.168.1.0/24",
"dataDir": "/mnt/cluster-ipam"
}
}'
If I create a test Pod with the proper annotation, then I see that harvester-br0
will be created on the host. However, harvester-network-controller
still ends up in a CrashLoopBackoff
because it panics:
I0731 05:39:35.654293 1 main.go:112] Starting network controller with 2 threads.
I0731 05:39:35.654332 1 main.go:117] Starting network controller in namespace: harvester-system.
W0731 05:39:35.654525 1 client_config.go:614] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2022-07-31T05:39:38Z" level=info msg="Do not update the existing CRD NodeNetwork"
time="2022-07-31T05:39:39Z" level=info msg="Do not update the existing CRD NetworkAttachmentDefinition"
I0731 05:39:41.453235 1 monitor.go:52] Start Monitor
time="2022-07-31T05:39:41Z" level=info msg="Starting <http://k8s.cni.cncf.io/v1|k8s.cni.cncf.io/v1>, Kind=NetworkAttachmentDefinition controller"
I0731 05:39:41.659095 1 controller.go:68] nad configuration bridge-conf has been changed: { "cniVersion": "0.3.1", "name": "bridge-conf", "type": "bridge", "bridge": "harvester-br0", "vlan": 1, "ipam": { "type": "host-local", "subnet": "192.168.1.0/24", "dataDir": "/mnt/cluster-ipam" } }
time="2022-07-31T05:39:41Z" level=info msg="Starting <http://network.harvesterhci.io/v1beta1|network.harvesterhci.io/v1beta1>, Kind=NodeNetwork controller"
I0731 05:39:41.659831 1 controller.go:95] node network configuration harvester-pool1-80b4dfff-khqdn-vlan has been changed, spec: {Description: NodeName:harvester-pool1-80b4dfff-khqdn Type:vlan NetworkInterface:}
I0731 05:39:41.660331 1 controller.go:84] ignore link not found error, details: slave of harvester-br0 not found
I0731 05:39:41.661060 1 controller.go:172] ignore link not found error, details: slave of harvester-br0 not found
E0731 05:39:41.662099 1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 440 [running]:
<http://github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime.logPanic({0x16db840|github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime.logPanic({0x16db840>?, 0x2ba40c0})
/go/src/github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x99
<http://github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0|github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0>, 0x0, 0xc000291ed0?})
/go/src/github.com/harvester/harvester-network-controller/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x16db840, 0x2ba40c0})
great-bear-19718
07/31/2022, 11:35 PMswift-market-16829
07/31/2022, 11:37 PMgreat-bear-19718
07/31/2022, 11:38 PMswift-market-16829
07/31/2022, 11:40 PMgreat-bear-19718
07/31/2022, 11:40 PMswift-market-16829
07/31/2022, 11:42 PMgreat-bear-19718
07/31/2022, 11:43 PMswift-market-16829
07/31/2022, 11:44 PMgreat-bear-19718
07/31/2022, 11:45 PMswift-market-16829
07/31/2022, 11:47 PMgreat-bear-19718
07/31/2022, 11:51 PMswift-market-16829
07/31/2022, 11:54 PMgreat-bear-19718
08/01/2022, 12:29 AMswift-market-16829
08/01/2022, 12:30 AMgreat-bear-19718
08/01/2022, 12:54 AMswift-market-16829
08/25/2022, 1:01 PM