← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1996606] [NEW] QoS rules policies do not work for "owners"

 

Public bug reported:

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

Policies for QoS rules do not work for "owner" since QoS rules do not
have a project ID. When the default policy is overridden, the policy
enforcement raise an exception. For example:

  update_policy_bandwidth_limit_rule":"rule:admin_or_owner"

When the policy engine tries to check the owner, it first check the
project_id of the object. In this case, the QoS rule does NOT have a
project ID (e.g.: max-bw rule definition [1]).

This is the exception the engine returns: [2].

[1]https://github.com/openstack/neutron/blob/320f54eba1a82917e4f02244ea8ddf9757d8f39f/neutron/db/qos/models.py#L145-L166
[2]https://paste.opendev.org/show/bEPQCngI8QpmWIVGoiAi/

** Affects: neutron
     Importance: Medium
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
   Importance: Undecided => Medium

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

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

Title:
  QoS rules policies do not work for "owners"

Status in neutron:
  New

Bug description:
  Related bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2141470

  Policies for QoS rules do not work for "owner" since QoS rules do not
  have a project ID. When the default policy is overridden, the policy
  enforcement raise an exception. For example:

    update_policy_bandwidth_limit_rule":"rule:admin_or_owner"

  When the policy engine tries to check the owner, it first check the
  project_id of the object. In this case, the QoS rule does NOT have a
  project ID (e.g.: max-bw rule definition [1]).

  This is the exception the engine returns: [2].

  [1]https://github.com/openstack/neutron/blob/320f54eba1a82917e4f02244ea8ddf9757d8f39f/neutron/db/qos/models.py#L145-L166
  [2]https://paste.opendev.org/show/bEPQCngI8QpmWIVGoiAi/

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



Follow ups