changing the qos policy on a network does not change the placement allocation of the bound ports in the network

Bug #1915898 reported by Balazs Gibizer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Przemyslaw Szczerbik

Bug Description

1) create a network with qos policy (with min_bw rule)
2) create a port in that network without explicit qos policy (so the port inherits the policy from the network)
3) boot a server with that port
4) update the qos policy on the network

Expected either:
A)
* qos policy change is accepted
* the port resource request is updated according to the new qos policy
* the placement allocation is updated according to the new qos policy

B)
* qos policy update is rejected

Actual:
* qos policy change is accepted -> OK as in A)
* the port resource request is updated according to the new qos policy -> OK as in A)
* the placement allocation is _not_ updated -> NOT OK in A)

See the specific reproduction steps with printouts in: http://paste.openstack.org/show/802718/

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

Please note that the above scenario is relevant also for the case when there are more than one bound port exists in the network.

tags: added: qos
Changed in neutron:
assignee: nobody → Lajos Katona (lajos-katona)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
Changed in neutron:
assignee: Lajos Katona (lajos-katona) → Przemyslaw Szczerbik (pszczerbik)
Revision history for this message
Przemyslaw Szczerbik (pszczerbik) wrote :

A) is the correct expected behavior.

Rejecting QoS policy update in B) approach, would break dataplane enforcement.

Changed in neutron:
status: Confirmed → In Progress
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/+/818889

tags: added: wallaby-backport-potential xena-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit e68a2832114739264dbbd42766b4991afa2e0d0d
Author: Przemyslaw Szczerbik <email address hidden>
Date: Wed Nov 17 09:12:16 2021 +0100

    Update placement allocation of bound ports when network QoS policy is changed

    When QoS policy is changed on a network, placement allocation of bound
    ports in that network has to be updated. This applies only to ports
    that do not overwrite network QoS policy.

    To detect network resource change, a new callback is registered for
    AFTER_UPDATE event.

    Closes-Bug: #1915898
    Change-Id: Ibc71d26cbb0dce99ea6dad9e5ccd0966e72f3f20

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

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