qos rules are not applied to trunk subports

Bug #1624570 reported by Armando Migliaccio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Armando Migliaccio

Bug Description

Change [1], introduced a device_owner for trunk sub-ports. However, it was overlooked that device_owner is used by QoS to determine whether to process the port and apply QoS rules [2,3,4].

Right now there is not active coverage that ensures that QoS and Trunk are indeed compatible but as we stand right now, they clearly cannot as the code forbids applying rules to anything whose device_owner starts with 'network:' or 'neutron:'.

We need to figure out a way to solve the conundrum.

[1] https://review.openstack.org/#/c/368289/
[2] https://github.com/openstack/neutron/blob/master/neutron/objects/qos/rule.py#L84

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Mitigation action right now would be to clear the device_owner with neutron port-update, but a more long term solution must be found.

tags: added: newton-rc-potential
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Kudos to Rawlin for finding it. I am just a messenger.

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/371828

Changed in neutron:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/371829

Changed in neutron:
milestone: none → newton-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/371828
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ecdf75163527736728e0816ed3ab8e68e0f47b97
Submitter: Jenkins
Branch: master

commit ecdf75163527736728e0816ed3ab8e68e0f47b97
Author: Armando Migliaccio <email address hidden>
Date: Fri Sep 16 15:38:40 2016 -0700

    Change the prefix for trunk subports device_owner

    The choice was poorly made as the 'network:' prefix is used extensively
    in the codebase to identify ports created by the platform itself. Subports
    instead are user created.

    Closes-bug: 1624570

    Change-Id: Ie792a154a6946d0acd5bed322363319e241b1ae7

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

Reviewed: https://review.openstack.org/371829
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=5c742bf3ca12ebe2a3fe86406b19b0933cdde605
Submitter: Jenkins
Branch: stable/newton

commit 5c742bf3ca12ebe2a3fe86406b19b0933cdde605
Author: Armando Migliaccio <email address hidden>
Date: Fri Sep 16 15:38:40 2016 -0700

    Change the prefix for trunk subports device_owner

    The choice was poorly made as the 'network:' prefix is used extensively
    in the codebase to identify ports created by the platform itself. Subports
    instead are user created.

    Closes-bug: 1624570

    (cherry picked from commit ecdf75163527736728e0816ed3ab8e68e0f47b97)

    Change-Id: Ie792a154a6946d0acd5bed322363319e241b1ae7

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.0.0.0rc2

This issue was fixed in the openstack/neutron 9.0.0.0rc2 release candidate.

tags: removed: newton-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.0.0b1

This issue was fixed in the openstack/neutron 10.0.0.0b1 development milestone.

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.