ML2 plugin hides mechanism driver error/exception details

Bug #1589622 reported by Richard Theis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
In Progress
Wishlist
Hong Hui Xiao

Bug Description

As reported by https://bugs.launchpad.net/networking-ovn/+bug/1588848, the switch for networking-ovn from a core plugin to an ML2 mechanism driver resulted in 500 errors being returned for invalid port bindings. This is the result of the ML2 core plugin mapping driver errors to MechanismDriverError errors and hiding the error details from the caller. In particular, it would be ideal if something like "neutron port-create --name foo --binding-profile '{"tag":42333}' private" would indicate more than just "create_port_precommit failed" for a validation error by an ML2 mechanism driver. Or for binding profile specifically, it would be ideal to allow ML2 mechanism drivers to provide their own validate method.

Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :

I have seen this in the past, hence confirmed.

summary: - ML2 plugin hides mechanism driver errors
+ ML2 plugin hides mechanism driver error/exception details
Changed in neutron:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Slawek Kaplonski (slaweq) wrote :

I will try to have a look on that because it might impact also https://bugs.launchpad.net/neutron/+bug/1586056

Changed in neutron:
assignee: nobody → Slawek Kaplonski (slaweq)
Changed in neutron:
assignee: Slawek Kaplonski (slaweq) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/327500

Changed in neutron:
assignee: nobody → Hong Hui Xiao (xiaohhui)
status: Confirmed → In Progress
Revision history for this message
Hong Hui Xiao (xiaohhui) wrote :

https://review.openstack.org/327500 will add the mechanism driver error details to MechanismDriverError. But the return code will still be 500, because it is still MechanismDriverError being returned in that patch.

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.