libvirt container stuck in Init:0/1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-helm |
Fix Released
|
High
|
Pete Birley |
Bug Description
Following http://
although ceph is not specified as a storage backend the libvirt helm chart needs it. So the all in one page does not tell how to setup this.
ubuntu-
NAME READY STATUS RESTARTS AGE
po/etcd-
po/ingress-
po/ingress-
po/libvirt-q311w 0/1 Init:0/1 0 7m
po/mariadb-0 1/1 Running 0 7m
po/mariadb-1 1/1 Running 0 5m
po/mariadb-2 1/1 Running 0 5m
po/memcached-
po/openvswitch-
po/openvswitch-
po/rabbitmq-
po/rabbitmq-
po/rabbitmq-
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/etcd 10.106.18.7 <none> 2379/TCP 7m
svc/ingress-
svc/mariadb 10.111.227.228 <none> 3306/TCP 7m
svc/mariadb-
svc/memcached 10.103.244.20 <none> 11211/TCP 7m
svc/openstack 10.102.123.89 <none> 80/TCP,443/TCP 7m
svc/rabbitmq 10.97.15.216 <none> 5672/TCP,15672/TCP 7m
NAME DESIRED CURRENT AGE
statefulsets/
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deploy/etcd 1 1 1 1 7m
deploy/ingress-api 1 1 1 1 7m
deploy/
deploy/memcached 1 1 1 1 7m
deploy/rabbitmq 3 3 3 3 7m
NAME DESIRED CURRENT READY AGE
rs/etcd-2376361164 1 1 1 7m
rs/ingress-
rs/ingress-
rs/memcached-
rs/rabbitmq-
ubuntu-
Name: libvirt-q311w
Namespace: openstack
Node: ubuntu-
Start Time: Tue, 26 Sep 2017 16:37:17 +0200
Labels: application=libvirt
component=libvirt
controller-
pod-template-
release_
Annotations: configmap-
configmap-
kubernetes.
Status: Pending
IP: 192.168.122.195
Created By: DaemonSet/libvirt
Controlled By: DaemonSet/libvirt
Init Containers:
ceph-
Container ID:
Image: docker.
Image ID:
Port: <none>
Command:
/
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Environment:
CEPH_
LIBVIRT_
Mounts:
/etc/ceph from etcceph (rw)
/
/
/
Containers:
libvirt:
Container ID:
Image: docker.
Image ID:
Port: <none>
Command:
/
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Environment:
CEPH_
LIBVIRT_
Mounts:
/dev from dev (rw)
/etc/ceph from etcceph (rw)
/
/
/
/
/lib/modules from libmodules (ro)
/run from run (rw)
/
/
/
/
/var/lib/nova from var-lib-nova (rw)
/
Conditions:
Type Status
Initialized False
Ready False
PodScheduled True
Volumes:
libvirt-bin:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: libvirt-bin
Optional: false
libvirt-etc:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: libvirt-etc
Optional: false
etcceph:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
ceph-etc:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: ceph-etc
Optional: false
ceph-keyring:
Type: Secret (a volume populated by a Secret)
SecretName: pvc-ceph-client-key
Optional: false
libmodules:
Type: HostPath (bare host directory volume)
Path: /lib/modules
var-lib-libvirt:
Type: HostPath (bare host directory volume)
Path: /var/lib/libvirt
var-lib-nova:
Type: HostPath (bare host directory volume)
Path: /var/lib/nova
run:
Type: HostPath (bare host directory volume)
Path: /run
dev:
Type: HostPath (bare host directory volume)
Path: /dev
cgroup:
Type: HostPath (bare host directory volume)
Path: /sys/fs/cgroup
machine-id:
Type: HostPath (bare host directory volume)
Path: /etc/machine-id
default-
Type: Secret (a volume populated by a Secret)
SecretName: default-token-k3hjk
Optional: false
QoS Class: BestEffort
Node-Selectors: openstack-
Tolerations: node.alpha.
node.
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 1 kubelet, ubuntu-1604 Normal SuccessfulMount
8m 8m 2 kubelet, ubuntu-1604 Normal SuccessfulMount
6m 1m 3 kubelet, ubuntu-1604 Warning FailedMount Unable to mount volumes for pod "libvirt-
6m 1m 3 kubelet, ubuntu-1604 Warning FailedSync Error syncing pod
8m 1m 11 kubelet, ubuntu-1604 Warning FailedMount MountVolume.SetUp failed for volume "ceph-etc" : configmaps "ceph-etc" not found
8m 1m 11 kubelet, ubuntu-1604 Warning FailedMount MountVolume.SetUp failed for volume "ceph-keyring" : secrets "pvc-ceph-
Changed in openstack-helm: | |
status: | Confirmed → Fix Released |
ok ceph seems to be there already from the deployment but the key seems to be not there: 1604:~/ openstack- helm$ kubectl describe po ceph-bootstrap- 56wrx --namespace=ceph 56wrx 1604/192. 168.122. 195 bootstrap uid=19d21121- a2cb-11e7- b0f8-5254009205 85 ceph-bootstrap group=ceph io/created- by={"kind" :"SerializedRef erence" ,"apiVersion" :"v1"," reference" :{"kind" :"Job", "namespace" :"ceph" ,"name" :"ceph- bootstrap" ,"uid": "19d21121- a2cb-11e7- b0f8-5254009205 85","apiVersion ":... //f58000c3b15a1 4521e777200a936 2f5da0b37a63878 94f5409507e0160 e79a7e io/kolla/ ubuntu- source- kubernetes- entrypoint: 4.0.0 pullable: //kolla/ ubuntu- source- kubernetes- entrypoint@ sha256: 75116ab2f9f65c5 fc078e68ce7facd 66c1c57496947f3 7b7209b32f94925 e53b s-entrypoint 56wrx (v1:metadata.name) namespace) _NAME: eth0 Y_SERVICE: ceph-mon Y_JOBS: Y_DAEMONSET: Y_CONTAINER: var/run/ secrets/ kubernetes. io/serviceaccou nt from default-token-zntwb (ro) attcomdev/ ceph-daemon: tag-build- master- jewel-ubuntu- 16.04 tmp/bootstrap. sh etc/ceph/ ceph.client. admin.keyring from ceph-client- admin-keyring (ro) etc/ceph/ ceph.conf from ceph-etc (ro) tmp/bootstrap. sh from ceph-bin (ro) var/run/ secrets/ kubernetes. io/serviceaccou nt from default-token-zntwb (ro) client- admin-keyring: admin-keyring token-zntwb: control- plane=enabled kubernetes. io/notReady: NoExecute for 300s alpha.kubernete s.io/unreachabl e:NoExecute for 300s
ubuntu-
Name: ceph-bootstrap-
Namespace: ceph
Node: ubuntu-
Start Time: Tue, 26 Sep 2017 16:58:05 +0200
Labels: application=ceph
component=
controller-
job-name=
release_
Annotations: kubernetes.
Status: Pending
IP: 192.168.206.212
Created By: Job/ceph-bootstrap
Controlled By: Job/ceph-bootstrap
Init Containers:
init:
Container ID: docker:
Image: docker.
Image ID: docker-
Port: <none>
Command:
kubernete
State: Running
Started: Tue, 26 Sep 2017 16:58:42 +0200
Ready: False
Restart Count: 0
Environment:
POD_NAME: ceph-bootstrap-
NAMESPACE: ceph (v1:metadata.
INTERFACE
DEPENDENC
DEPENDENC
DEPENDENC
DEPENDENC
COMMAND: echo done
Mounts:
/
Containers:
ceph-bootstrap:
Container ID:
Image: quay.io/
Image ID:
Port: <none>
Command:
/
State: Waiting
Reason: PodInitializing
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/
/
/
/
Conditions:
Type Status
Initialized False
Ready False
PodScheduled True
Volumes:
ceph-bin:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: ceph-bin
Optional: false
ceph-etc:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: ceph-etc
Optional: false
ceph-
Type: Secret (a volume populated by a Secret)
SecretName: ceph-client-
Optional: false
default-
Type: Secret (a volume populated by a Secret)
SecretName: default-token-zntwb
Optional: false
QoS Class: BestEffort
Node-Selectors: openstack-
Tolerations: node.alpha.
node.
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
6m 6m 1 default-scheduler Norma...