control-node ifmap continued to have snat si even after router is deleted
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R1.1 |
Fix Committed
|
Medium
|
Hampapur Ajay | |||
R2.0 |
Fix Committed
|
Undecided
|
Vedamurthy Joshi | |||
Trunk |
Fix Committed
|
Medium
|
Vedamurthy Joshi |
Bug Description
R1.10 44 (Ubuntu icehouse multinode setup)
In the test test_basic_
At the end of it, the script failed because the VN object in control-node config db continued to exist even after the VN and router was deleted.
It was seen that the snat VM's instance IP continued to refer to the VN in control-node config.
The VN is virtual-
In control-node introspect : ifmap table entry :
virtual-
- - -
obj_info
neighbors
instance-
00:38:46.051751
Logs will be in http://
root@nodec22:
+------
| id | name | subnets |
+------
| dd32ac7e-
| d9efaf6b-
| eae8c123-
| 2993df96-
+------
root@nodec22:
test logs :
=========
2014-10-04 05:42:38,453 - INFO - Deleting interface with subnet_id aca8ed2d-
b6b-dc7b-
2014-10-04 05:42:39,062 - INFO - Deleting the VM vm_public-53323424
2014-10-04 05:42:44,221 - INFO - Deleting the VM vm_private-26268979
2014-10-04 05:42:49,326 - INFO - Deleting the VN vn_private-41715389
2014-10-04 05:42:49,488 - INFO - VN vn_private-41715389 is not found in API Server
None
2014-10-04 05:42:49,494 - INFO - VN vn_private-41715389 is not present in Agent 10.204.217.69
None
2014-10-04 05:42:49,501 - INFO - VN vn_private-41715389 is not present in Agent 10.204.217.108
None
2014-10-04 05:42:49,507 - INFO - VN vn_private-41715389 is not present in Agent 10.204.217.109
2014-10-04 05:42:49,510 - WARNING - Routing instance for VN vn_private-41715389 is still found in Control-node 10.204.217.7
2014-10-04 05:42:49,513 - WARNING - Routing instance for VN vn_private-41715389 is still found in Control-node 10.204.217.108
2014-10-04 05:42:49,550 - WARNING - Control-node config DB still has VN vn_private-41715389
2014-10-04 05:42:54,601 - INFO - Routing instances and Config db in Control-nodes does not have VN vn_private-41715389 info
2014-10-04 05:42:54,601 - INFO - Deleting RT for VN ext_vn-51078609
2014-10-04 05:42:54,624 - INFO - Deleting the VN ext_vn-51078609
2014-10-04 05:42:55,016 - INFO - VN ext_vn-51078609 is not found in API Server
None
2014-10-04 05:42:55,022 - INFO - VN ext_vn-51078609 is not present in Agent 10.204.217.69
None
2014-10-04 05:42:55,030 - INFO - VN ext_vn-51078609 is not present in Agent 10.204.217.109
2014-10-04 05:42:55,032 - WARNING - Routing instance for VN ext_vn-51078609 is still found in Control-node 10.204.217.7
2014-10-04 05:42:55,036 - WARNING - Routing instance for VN ext_vn-51078609 is still found in Control-node 10.204.217.108
2014-10-04 05:42:55,066 - WARNING - Control-node config DB still has VN ext_vn-51078609
2014-10-04 05:43:00,110 - WARNING - Control-node config DB still has VN ext_vn-51078609
2014-10-04 05:43:05,159 - WARNING - Control-node config DB still has VN ext_vn-51078609
2014-10-04 05:43:10,197 - WARNING - Control-node config DB still has VN ext_vn-51078609
Prakash debugged on a similar issue :
Have these errors in contrail-api-0.log :
Traceback (most recent call last): python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 1168, in _dbe_oper_subscribe _dbe_delete_ notification( oper_info) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 1270, in _dbe_delete_ notification python2. 7/dist- packages/ vnc_cfg_ api_server/ gen/vnc_ ifmap_client_ gen.py" , line 7949, in _ifmap_ virtual_ machine_ delete _delete_ id_pair_ meta(r_ elem[0] .attrib[ 'name'] , to_imid, meta_name) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 343, in _delete_ id_pair_ meta to_metas_ delete( id_x, id_y, meta_name) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 324, in _id_to_metas_delete to_metas[ id1]: service- instance: default- domain: TestRouters- 01229666: si_21072655- bd1c-433b- b818-fb3c838bd7 34'
File "/usr/lib/
self.
File "/usr/lib/
(ok, ifmap_result) = method(obj_info)
File "/usr/lib/
self.
File "/usr/lib/
_id_
File "/usr/lib/
if meta_name not in self._id_
KeyError: 'contrail:
Traceback (most recent call last): python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 1168, in _dbe_oper_subscribe _dbe_delete_ notification( oper_info) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 1270, in _dbe_delete_ notification python2. 7/dist- packages/ vnc_cfg_ api_server/ gen/vnc_ ifmap_client_ gen.py" , line 1216, in _ifmap_ instance_ ip_delete _delete_ id_pair_ meta(r_ elem[0] .attrib[ 'name'] , to_imid, meta_name) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 343, in _delete_ id_pair_ meta to_metas_ delete( id_x, id_y, meta_name) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ ifmap.py" , line 324, in _id_to_metas_delete to_metas[ id1]: virtual- machine- interface: default- domain: TestRouters- 01229666: default- domain_ _TestRouters- 01229666_ _c2a0c10f- f6f2-4b51- bdb7-9f3d062f76 0e__1-right'
File "/usr/lib/
self.
File "/usr/lib/
(ok, ifmap_result) = method(obj_info)
File "/usr/lib/
self.
File "/usr/lib/
_id_
File "/usr/lib/
if meta_name not in self._id_
KeyError: 'contrail: