tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON tearDownClass FAILED

Bug #1325952 reported by Roman Podoliaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Unassigned

Bug Description

2014-06-03 10:45:31.772 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_create_update_delete_firewall_policy [0.138860s] ... ok
2014-06-03 10:45:31.862 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_create_update_delete_firewall_rule [0.089827s] ... ok
2014-06-03 10:45:31.879 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_list_firewall_policies [0.016316s] ... ok
2014-06-03 10:45:31.893 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_list_firewall_rules [0.013835s] ... ok
2014-06-03 10:45:31.914 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_show_firewall_policy [0.019647s] ... ok
2014-06-03 10:45:31.930 | {0} tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON.test_show_firewall_rule [0.016054s] ... ok
2014-06-03 10:45:31.956 | {0} tearDownClass (tempest.api.network.test_fwaas_extensions.FWaaSExtensionTestJSON) [0.000000s] ... FAILED
2014-06-03 10:45:31.956 |
2014-06-03 10:45:31.956 | Captured traceback:
2014-06-03 10:45:31.956 | ~~~~~~~~~~~~~~~~~~~
2014-06-03 10:45:31.956 | Traceback (most recent call last):
2014-06-03 10:45:31.956 | File "tempest/api/network/base.py", line 89, in tearDownClass
2014-06-03 10:45:31.956 | cls.client.delete_firewall_policy(fw_policy['id'])
2014-06-03 10:45:31.956 | File "tempest/services/network/network_client_base.py", line 118, in _delete
2014-06-03 10:45:31.956 | return self.delete(uri)
2014-06-03 10:45:31.956 | File "tempest/services/network/network_client_base.py", line 78, in delete
2014-06-03 10:45:31.956 | return self.rest_client.delete(uri, headers)
2014-06-03 10:45:31.957 | File "tempest/common/rest_client.py", line 215, in delete
2014-06-03 10:45:31.957 | return self.request('DELETE', url, extra_headers, headers, body)
2014-06-03 10:45:31.957 | File "tempest/common/rest_client.py", line 419, in request
2014-06-03 10:45:31.957 | resp, resp_body)
2014-06-03 10:45:31.957 | File "tempest/common/rest_client.py", line 473, in _error_checker
2014-06-03 10:45:31.957 | raise exceptions.Conflict(resp_body)
2014-06-03 10:45:31.957 | Conflict: An object with that identifier already exists
2014-06-03 10:45:31.957 | Details: {u'message': u'Firewall Policy e948ad84-9c97-4769-846d-a09ea6e034c8 is being used.', u'type': u'FirewallPolicyInUse', u'detail': u''}

Tags: fwaas
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :
Download full text (8.4 KiB)

Neutron firewall_l3_agent failed to create firewall through Attribute Error. firewall stuck in "PENDING_CREATE" state and in "PENDING_DELETE" while deleting the same.

Tests through error as firewall policy is still in use with failed firewall.

Console log-

2014-10-13 23:15:21.180 | 2014-10-13 22:43:28,278 25997 INFO [tempest.common.rest_client] Request (FWaaSExtensionTestJSON:test_create_show_delete_firewall): 201 POST http://127.0.0.1:9696/v2.0/fw/firewalls 0.061s
2014-10-13 23:15:21.180 | 2014-10-13 22:43:28,278 25997 DEBUG [tempest.common.rest_client] Request (FWaaSExtensionTestJSON:test_create_show_delete_firewall): 201 POST http://127.0.0.1:9696/v2.0/fw/firewalls 0.061s
2014-10-13 23:15:21.181 | Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
2014-10-13 23:15:21.181 | Body: {"firewall": {"firewall_policy_id": "1af273a9-b299-4e5c-81cf-580398ae4ec7", "name": "firewall-1257536380"}}
2014-10-13 23:15:21.181 | Response - Headers: {'content-type': 'application/json; charset=UTF-8', 'date': 'Mon, 13 Oct 2014 22:43:28 GMT', 'content-length': '273', 'status': '201', 'connection': 'close', 'x-openstack-request-id': 'req-5a6b5a71-ee4f-4c89-a90b-0e17a0b7f929'}
2014-10-13 23:15:21.181 | Body: {"firewall": {"status": "PENDING_CREATE", "name": "firewall-1257536380", "admin_state_up": true, "tenant_id": "b51b3b4153794b18933ac1c3b26f11bd", "firewall_policy_id": "1af273a9-b299-4e5c-81cf-580398ae4ec7", "id": "5b12dcb1-5805-4123-833b-6cdc1b123a62", "description": ""}}

After 5 min (network build timeout)

2014-10-13 23:15:21.689 | 2014-10-13 22:48:27,791 25997 DEBUG [tempest.common.rest_client] Request (FWaaSExtensionTestJSON:test_create_show_delete_firewall): 200 GET http://127.0.0.1:9696/v2.0/fw/firewalls/5b12dcb1-5805-4123-833b-6cdc1b123a62 0.370s
2014-10-13 23:15:21.689 | Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
2014-10-13 23:15:21.689 | Body: None
2014-10-13 23:15:21.689 | Response - Headers: {'content-type': 'application/json; charset=UTF-8', 'date': 'Mon, 13 Oct 2014 22:48:27 GMT', 'content-length': '273', 'status': '200', 'content-location': 'http://127.0.0.1:9696/v2.0/fw/firewalls/5b12dcb1-5805-4123-833b-6cdc1b123a62', 'connection': 'close', 'x-openstack-request-id': 'req-e95acaaa-81c3-4415-b4df-917c8427a160'}
2014-10-13 23:15:21.689 | Body: {"firewall": {"status": "PENDING_CREATE", "name": "firewall-1257536380", "admin_state_up": true, "tenant_id": "b51b3b4153794b18933ac1c3b26f11bd", "firewall_policy_id": "1af273a9-b299-4e5c-81cf-580398ae4ec7", "id": "5b12dcb1-5805-4123-833b-6cdc1b123a62", "description": ""}}

screen-q-vpn logs-

2014-10-13 22:43:29.445 21229 ERROR neutron.services.firewall.agents.l3reference.firewall_l3_agent [req-5a6b5a71-ee4f-4c89-a90b-0e17a0b7f929 None] FWaaS RPC failure in create_firewall for fw: 5b12dcb1-5805-4123-833b-6cdc1b123a62
2014-10-13 22:43:29.445 21229 TRACE neutron.services.firewall.agents.l3reference.firewall_l3_agent Traceback (most recent call last):
2014-10-13 22:43:2...

Read more...

Changed in tempest:
status: New → Invalid
tags: added: fwaas
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 172 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in neutron:
status: New → Incomplete
no longer affects: neutron
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.