[config R2.20 build 45] Traceback in delete operation

Bug #1463923 reported by Prakash Bailkeri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Prakash Bailkeri
Trunk
Fix Committed
High
Prakash Bailkeri

Bug Description

Duplicate delete operation may result in Internal server error instead of 404 error.

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1625, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 535, in handler_trap_exception
    response = handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/gen/vnc_api_server_gen.py", line 19833, in virtual_machine_interface_http_delete
    parent_type = read_result.get('parent_type', None)
AttributeError: 'str' object has no attribute 'get'

dbe_read returns error (read_result = 'Unknown id: 7f12a64f-9176-4345-adad-2551cc6005fe'). Trying to parse this result causes the exception.

1. It is possible due to race condition in duplicate delete (concurrent requests)
2. delayed dbe_delete_notification or no dbe_delete_notification (which causes uuid_to_obj_type cache to still contain deleted object)

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/11463
Submitter: Prakash Bailkeri (<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/11464
Submitter: Prakash Bailkeri (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/11463
Committed: http://github.org/Juniper/contrail-generateDS/commit/bf2adb827d883e4ed10b00785f017751d42255eb
Submitter: Zuul
Branch: R2.20

commit bf2adb827d883e4ed10b00785f017751d42255eb
Author: Prakash Bailkeri <email address hidden>
Date: Wed Jun 10 10:37:11 2015 -0700

Parse the read_result for NoIdError and return 404 in case dbe_read fails with
Unknown Id error

Change-Id: I701f4beb7bdcb818b7c83992276c8a5554aa207f
Closes-bug: #1463923

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

Reviewed: https://review.opencontrail.org/11464
Committed: http://github.org/Juniper/contrail-generateDS/commit/31a31b07af54689c901693a91d68d2e2ba40d6b1
Submitter: Zuul
Branch: master

commit 31a31b07af54689c901693a91d68d2e2ba40d6b1
Author: Prakash Bailkeri <email address hidden>
Date: Wed Jun 10 10:37:11 2015 -0700

Parse the read_result for NoIdError and return 404 in case dbe_read fails with
Unknown Id error

Change-Id: I701f4beb7bdcb818b7c83992276c8a5554aa207f
Closes-bug: #1463923

Hampapur Ajay (hajay)
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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