CNI fails on KeyError: versioned_object.namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Sometimes when creating pods they get stuck on the ContainerCreating status forever.
When checking the pods description, we see the next error:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 34m default-scheduler Successfully assigned test-py3/
Warning FailedCreatePod
"5960a8feb3f8f8
lid status code from CNI daemon.; Traceback (most recent call last):
File "/usr/local/
vif = self._add(params)
File "/usr/local/
resp = self._make_
File "/usr/local/
raise k_exc.CNIError('Got invalid status code from CNI daemon.')
kuryr_kubernete
And on the kuryr-cni pod we see that the problem is when extracting the pod annotations:
2018-09-14 09:32:41.138 33 WARNING kuryr_kubernete
2018-09-14 09:32:42.634 41 INFO kuryr_kubernete
2018-09-14 09:32:42.635 41 INFO werkzeug [-] 192.168.100.14 - - [14/Sep/2018 09:32:42] "GET /ready HTTP/1.1" 200 -
2018-09-14 09:32:44.141 33 INFO kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.197 33 ERROR kuryr_kubernete
2018-09-14 09:32:44.199 33 WARNING kuryr_kubernete
2018-09-14 09:32:44.604 212 ERROR kuryr_kubernete
kuryr_kubernete
2018-09-14 09:32:44.614 212 INFO werkzeug [-] 127.0.0.1 - - [14/Sep/2018 09:32:44] "POST /addNetwork HTTP/1.1" 504 -
2018-09-14 09:32:47.203 33 INFO kuryr_kubernete
Changed in kuryr-kubernetes: | |
assignee: | Sunday Mgbogu (digitalsimboja) → nobody |
I forgot to mention that the pod has the right notation:
oc get pod demo-1-rc5bd -o yaml io/deployment- config. latest- version: "1" io/deployment- config. name: demo io/deployment. name: demo-1 io/scc: restricted org/kuryr- vif: '{"versioned_ object. changes" : ["default_vif"], "versioned_ object. data": "additional_ vifs": {}, "default_vif": {"versioned_ object. changes" : ["preserve_ on_delete" , filtering" , "active", object. data": {"active": true, "address": "fa:16: 3e:a7:3a: 52", has_traffic_ filtering" : false, "id": "6c328f9b- 410c-4120- b7a8-37245ddba0 fd", object. changes" : ["mtu", "id", "should_ provide_ bridge" , should_ provide_ vlan", "subnets", "label", "multi_host"], "versioned_ object. data": b568-4749- b7f8-935fce247e 98", "label": "ns/test-py3-net", "mtu": provide_ bridge" : false, "should_ provide_ vlan": object. changes" : ["objects"], "versioned_ object. data": object. changes" : ["gateway", "cidr", "ips", "dns", object. data": {"cidr": "10.11.10.0/24", "dns": [], "gateway": object. changes" : ["objects"], "versioned_ object. data": object. changes" : ["address"], "versioned_ object. data": object. name": "FixedIP", "versioned_ object. namespace" : object. version" : "1.0"}]}, "versioned_ object. name": "FixedIPList", versioned_ object. namespace" : "os_vif", "versioned_ object. version" : "1.0"}, object. changes" : ["objects"], "versioned_ object. data": object. name": "RouteList", "versioned_ object. namespace" : object. version" : "1.0"}}, "versioned_ object. name": "Subnet", versioned_ object. namespace" : "os_vif", "versioned_ object. version" : "1.0"}]}, versioned_ object. name": "SubnetList", "versioned_ object. namespace" : "os_vif", versioned_ object. version" : "1.0"}}, "versioned_ object. name": "Network", "versioned_ object. namespace" : object. version" : "1.1"}, "plugin": "noop", "preserve_ on_delete" : object. name": VIFVlanNested" , "versioned_ object. namespace" : "os_vif", "versioned_ object. version" : object. name": "PodState", "versioned_ object. namespace" : object. version" : "1.0"}' tamp: 2018-09- 14T10:04: 43Z
apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.
openshift.
openshift.
openshift.
openstack.
{
"plugin", "id", "network", "address", "vif_name", "has_traffic_
"vlan_id"], "versioned_
"
"network": {"versioned_
"
{"id": "e570605e-
1350, "multi_host": false, "should_
false, "subnets": {"versioned_
{"objects": [{"versioned_
"routes"], "versioned_
"10.11.10.1", "ips": {"versioned_
{"objects": [{"versioned_
{"address": "10.11.10.5"}, "versioned_
"os_vif", "versioned_
"
"routes": {"versioned_
{"objects": []}, "versioned_
"os_vif", "versioned_
"
"
"
"os_vif", "versioned_
false, "vif_name": "tap6c328f9b-41", "vlan_id": 1374}, "versioned_
"
"1.0"}}, "versioned_
"os_vif", "versioned_
creationTimes