Bug 1311927

Summary: Attaching qos policies to networks without policy fails
Product: Red Hat OpenStack Reporter: Matthias Runge <mrunge>
Component: openstack-neutronAssignee: Assaf Muller <amuller>
Status: CLOSED NOTABUG QA Contact: Toni Freger <tfreger>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: amuller, chrisw, nyechiel, yeylon
Target Milestone: ---   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-25 14:44:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.