Activity log for bug #1800636

Date Who What changed Old value New value Message
2018-10-30 11:13:05 Sergey Kreys bug added bug
2018-10-30 11:13:18 Sergey Kreys information type Proprietary Public
2018-10-30 11:14:34 Sergey Kreys juniperopenstack: status New In Progress
2018-10-30 11:14:34 Sergey Kreys juniperopenstack: assignee Sergey Kreys (skreys)
2018-10-30 11:14:58 Sergey Kreys description Internal python vnc_ifmap can't handle white spaces in openstack project name. Impact: no object can be deleted from ifmap in such projects. For example, if we have project with name "Test project with spaces", we would get the following on object deletion: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 331, in _dbe_subscribe_callback self._dbe_delete_notification(oper_info) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 440, in _dbe_delete_notification (ok, ifmap_result) = self._ifmap_db.object_delete(obj_info) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 724, in object_delete VncIfmapServer.delete(obj_ids['imid']) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 335, in delete cls.delete(id_name, cls.get_links(id_name).keys()) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 321, in delete if not cls._graph[other_name]['links']: KeyError: 'contrail:virtual-machine-interface:default-domain:Test' Affected code is in vnc_ifmap.py in delete() function: other_name = link_key.split()[1] <...> if not cls._graph[other_name]['links']: del cls._graph[other_name] In our case link_key.split()[1] will get just a part of full object name before the first space, and hence an attempt to access it in _graph will fail with KeyError. Contrail version: R3.2 Internal python vnc_ifmap can't handle white spaces in openstack project name. Impact: no object can be deleted from ifmap in such projects. For example, if we have project with name "Test project with spaces", we would get the following on object deletion: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 331, in _dbe_subscribe_callback self._dbe_delete_notification(oper_info) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_db.py", line 440, in _dbe_delete_notification (ok, ifmap_result) = self._ifmap_db.object_delete(obj_info) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 724, in object_delete VncIfmapServer.delete(obj_ids['imid']) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 335, in delete cls.delete(id_name, cls.get_links(id_name).keys()) File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_ifmap.py", line 321, in delete if not cls._graph[other_name]['links']: KeyError: 'contrail:virtual-machine-interface:default-domain:Test' Affected code is in vnc_ifmap.py in delete() function:                     other_name = link_key.split()[1]                     <...>                     if not cls._graph[other_name]['links']:                         del cls._graph[other_name] In our case link_key.split()[1] will get just a part of full object name before the first space, and hence an attempt to access it in _graph will fail with KeyError.
2018-10-30 16:43:20 Jeba Paulaiyan nominated for series juniperopenstack/trunk
2018-10-30 16:43:20 Jeba Paulaiyan bug task added juniperopenstack/trunk
2018-10-30 16:48:38 Jeba Paulaiyan nominated for series juniperopenstack/r5.0
2018-10-30 16:48:38 Jeba Paulaiyan bug task added juniperopenstack/r5.0
2018-10-30 16:48:52 Jeba Paulaiyan bug task deleted juniperopenstack/r5.0
2018-10-30 16:54:18 OpenContrail Admin nominated for series juniperopenstack/r3.2
2018-10-30 16:54:18 OpenContrail Admin bug task added juniperopenstack/r3.2
2018-10-30 16:54:18 OpenContrail Admin bug task added juniperopenstack/r3.2
2018-11-01 09:17:16 Jeba Paulaiyan juniperopenstack/r3.2: importance Undecided Medium
2018-11-01 09:17:19 Jeba Paulaiyan juniperopenstack/trunk: importance Undecided Medium
2018-12-13 19:11:22 OpenContrail Admin juniperopenstack/r3.2: status In Progress Fix Committed