Not supporting 'security-group' extension-alias causing tempest quotas and ext_list tests

Asked by kedar kulkarni

Hi all,

We are writing a neutron plugin in which security groups support is not there, we want to use nova security groups instead.
So we dont have "security-group" in supported_extension_aliases.

Now, when i am running some tempest tests, we are seeing issues because of this.
For example,
1) nosetests -sv tempest.api.network.test_extensions:ExtensionsTestXML.test_list_show_extensions
==>
Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/api/network/test_extensions.py", line 77, in test_list_show_extensions
    self.assertIn(e, actual_alias)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 330, in assertIn
    self.assertThat(haystack, Contains(needle))
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 414, in assertThat
    raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'security-group' not in [u'service-type', u'ext-gw-mode', u'l3_agent_scheduler', u'lbaas_agent_scheduler', u'provider', u'binding', u'quotas', u'agent', u'metering', u'dhcp_agent_scheduler', u'external-net', u'router', u'allowed-address-pairs', u'extra_dhcp_opt', u'lbaas', u'extraroute']

2) tempest.api.network.test_quotas:QuotasTest.test_quotas​
==>
Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/api/network/test_quotas.py", line 68, in test_quotas
    **new_quotas)
  File "/opt/stack/tempest/tempest/services/network/json/network_client.py", line 101, in update_quotas
    resp, body = self.put(uri, body)
  File "/opt/stack/tempest/tempest/services/network/network_client_base.py", line 65, in put
    return self.rest_client.put(uri, body, headers)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 314, in put
    return self.request('PUT', url, headers, body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 436, in request
    resp, resp_body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 486, in _error_checker
    raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: {u'NeutronError': u"Unrecognized attribute(s) 'security_group'"}

Why is this happening, is it a bug or am I missing somewhere.
Please help me regarding this. Any help!
Thank you in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
neutron Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sumit Naiksatam (snaiksat) said :
#1

Noticed this issue as well, I have create a bug on the tempest side for this:
https://bugs.launchpad.net/tempest/+bug/1270244

Can you help with this problem?

Provide an answer of your own, or ask kedar kulkarni for more information if necessary.

To post a message you must log in.