kubernetes pods not getting IPs at times
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Yuvaraja Mariappan |
Bug Description
This was seen when pods where deleting and re-added quickly. Any new pods from then on dont get their IPs
workaround to restart the contrail-
root@vedu-vm1-1:/# supervisorctl -s unix://
contrail-
supervisor> restart all
contrail-
contrail-
supervisor> exit
root@vedu-vm1-1:/#
[root@vedu-vm1-1 centos]# cat nginx.yaml
apiVersion: v1
kind: ReplicationCont
metadata:
name: nginx-controller
spec:
replicas: 2
selector:
name: nginx
template:
metadata:
labels:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE
nginx-controlle
nginx-controlle
[root@vedu-vm1-1 centos]#
Review in progress for https:/ /review. opencontrail. org/28582
Submitter: Yuvaraja Mariappan