[VNC OpenStack] List port with a malformed device uuid raise an internal error

Bug #1612557 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned

Bug Description

$ neutron port-list --device-id bad_uuid
An unknown exception occurred.
Neutron server returns request_ids: ['req-a09d661e-5ab2-4b3f-9bb8-4ab49e90ee4d']

In vnc api logs:

ERROR:contrail-api:__default__ [SYS_ERR]: VncApiError: <pre>Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1641, in handler_trap_exception
    response = handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/cfgm_common/vnc_api_stats.py", line 17, in wrapper
    response = func(api_server_obj, resource_type, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 986, in http_resource_list
    back_ref_uuids = [str(uuid.UUID(b_uuid)) for b_uuid in back_ref_ids]
  File "/usr/lib/python2.7/uuid.py", line 134, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadecimal UUID string
</pre>

Tags: config neutron
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/23254
Submitter: ?douard Thuleau (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/23254
Committed: http://github.org/Juniper/contrail-controller/commit/1a09f64f271fae5ded4b16cfe9434d561ab2cc19
Submitter: Zuul
Branch: master

commit 1a09f64f271fae5ded4b16cfe9434d561ab2cc19
Author: Édouard Thuleau <email address hidden>
Date: Fri Aug 12 13:19:47 2016 +0200

[VNC API Server] Ignore malformed UUID in filters

If filters that should contain UUID v4 string have some malformed
values, we ignore them and just return list for valid ones

Change-Id: I2995ad9cceb6b0254a7f98338c2e356cc3082eac
Closes-bug: #1612557

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.