Contrail VNC ifmap can not delete objects if project name contains spaces
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.2 |
Fix Committed
|
Medium
|
Sergey Kreys | |||
Trunk |
In Progress
|
Medium
|
Sergey Kreys |
Bug Description
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/
self._dbe_
File "/usr/lib/
(ok, ifmap_result) = self._ifmap_
File "/usr/lib/
VncIfmapServer.
File "/usr/lib/
cls.delete(id_name, cls.get_
File "/usr/lib/
if not cls._graph[
KeyError: 'contrail:
Affected code is in vnc_ifmap.py in delete() function:
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.
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
assignee: | nobody → Sergey Kreys (skreys) |
status: | New → In Progress |
description: | updated |
no longer affects: | juniperopenstack/r5.0 |
Review in progress for https:/ /review. opencontrail. org/47368
Submitter: Sergey Kreys (<email address hidden>)