port_security_enabled is used even when the extension is not available

Bug #1638487 reported by YAMAMOTO Takashi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Unassigned

Bug Description

recent changes in tempest and devstack makes it uses port security attributes
even if it isn't available.
it broke deployments without the extension.

eg. midonet v1 jobs
http://logs.openstack.org/25/392425/1/check/gate-tempest-dsvm-networking-midonet-v1/ffeb1c2/

Traceback (most recent call last):
  File "tempest/test.py", line 100, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "tempest/scenario/test_network_advanced_server_ops.py", line 140, in test_server_connectivity_pause_unpause
    server = self._setup_server(keypair)
  File "tempest/scenario/test_network_advanced_server_ops.py", line 57, in _setup_server
    network, subnet, router = self.create_networks()
  File "tempest/scenario/manager.py", line 1189, in create_networks
    port_security_enabled=port_security_enabled)
  File "tempest/scenario/manager.py", line 686, in _create_network
    result = networks_client.create_network(**network_kwargs)
  File "tempest/lib/services/network/networks_client.py", line 27, in create_network
    return self.create_resource(uri, post_data)
  File "tempest/lib/services/network/base.py", line 60, in create_resource
    resp, body = self.post(req_uri, req_post_data)
  File "tempest/lib/common/rest_client.py", line 276, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "tempest/lib/common/rest_client.py", line 664, in request
    self._error_checker(resp, resp_body)
  File "tempest/lib/common/rest_client.py", line 766, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest.lib.exceptions.BadRequest: Bad request
Details: {u'type': u'HTTPBadRequest', u'detail': u'', u'message': u"Unrecognized attribute(s) 'port_security_enabled'"}

Tags: gate-failure
Changed in tempest:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/392464

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/393618

tags: added: gate-failure
Changed in tempest:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by YAMAMOTO Takashi (<email address hidden>) on branch: master
Review: https://review.openstack.org/393618

Changed in tempest:
assignee: YAMAMOTO Takashi (yamamoto) → nobody
status: In Progress → New
Changed in tempest:
status: New → Confirmed
Changed in tempest:
status: Confirmed → In Progress
Revision history for this message
Martin Kopec (mkopec) wrote :

Moving back to Confirmed as nobody is working on it.

Changed in tempest:
status: In Progress → Confirmed
Revision history for this message
Martin Kopec (mkopec) wrote :

I think this is not valid anymore, it's been 3 years already, it seems the issue got resolved, there are no problems with port security anymore.

Revision history for this message
Martin Kopec (mkopec) wrote :

Marking as Invalid due to a long inactivity, the issue got probably resolved over the time. If not and you still experience the issue, please, feel free to reopen the bug report providing the current logs, tracebacks, info to reproduce etc ..

Changed in tempest:
importance: High → Undecided
status: Confirmed → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by "Ghanshyam Mann <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/392464
Reason: No activities on this since long time, feel free to restore it if needed.

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.