VNs are getting removed in the neutron list after attaching policy to vns
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Critical
|
Naga Kiran |
Bug Description
If policy is attached to vn, that particular vn is getting removed from neutron net-list. This is done through UI.
Getting below error when I checked in contrail-api log.
Issue seen in Build 5.0.0-167 newton and 5.0.0-93 ocata
vn list before attaching policy:
=======
root@nodek12:
+------
| ID | Name | Subnets |
+------
| 54c26977-
| 360970dd-
| 3c6d33e7-
| ebed3ea7-
| e52df03b-
| 7f489873-
| 428f6cb0-
| 43fe8645-
| b413b91f-
| bc7e6155-
+------
Vn list after attaching policy:
=======
root@nodek12:
+------
| ID | Name | Subnets |
+------
| 43fe8645-
| 3c6d33e7-
| ebed3ea7-
| 7f489873-
| 428f6cb0-
| 360970dd-
| bc7e6155-
+------
root@nodek12:
From api log:
=============
01/16/2018 05:21:41 PM [contrail-api]: __default__ [SYS_ERR]: VncApiError: <type 'exceptions.
Python 2.7.12: /usr/bin/python
Tue Jan 16 17:21:41 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/
275 trace = self._generate_
276
277 self._db_
278 if oper_info['oper'] == 'CREATE':
279 self._dbe_
self = <vnc_cfg_
self._db_client_mgr = <vnc_cfg_
self._db_
oper_info = {u'fq_name': [u'default-domain', u'ctest-
/usr/lib/
1193 if obj_dict is None:
1194 try:
1195 obj_class = self._db_
1196 fields = list(obj_
1197 (ok, obj_dict) = self.dbe_read(type, uuid, obj_fields=fields)
obj_class undefined
self = <vnc_cfg_
self._db_client_mgr undefined
type = u'virtual_network'
<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 = ("'VncDbClient' object has no attribute '_db_client_mgr'",)
message = "'VncDbClient' object has no attribute '_db_client_mgr'"
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/
self.
File "/usr/lib/
obj_class = self._db_
AttributeError: 'VncDbClient' object has no attribute '_db_client_mgr'
tags: | added: sanityblocker |
description: | updated |
description: | updated |
Changed in juniperopenstack: | |
assignee: | nobody → Sachin Bansal (sbansal) |
description: | updated |
This should have been fixed with this commit: https:/ /github. com/Juniper/ contrail- controller/ commit/ aa4a4542a9570b5 691402361aeaded 3851f5fea9# diff-cf31ed51db 056c325c8954d53 f73c2ec
Please try again with a build that has the above commit.