After deleting and readding a k8s deployment, pods not getting created

Bug #1668154 reported by Vedamurthy Joshi
6
This bug affects 1 person
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/python2.7/dist-packages/kube_manager/vnc/vnc_endpoints.py(181)_get_service_pod_list()
-> for endpoint in endpoints:
(Pdb) l
176 self.logger.debug('Subset : %s' % (subset))
177 try:
178 endpoints = subset['addresses']
179 except Exception:
180 import pdb; pdb.set_trace()
181 -> for endpoint in endpoints:
182 pod = endpoint.get('targetRef')
183 if pod and pod.get('uid'):
184 pods_in_event.add(pod.get('uid'))
185
186 return pods_in_event
(Pdb) print subset
{u'notReadyAddresses': [{u'ip': u'10.47.255.250', u'targetRef': {u'kind': u'Pod', u'resourceVersion': u'50031', u'namespace': u'kube-system', u'name': u'kube-dns-874291774-f7zpv', u'uid': u'b50b710e-fc55-11e6-a881-525400010001'}, u'nodeName': u'testbed-1-vm3'}], u'ports': [{u'protocol': u'UDP', u'name': u'dns', u'port': 53}, {u'protocol': u'TCP', u'name': u'dn
-----------------------------
[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

Revision history for this message
Sachchidanand Vaidya (vaidyasd) wrote :

 Can you check if this is seen anymore.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.