error while adding a qos policy to a network

Bug #1549738 reported by Matthias Runge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Jakub Libosvar

Bug Description

[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

The version is liberty

Changed in neutron:
assignee: nobody → Jakub Libosvar (libosvar)
status: New → Confirmed
Revision history for this message
Jakub Libosvar (libosvar) wrote :

Turned out to be a misconfiguration, missing qos in ml2 extensions.

Changed in neutron:
status: Confirmed → Invalid
Revision history for this message
Matthias Runge (mrunge) wrote :

missed adding the extension to ml2.

Revision history for this message
Igor D.C. (igordcard) wrote :

If someone's looking for the quick fix:

Edit /etc/neutron/plugins/ml2/ml2_conf.ini,
inside [ml2] edit extension_drivers to include qos.

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.