[openstack-dev] [neutron][qos] qos service enabling in test env

Bhatia, Manjeet S manjeet.s.bhatia at intel.com
Thu Mar 30 00:33:09 UTC 2017


Hi neutrinos,

I reported a bug in plugin been sending stale data to mechanism driver [1].
Which was fixed by [2].  I am trying to write a test case as well, but seems like
I am unable to see success for enabling qos service properly in test environment

In neutron/tests/unit/plugins/ml2/test_plugin.TestMl2NetworksV2

What I did to enable it was, in setup() I've added.
              config.cfg.CONF.set_override('service_plugins', ['qos'])
              config.cfg.CONF.set_override('extension_drivers',
                                                                    ['qos', 'port_security'], 'ml2')


When I create network without qos_policy_id in data, the request self.new_create_request('networks',  data)
Does not show qos_policy_id in it, but when I call self.new_create_request('networks',  data) and data
has qos_policy_id from policy created via QoSPlugin it returns response bad request 400.

I believe it is because of qos not being enabled in test environment properly ? any idea what is wrong with
Enabling qos ? or anything I am missing to enable it in test env ?


[1]. https://bugs.launchpad.net/neutron/+bug/1675135
[2]. https://review.openstack.org/#/c/448754/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170330/6e34fdd8/attachment.html>


More information about the OpenStack-dev mailing list