Kubernetes cluster created with Magnum doesn't work

asked 2020-02-12 16:28:22 -0600

PietroM gravatar image

updated 2020-02-15 03:53:27 -0600

ON OpenStack Train with Magnum. Kubernetes version 1.14.3 (default version for Magnum on Train)

I am trying to create a Kubernetes cluster using this template:

openstack coe cluster template create k8s-cluster-template --image fedora-atomic-27-latest --keypair demoKeys --external-network provider --dns-nameserver --master-flavor m1.medium2 --flavor m1.small2 --docker-volume-size 3 --docker-storage-driver overlay --network-driver flannel --volume-driver cinder --coe kubernetes

Where m1.medium2, m1.small2 are bigger machines than the usual m1.small and m1.medium and provider is a public network.

The creation is successful. However, the K8S services are not working.

Using service kubelet service on the master node, I found a network problem in the kubelet service:

Unable to update cni config: No networks found in /etc/cni/net.d

and several errors like:

Feb 12 21:59:16 k8s-cluster-65glmakfm2ls-master-0.novalocal runc[4222]: W0212 21:59:16.281442
4236 raw.go:87] Error while processing event ("/sys/fs/cgroup/devices/libcontainer_6551_systemd_test_default.slice": 0x40000100 == IN_CREATE|IN_ISDIR): inotify_add_watch /sys/fs/cgroup/devices/libcontainer_6551_systemd_test_default.slice: no such file or dir

I also found an error in the heat-container-agent service log.

Feb 12 21:43:53 k8s-cluster-65glmakfm2ls-master-0.novalocal runc[1655]: /var/lib/os-collect-config/local-data not found. Skipping

EDIT: One more error is present in the kube-apiserver log:

Failed to make webhook authorizer request POST

Could you please provide assistance with this issue?

edit retag flag offensive close merge delete


Check if newly VM creating got IP address And will able to ping externally

piyushsrivastava gravatar imagepiyushsrivastava ( 2020-02-13 21:59:12 -0600 )edit

Yes, the VM apparently works correctly. And it's able to access external addresses.

PietroM gravatar imagePietroM ( 2020-02-15 03:51:12 -0600 )edit