Bug 1311927 - Attaching qos policies to networks without policy fails
Summary: Attaching qos policies to networks without policy fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Assaf Muller
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-25 10:53 UTC by Matthias Runge
Modified: 2016-04-26 18:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-25 14:44:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1549738 0 None None None 2016-02-25 10:53:53 UTC

Description Matthias Runge 2016-02-25 10:53:54 UTC
Description of problem:

[root@rhos-8 ~(keystone_admin)]# neutron qos-policy-list
+--------------------------------------+------------+
| id                                   | name       |
+--------------------------------------+------------+
| 5c86a65e-b062-4016-bbc2-4ce76cac42f9 | foo        |
| b03ee37f-ca45-4c7e-861d-a004ce362ad0 | limit_rule |
+--------------------------------------+------------+


neutron net-update --qos-policy 5c86a65e-b062-4016-bbc2-4ce76cac42f9 foo


2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 83, in resource
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 146, in wrapper
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 136, in wrapper
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 613, in update
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py", line 668, in update_network
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource     original_network[qos_consts.QOS_POLICY_ID] !=
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource KeyError: 'qos_policy_id'
2016-02-25 05:34:01.107 3877 ERROR neutron.api.v2.resource 
Version-Release number of selected component (if applicable):



I have openstack-neutron-7.0.1-10.el7ost.noarch

Comment 1 Matthias Runge 2016-02-25 14:44:42 UTC
missing qos config in ml2 on my side.


Note You need to log in before you can comment on or make changes to this bug.