After deleting and readding a k8s deployment, pods not getting created
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Vedamurthy Joshi |
Bug Description
R4.0 BUild 3041
Used the below yaml to create 2 pods. Then delete the deployment(the vm objects in contrail goes away). Re-create the deployment. This time, the vm objects are not recreated.
Restarting kube-manager results in the pods becoming active
But, The below exception in seen in kube-manager then :
> /usr/lib/
-> for endpoint in endpoints:
(Pdb) l
176 self.logger.
177 try:
178 endpoints = subset['addresses']
179 except Exception:
180 import pdb; pdb.set_trace()
181 -> for endpoint in endpoints:
182 pod = endpoint.
183 if pod and pod.get('uid'):
184 pods_in_
185
186 return pods_in_event
(Pdb) print subset
{u'notReadyAddr
-------
[root@testbed-1-vm1 ~]# cat dep2.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-deployment1
spec:
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
# unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
# generated from the deployment name
labels:
app: MyApp
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 9376
Can you check if this is seen anymore.