303: Not abel to del or add a VIP

Bug #1635901 reported by Vinod Nair
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Dinesh Bakiaraj
R3.0.3.x
Fix Committed
High
Dinesh Bakiaraj
R3.1
Fix Committed
High
Dinesh Bakiaraj
R3.2
Fix Committed
High
Dinesh Bakiaraj
Trunk
Fix Committed
High
Dinesh Bakiaraj

Bug Description

After upgrading to 3.0.3-B3, npot able to delete or add vip ..Get the below trace

WARNING:contrail-api:__default__ [SYS_NOTICE]: VncApiError: RabbitMQ connection ESTABLISHED <Connection: amqp://guest:**@13.1.0.12:5672// at 0x7feca2c1d950>
13.1.0.12 - - [2016-10-22 16:29:07] "GET /virtual-ip/6157dce3-98b7-40c9-975b-7862db468143?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1827 0.067809
13.1.0.12 - - [2016-10-22 16:29:07] "GET /virtual-ip/6157dce3-98b7-40c9-975b-7862db468143?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1827 0.029701
13.1.0.12 - - [2016-10-22 16:29:07] "POST /ref-update HTTP/1.1" 200 122 0.074072
DEBUG:api-0:Sending request(xid=184): Delete(path=u'/fq-name-to-uuid/instance_ip:6157dce3-98b7-40c9-975b-7862db468143', version=-1)
DEBUG:api-0:Received response(xid=184): True
DEBUG:api-0:Sending request(xid=185): Delete(path=u'/api-server/subnets/default-domain:PROJ1:VIP1-NET1:145.14.0.0/24/2433613827', version=-1)
DEBUG:api-0:Received response(xid=185): True
13.1.0.12 - - [2016-10-22 16:29:08] "DELETE /instance-ip/4095a655-74a0-4368-8ec7-cc3ac2dfd0e0 HTTP/1.1" 200 115 0.208828
13.1.0.12 - - [2016-10-22 16:29:11] "GET /virtual-machine-interface/b86e08a3-c45f-4146-be76-1d0f236336d2?fields=instance_ip_back_refs%2Cinterface_route_table_refs HTTP/1.1" 200 2680 0.478803
DEBUG:api-0:Sending request(xid=186): Delete(path=u'/fq-name-to-uuid/virtual_machine_interface:default-domain:PROJ1:default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__right__1', version=-1)
DEBUG:api-0:Received response(xid=186): True
13.1.0.12 - - [2016-10-22 16:29:11] "DELETE /virtual-machine-interface/b86e08a3-c45f-4146-be76-1d0f236336d2 HTTP/1.1" 200 115 0.125459
13.1.0.12 - - [2016-10-22 16:29:11] "POST /ref-update HTTP/1.1" 200 122 0.027159
13.1.0.12 - - [2016-10-22 16:29:11] "GET /instance-ip/b88f0480-6946-40db-b704-2e2e6c24e932?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1733 0.030372
DEBUG:api-0:Sending request(xid=187): Delete(path=u'/fq-name-to-uuid/virtual_machine_interface:default-domain:PROJ1:default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', version=-1)
ERROR:contrail-api:__default__ [SYS_ERR]: VncApiError: <type 'exceptions.KeyError'>
Python 2.7.6: /usr/bin/python
Sat Oct 22 16:29:11 2016

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/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_ifmap.py in _dbe_subscribe_callback(self=<vnc_cfg_api_server.vnc_cfg_ifmap.VncServerKombuClient object>, oper_info={u'imid': u'contrail:virtual-machine-interface:default-dom...9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'obj_dict': {u'display_name': u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'fq_name': [u'default-domain', u'PROJ1', u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2'], u'id_perms': {u'created': u'2016-10-22T23:23:26.510008', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2016-10-22T23:28:01.393166', u'permissions': {u'group': u'KeystoneServiceAdmin', u'group_access': 7, u'other_access': 7, u'owner': u'admin', u'owner_access': 7}, u'user_visible': True, u'uuid': {u'uuid_lslong': 12626384721742063782L, u'uuid_mslong': 7604013375239702565}}, u'parent_href': u'http://13.1.0.10:8082/project/38f6091b-0ee1-4154-93d5-5122c54bfc40', u'parent_type': u'project', u'parent_uuid': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'perms2': {u'global_access': 0, u'owner': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'owner_access': 7, u'share': []}, u'routing_instance_refs': [{u'attr': {u'direction': u'both', u'dst_mac': None, u'ipv6_service_chain_address': None, u'mpls_label': None, u'protocol': None, u'service_chain_address': None, u'src_mac': None, u'vlan_tag': None}, u'href': u'http://13.1.0.10:8082/routing-instance/056f167d-d0c6-4083-8086-16b986e23d4b', u'to': [u'default-domain', u'PROJ1', u'POOL1-NET1', u'POOL1-NET1'], u'uuid': u'056f167d-d0c6-4083-8086-16b986e23d4b'}], u'security_group_refs': [{u'attr': None, u'href': u'http://13.1.0.10:8082/security-group/e74b5c76-2730-46a2-817d-882131220788', u'to': [u'default-domain', u'PROJ1', u'default'], u'uuid': u'e74b5c76-2730-46a2-817d-882131220788'}], u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6', ...}, u'oper': u'DELETE', u'parent_imid': u'contrail:project:default-domain:PROJ1', u'type': u'virtual-machine-interface', u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6'})
  965 self._dbe_update_notification(oper_info)
  966 elif oper_info['oper'] == 'DELETE':
  967 self._dbe_delete_notification(oper_info)
  968
  969 trace_msg(trace, 'MessageBusNotifyTraceBuf', self._sandesh)
self = <vnc_cfg_api_server.vnc_cfg_ifmap.VncServerKombuClient object>
self._dbe_delete_notification = <bound method VncServerKombuClient._dbe_delete_n...erver.vnc_cfg_ifmap.VncServerKombuClient object>>
oper_info = {u'imid': u'contrail:virtual-machine-interface:default-dom...9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'obj_dict': {u'display_name': u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'fq_name': [u'default-domain', u'PROJ1', u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2'], u'id_perms': {u'created': u'2016-10-22T23:23:26.510008', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2016-10-22T23:28:01.393166', u'permissions': {u'group': u'KeystoneServiceAdmin', u'group_access': 7, u'other_access': 7, u'owner': u'admin', u'owner_access': 7}, u'user_visible': True, u'uuid': {u'uuid_lslong': 12626384721742063782L, u'uuid_mslong': 7604013375239702565}}, u'parent_href': u'http://13.1.0.10:8082/project/38f6091b-0ee1-4154-93d5-5122c54bfc40', u'parent_type': u'project', u'parent_uuid': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'perms2': {u'global_access': 0, u'owner': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'owner_access': 7, u'share': []}, u'routing_instance_refs': [{u'attr': {u'direction': u'both', u'dst_mac': None, u'ipv6_service_chain_address': None, u'mpls_label': None, u'protocol': None, u'service_chain_address': None, u'src_mac': None, u'vlan_tag': None}, u'href': u'http://13.1.0.10:8082/routing-instance/056f167d-d0c6-4083-8086-16b986e23d4b', u'to': [u'default-domain', u'PROJ1', u'POOL1-NET1', u'POOL1-NET1'], u'uuid': u'056f167d-d0c6-4083-8086-16b986e23d4b'}], u'security_group_refs': [{u'attr': None, u'href': u'http://13.1.0.10:8082/security-group/e74b5c76-2730-46a2-817d-882131220788', u'to': [u'default-domain', u'PROJ1', u'default'], u'uuid': u'e74b5c76-2730-46a2-817d-882131220788'}], u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6', ...}, u'oper': u'DELETE', u'parent_imid': u'contrail:project:default-domain:PROJ1', u'type': u'virtual-machine-interface', u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6'}

 /usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_ifmap.py in _dbe_delete_notification(self=<vnc_cfg_api_server.vnc_cfg_ifmap.VncServerKombuClient object>, obj_info={u'imid': u'contrail:virtual-machine-interface:default-dom...9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'obj_dict': {u'display_name': u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2', u'fq_name': [u'default-domain', u'PROJ1', u'default-domain__PROJ1__9c4d69ce-a044-46cf-a97f-46d999f0b448__1__left__2'], u'id_perms': {u'created': u'2016-10-22T23:23:26.510008', u'creator': None, u'description': None, u'enable': True, u'last_modified': u'2016-10-22T23:28:01.393166', u'permissions': {u'group': u'KeystoneServiceAdmin', u'group_access': 7, u'other_access': 7, u'owner': u'admin', u'owner_access': 7}, u'user_visible': True, u'uuid': {u'uuid_lslong': 12626384721742063782L, u'uuid_mslong': 7604013375239702565}}, u'parent_href': u'http://13.1.0.10:8082/project/38f6091b-0ee1-4154-93d5-5122c54bfc40', u'parent_type': u'project', u'parent_uuid': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'perms2': {u'global_access': 0, u'owner': u'38f6091b-0ee1-4154-93d5-5122c54bfc40', u'owner_access': 7, u'share': []}, u'routing_instance_refs': [{u'attr': {u'direction': u'both', u'dst_mac': None, u'ipv6_service_chain_address': None, u'mpls_label': None, u'protocol': None, u'service_chain_address': None, u'src_mac': None, u'vlan_tag': None}, u'href': u'http://13.1.0.10:8082/routing-instance/056f167d-d0c6-4083-8086-16b986e23d4b', u'to': [u'default-domain', u'PROJ1', u'POOL1-NET1', u'POOL1-NET1'], u'uuid': u'056f167d-d0c6-4083-8086-16b986e23d4b'}], u'security_group_refs': [{u'attr': None, u'href': u'http://13.1.0.10:8082/security-group/e74b5c76-2730-46a2-817d-882131220788', u'to': [u'default-domain', u'PROJ1', u'default'], u'uuid': u'e74b5c76-2730-46a2-817d-882131220788'}], u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6', ...}, u'oper': u'DELETE', u'parent_imid': u'contrail:project:default-domain:PROJ1', u'type': u'virtual-machine-interface', u'uuid': u'6986e1e0-827b-4825-af39-ee01c8dae8a6'})
 1075 finally:
 1076 (ok, ifmap_result) = self._ifmap_db.object_delete(obj_info['type'],
 1077 obj_info)
 1078 if not ok:
 1079 self.config_log(ifmap_result, level=SandeshLevel.SYS_ERR)

Tags: lbaas
Revision history for this message
Dinesh Bakiaraj (dineshb) wrote :

I am looking into it.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/25381
Submitter: Dinesh Bakiaraj (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25381
Committed: http://github.org/Juniper/contrail-controller/commit/c1678b269be3155c071a4ac2a37b601b1b709fd8
Submitter: Zuul
Branch: R3.0.3.x

commit c1678b269be3155c071a4ac2a37b601b1b709fd8
Author: dineshb-jnpr <email address hidden>
Date: Wed Oct 26 10:42:56 2016 -0700

Gracefully handle duplicate delete requests.

This code change is to handle any gracefully handle duplicate delete requests
sent by external entities, in this case service monitor.
This code change will log and handle the key not found excpetion and proceed.

The service monitor, sending duplicate deletes is tracked by bug: 1636932

Change-Id: I606561ca0e3c570713b41c196325180a16f96987
closes-bug: #1635901

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/25530
Submitter: Dinesh Bakiaraj (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/25532
Submitter: Dinesh Bakiaraj (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/25533
Submitter: Dinesh Bakiaraj (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25530
Committed: http://github.org/Juniper/contrail-controller/commit/f10daf75b67bcfd6d69a220567e8830663dde11a
Submitter: Zuul
Branch: R3.1

commit f10daf75b67bcfd6d69a220567e8830663dde11a
Author: dineshb-jnpr <email address hidden>
Date: Wed Oct 26 10:42:56 2016 -0700

Gracefully handle duplicate delete requests.

This code change is to handle any gracefully handle duplicate delete requests
sent by external entities, in this case service monitor.
This code change will log and handle the key not found excpetion and proceed.

The service monitor, sending duplicate deletes is tracked by bug: 1636932

Change-Id: I606561ca0e3c570713b41c196325180a16f96987
closes-bug: #1635901

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/25533
Committed: http://github.org/Juniper/contrail-controller/commit/017e956f4225cb4b1e49372a2a0e59ce9a9a4798
Submitter: Zuul
Branch: R3.2

commit 017e956f4225cb4b1e49372a2a0e59ce9a9a4798
Author: dineshb-jnpr <email address hidden>
Date: Wed Oct 26 10:42:56 2016 -0700

Gracefully handle duplicate delete requests.

This code change is to handle any gracefully handle duplicate delete requests
sent by external entities, in this case service monitor.
This code change will log and handle the key not found excpetion and proceed.

The service monitor, sending duplicate deletes is tracked by bug: 1636932

Change-Id: I606561ca0e3c570713b41c196325180a16f96987
closes-bug: #1635901

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/25567
Submitter: Dinesh Bakiaraj (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/25532
Committed: http://github.org/Juniper/contrail-controller/commit/6da0317def7885801cc8ee4ffaad86cd12676b9f
Submitter: Zuul
Branch: master

commit 6da0317def7885801cc8ee4ffaad86cd12676b9f
Author: dineshb-jnpr <email address hidden>
Date: Wed Oct 26 10:42:56 2016 -0700

Gracefully handle duplicate delete requests.

This code change is to handle any gracefully handle duplicate delete requests
sent by external entities, in this case service monitor.
This code change will log and handle the key not found excpetion and proceed.

The service monitor, sending duplicate deletes is tracked by bug: 1636932

Change-Id: I606561ca0e3c570713b41c196325180a16f96987
closes-bug: #1635901

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/25567
Committed: http://github.org/Juniper/contrail-controller/commit/6e8157fc010640aa329a812f7d20605bf983e867
Submitter: Zuul
Branch: R3.0

commit 6e8157fc010640aa329a812f7d20605bf983e867
Author: dineshb-jnpr <email address hidden>
Date: Wed Oct 26 10:42:56 2016 -0700

Gracefully handle duplicate delete requests.

This code change is to handle any gracefully handle duplicate delete requests
sent by external entities, in this case service monitor.
This code change will log and handle the key not found excpetion and proceed.

The service monitor, sending duplicate deletes is tracked by bug: 1636932

Change-Id: I606561ca0e3c570713b41c196325180a16f96987
closes-bug: #1635901

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.