KeyError when a service frontend ip is created in kubernetes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
New
|
Critical
|
Vedamurthy Joshi | ||
R4.0 |
New
|
Undecided
|
Vedamurthy Joshi |
Bug Description
R4.0 Build 3028
[root@vedu-vm1-1 centos]# kubectl get rc
NAME DESIRED CURRENT READY AGE
nginx-controller 2 2 2 39m
[root@vedu-vm1-1 centos]# kubectl expose rc/nginx-controller
service "nginx-controller" exposed
[root@vedu-vm1-1 centos]# kubectl get service
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.96.0.1 <none> 443/TCP 2h
nginx-controller 10.107.177.41 <none> 80/TCP 4s <<<<<<<
[root@vedu-vm1-1 centos]#
contrail-
-------
Traceback (most recent call last):
File "/usr/lib/
result = self._run(
File "/usr/lib/
self.
File "/usr/lib/
service_type, externalIp)
File "/usr/lib/
selectors, ports)
File "/usr/lib/
service_
File "/usr/lib/
proj_obj, service_ip, selectors)
File "/usr/lib/
vn_obj, service_name, cluster_ip)
File "/usr/lib/
self.
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
data=json_body)
File "/usr/lib/
retry_
File "/usr/lib/
raise HttpError(status, content)
HttpError: HTTP Status: 500 Content: <type 'exceptions.
Python 2.7.6: /usr/bin/python
Fri Jan 20 23:06:50 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
593
594 try:
595 ok, result = stateful_create()
596 except Exception as e:
597 ok = False
ok = False
result = None
stateful_create = <function stateful_create>
/usr/lib/
534 # type-specific hook
535 (ok, result) = r_class.
536 db_conn)
537 if not ok:
538 return (ok, result)
db_conn = <vnc_cfg_
/usr/lib/
418 # for g/w ip, creation allowed but only can ref to router port.
419 if req_ip and cls.addr_
420 vn_uuid=vn_id):
421 if not cls.addr_
422 return (False, (400, 'Ip address already in use'))
vn_uuid undefined
vn_id = 'b1026bf6-
/usr/lib/
1604
1605 try:
1606 return self._ipam_
1607 except cfgm_common.
1608 try:
self = <vnc_cfg_
self._ipam_
ip_addr = '10.107.177.41'
vn_uuid = 'b1026bf6-
sub = None
/usr/lib/
1571 ipam_uuid = ipam_ref['uuid']
1572 subnet_objs = self._get_
1573 ipam_fq_name, ipam_uuid, False)
1574 if subnet_objs is None:
1575 continue
ipam_fq_name = ['default-domain', 'default', 'service-ipam']
ipam_uuid = '13dc7d5a-
builtinFalse = False
/usr/lib/
604 subnet_obj = self._create_
605 ipam_subnet, ipam_fq_name_str, should_persist)
606 self._subnet_
607 subnet_objs = self._subnet_
608
self = <vnc_cfg_
self._subnet_objs = {u'cfeb2aa2-
ipam_uuid = '13dc7d5a-
subnet_name = '10.96.0.0/12'
subnet_obj = <vnc_cfg_
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__format__ = <built-in method __format__ of exceptions.KeyError object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.KeyError object>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object>
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.KeyError object>
args = ('13dc7d5a-
message = '13dc7d5a-
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
ok, result = stateful_create()
File "/usr/lib/
db_conn)
File "/usr/lib/
vn_uuid=vn_id):
File "/usr/lib/
return self._ipam_
File "/usr/lib/
ipam_fq_name, ipam_uuid, False)
File "/usr/lib/
self.
KeyError: '13dc7d5a-
Changed in juniperopenstack: | |
assignee: | Sachin Bansal (sbansal) → Atul Moghe (moghea) |
Sachin Vaidya and I tried with 4.0.0.0-5, and unable to reproduce. We have fixed many issues in flat-subnet and ip allocation since this was observed. Can you try with latest 4.0 or mainline, If we dont see this problem, we can close it