[5.0.1 contrail-security]failing to create security objects in mixed draft mode
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Released
|
Critical
|
Andrey Pavlov | |||
Trunk |
Fix Committed
|
Critical
|
Andrey Pavlov |
Bug Description
seeing this in Build 5.0.1 145, 5.1 190
Scenario:
Enabled draft mode in both global and project level
Tried to create address groups and other security objects.
Throwing ineternal server error
Draft mode either alone in global or project scope is working
contrail-api.log
----------------
07/19/2018 12:34:23 PM [contrail-api] [ERROR]: __default__ [SYS_ERR]: VncApiError: <type 'exceptions.
Python 2.7.5: /usr/bin/python
Thu Jul 19 12:34:23 2018
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/
2045 (code, err_msg) = status
2046 raise cfgm_common.
2047 response = handler(*args, **kwargs)
2048 self._generate_
2049
response undefined
handler = <functools.partial object>
args = ()
kwargs = {}
/usr/lib/
15 statistics = VncApiStatistics(
16 obj_type=
17 response = func(api_
18 statistics.
19 statistics.
response undefined
func = <function http_resource_
api_server_obj = <vnc_cfg_
resource_type = 'address_group'
args = ()
kwargs = {}
/usr/lib/
736 # Can abort resource creation and retrun 202 status code
737 get_context(
738 ok, result = r_class.
739 if not ok:
736 # Can abort resource creation and retrun 202 status code
737 get_context(
738 ok, result = r_class.
739 if not ok:
740 code, msg = result
ok = True
result = ''
r_class = <class 'vnc_cfg_
r_class.
obj_dict = {'address_
/usr/lib/
263 cls.server.
264 scope_type,
265 ':'.join(
266 ),
267 )
scope_fq_name = [u'default-
/usr/lib/
591 if not identifier:
592 identifier = '%s-%s' % (socket.
593 return self._zk_
594
595 def write_lock(self, path, identifier=None):
self = <cfgm_common.
self._zk_client = <kazoo.
self._zk_
path = u'//vnc_
identifier = 'nodem14-1'
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'KazooClient' object has no attribute 'ReadLock'",)
message = "'KazooClient' object has no attribute 'ReadLock'"
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/
response = handler(*args, **kwargs)
File "/usr/lib/
response = func(api_
File "/usr/lib/
ok, result = r_class.
File "/usr/lib/
':'
File "/usr/lib/
return self._zk_
AttributeError: 'KazooClient' object has no attribute 'ReadLock'
can you provide the kazoo python package version installed on API config containers?
From the release 5.0.1 Contrail API uses kazoo recipes `ReadLock` and `WriteLock` and that recipes appeared on kazoo 2.3.0