[SR-IOV] Before enabling "uplink_status_propagation", ports are not created with this flag

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

Bug Description

Port extension "uplink_status_propagation" enables the creation of a port child register "portuplinkstatuspropagation". This register contains the flag "propagate_uplink_status". This flag is set by default as True when a port is created.

The problem this bug presents is with the existing ports before enabling the extension. Those ports don't have any "portuplinkstatuspropagation" register associated. The extension will populate the port dictionary with the value of "propagate_uplink_status"; in case of not having this flag, the value will be "False".

This bug proposes something similar to [2]. This patch set the default value of the flag to "True" for new ports. In this case, the proposal will affect existing ports **without** "portuplinkstatuspropagation" registers: if the Neutron DB port does not have this flag, return a "True" value. The aim of this proposal aligns with [2][3] goal, if an admin enables this feature, it is because he/she wants to have this feature enabled in all ports.

[1]https://github.com/openstack/neutron/blob/3615cd85a4cc6aeecf7f066c4eb21c3cdca71d4c/neutron/db/uplink_status_propagation_db.py#L31-L33
[2]https://review.opendev.org/c/openstack/neutron-lib/+/744208
[3]https://bugs.launchpad.net/neutron/+bug/1888487

Related bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2070629

Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
importance: Undecided → Low
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/+/836656

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/+/836656
Committed: https://opendev.org/openstack/neutron/commit/3a81b051d4a8e6f63f8da211816d0dbda62aee17
Submitter: "Zuul (22348)"
Branch: master

commit 3a81b051d4a8e6f63f8da211816d0dbda62aee17
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Apr 5 13:48:05 2022 +0000

    [SR-IOV] Default "propagate_uplink_status" flag to True

    Extension "uplink-status-propagation" does not allow to modify existing
    ports. This extension only enables the creation of new ports with
    this new flag.

    Similar to [1], this patch changes the default behaviour of the
    exiting ports: if no "propagate_uplink_status" flag is present, "True"
    is returned now. The aim of this change is to enable this feature for
    all existing ports, that is usually the aim of an administrator when
    enables this extension.

    [1]https://bugs.launchpad.net/neutron/+bug/1888487

    Closes-Bug: #1967881
    Related-Bug: #1888487

    Change-Id: Ica5b76e0a9a5ae12f764c66be259d7f3cd5b248b

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

This issue was fixed in the openstack/neutron 21.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.