Magnum| docker-storage-setup failing in kubemaster

asked 2020-05-25 04:01:57 -0500

jayeshc gravatar image

I have Openstack queens setup. I have deployed magnum on it. But when I try to create k8 cluster using it, it stuck in kubemaster, as on kubemaster docker-storage-setup failing. Also kube-apiserver failing to start.

[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]# docker-storage-setup
New size given (1280 extents) not larger than existing size (4863 extents)
ERROR: There is not enough free space in volume group atomicos to create data volume of size MIN_DATA_SIZE=2G.
[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]#
[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]# cat /etc/sysconfig/docker-storage-setup
GROWROOT=True
STORAGE_DRIVER=devicemapper
ROOT_SIZE=5GB
DATA_SIZE=95%FREE
[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]#

I guess its due to 0 free PE

[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]# vgdisplay| grep Size
  VG Size               19.00 GiB
  PE Size               4.00 MiB
  Alloc PE / Size       4863 / 19.00 GiB
  Free  PE / Size       0 / 0
[root@my-kubernetes-cluster4-i7fsboqxexcd-master-0 ~]#

Please suggest solution. Thanks.

edit retag flag offensive close merge delete

Comments

I used "docker-storage-driver = overlay", and that resolves the issue, but now server is waiting for kubernetes-api which is failing.

Waiting for Kubernetes API... + curl --silent http://127.0.0.1:8080/version + sleep 5

jayeshc gravatar imagejayeshc ( 2020-05-25 07:31:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-26 09:37:44 -0500

jayeshc gravatar image

updated 2020-05-26 09:39:01 -0500

kube-apiserver service was failing as, kube user do not have permission to create certificate in /var/run/kubernetes/

[root@my-k8-cluster1-k4czdt6vc6vi-master-0 kube-apiserver.0]# /usr/bin/runc --systemd-cgroup run 'kube-apiserver'
I0526 13:49:16.515448       1 server.go:121] Version: v1.9.3
error creating self-signed certificates: open /var/run/kubernetes/apiserver.crt: permission denied
[root@my-k8-cluster1-k4czdt6vc6vi-master-0 

chaning directory permission resolved the issue.

even after this wc-notify.service service failing, which is responsible for sending signal back to heat stack.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-05-25 04:01:57 -0500

Seen: 38 times

Last updated: May 26