[OVN] Error during execution of "add_vnic_type_and_pb_capabilities_to_lsp"

Bug #2006112 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Rodolfo Alonso

Bug Description

If the port binding profile is an empty string, the call in [1] will fail, returning a "JSONDecodeError" error.

Error: https://paste.opendev.org/show/b6xvSBDMtEZGqKvEEdee/

This method was introduced in [2]. The fix should be pushed only for 2023.1 (Antelope).

[1]https://github.com/openstack/neutron/blob/b260b7cba2d03ee426506fc89dd6a58a9d1a8ffa/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py#L941
[2]https://review.opendev.org/c/openstack/neutron/+/867359

Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
description: updated
Changed in neutron:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/872737

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/872737
Committed: https://opendev.org/openstack/neutron/commit/76f3b75ad64b3966f51fb1a75b065d70dcc56e3d
Submitter: "Zuul (22348)"
Branch: master

commit 76f3b75ad64b3966f51fb1a75b065d70dcc56e3d
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Feb 3 20:19:38 2023 +0100

    [OVN] Skip ports with VNIC type direct and no port binding

    In the method ``add_vnic_type_and_pb_capabilities_to_lsp``, if the port
    binding profile is an empty string (or something that cannot be parsed
    by jsonutils), skip this port.

    Closes-Bug: #2006112
    Change-Id: Ifa8956bf1c5eb9b6c3214638ac4e5b7f10e4cf74

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 22.0.0.0rc1

This issue was fixed in the openstack/neutron 22.0.0.0rc1 release candidate.

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.