← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2091613] Re: Error 500 returned if network with transparent vlan is created but backend don't support it

 

Reviewed:  https://review.opendev.org/c/openstack/neutron-lib/+/937605
Committed: https://opendev.org/openstack/neutron-lib/commit/102274bf7e1b81ff2bdde21ba957765c31454c9e
Submitter: "Zuul (22348)"
Branch:    master

commit 102274bf7e1b81ff2bdde21ba957765c31454c9e
Author: Slawek Kaplonski <skaplons@xxxxxxxxxx>
Date:   Thu Dec 12 10:48:04 2024 +0100

    Change parent for the VlanTransparencyDriverError
    
    Previously this exception class inherited from the generic
    NeutronException which caused errors 500 returned in the API when it was
    raised.
    Now it inherits from the BadRequest exception, it is handled by the
    API in a "nicer" way and returns 400 with proper error message.
    
    Depends-On: https://review.opendev.org/c/openstack/neutron/+/937668
    
    Closes-Bug: #2091613
    Change-Id: I6ec6b431371a2a902b7e8a35cf9a172ff5d5d82b


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2091613

Title:
  Error 500 returned if network with transparent vlan is created but
  backend don't support it

Status in neutron:
  Fix Released

Bug description:
  If backend which don't support vlan_transparency is used, like e.g.
  ml2/ovs and network with "vlan_transparent=True" is requested to be
  created, neutron will return proper error that vlan_transparent is not
  supported by backend, but this
  neutron_lib.exceptions.vlantransparent.VlanTransparencyDriverError
  exception is not handled properly and it is returned as "HTTP 500"
  instead of something nicer.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2091613/+subscriptions



References