Stack delete fails for demo template with GBP resources

Bug #1400537 reported by Sumit Naiksatam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy Automation
Invalid
Critical
Susaant Kondapaneni

Bug Description

REQ: curl -i http://172.16.105.139:9696//v2.0/grouppolicy/policy_targets/130d15bc-e237-491c-940c-67d104680e99.json -X DELETE -H "X-Auth-Token: 64ebb880fe2647f48d28b21c050e8642" -H "User-Agent: python-neutronclient"
 http_log_req /opt/stack/python-neutronclient/neutronclient/common/utils.py:129
2014-12-08 15:51:51.940 54706 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 172.16.105.139
2014-12-08 15:51:51.940 54706 DEBUG urllib3.connectionpool [-] Setting read timeout to None _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375
2014-12-08 15:51:52.104 54706 DEBUG urllib3.connectionpool [-] "DELETE //v2.0/grouppolicy/policy_targets/130d15bc-e237-491c-940c-67d104680e99.json HTTP/1.1" 500 120 _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415
2014-12-08 15:51:52.104 54706 DEBUG neutronclient.client [-] RESP:500 CaseInsensitiveDict({'date': 'Mon, 08 Dec 2014 23:51:52 GMT', 'content-length': '120', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-4529411b-62d7-49a0-90f4-6057a31e31c0'}) {"NeutronError": {"message": "delete_policy_target_postcommit failed.", "type": "GroupPolicyDriverError", "detail": ""}}
 http_log_resp /opt/stack/python-neutronclient/neutronclient/common/utils.py:138
2014-12-08 15:51:52.105 54706 DEBUG gbpclient.v2_0.client [-] Error message: {"NeutronError": {"message": "delete_policy_target_postcommit failed.", "type": "GroupPolicyDriverError", "detail": ""}} _handle_fault_response /opt/stack/python-gbpclient/gbpclient/v2_0/client.py:579
2014-12-08 15:51:52.107 54706 INFO heat.engine.resource [-] DELETE: PolicyTarget "user_server_pt" [130d15bc-e237-491c-940c-67d104680e99] Stack "gbp-demo" [35c7361d-1c92-4a6c-bd52-49efde2979c4]
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource Traceback (most recent call last):
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 435, in _action_recorder
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource yield
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 839, in delete
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource yield self.action_handler_task(action, *action_args)
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/scheduler.py", line 286, in wrapper
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource step = next(subtask)
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 476, in action_handler_task
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource handler_data = handler(*args)
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/gbpautomation/gbpautomation/heat/engine/resources/neutron/grouppolicy.py", line 100, in handle_delete
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource self.client_plugin().ignore_not_found(ex)
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/clients/client_plugin.py", line 90, in ignore_not_found
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource raise ex
2014-12-08 15:51:52.107 54706 TRACE heat.engine.resource InternalServerError: delete_policy_target_postcommit failed.
REQ: curl -i http://172.16.105.139:9696//v2.0/grouppolicy/policy_targets/c383b750-a809-433e-93e2-2de3102e7cf2.json -X GET -H "X-Auth-Token: 64ebb880fe2647f48d28b21c050e8642" -H "User-Agent: python-neutronclient"
 http_log_req /opt/stack/python-neutronclient/neutronclient/common/utils.py:129
2014-12-08 15:51:52.190 54706 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 172.16.105.139
2014-12-08 15:51:52.200 54706 DEBUG urllib3.connectionpool [-] Setting read timeout to None _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375
2014-12-08 15:51:52.215 54706 DEBUG urllib3.connectionpool [-] "GET //v2.0/grouppolicy/policy_targets/c383b750-a809-433e-93e2-2de3102e7cf2.json HTTP/1.1" 200 241 _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415
2014-12-08 15:51:52.217 54706 DEBUG neutronclient.client [-] RESP:200 CaseInsensitiveDict({'date': 'Mon, 08 Dec 2014 23:51:52 GMT', 'content-length': '241', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-0d9708e9-2bed-40d4-a885-821b099f2fed'}) {"policy_target": {"description": "", "tenant_id": "1ffefa736f524791becace7b8c124509", "policy_target_group_id": "6684ab16-b5be-4e5f-b48d-17d23de3d0e5", "port_id": null, "id": "c383b750-a809-433e-93e2-2de3102e7cf2", "name": "app_server_pt"}}
 http_log_resp /opt/stack/python-neutronclient/neutronclient/common/utils.py:138
2014-12-08 15:51:52.236 54706 DEBUG heat.engine.scheduler [-] Task destroy from None cancelled cancel /opt/stack/heat/heat/engine/scheduler.py:236
2014-12-08 15:51:52.237 54706 DEBUG heat.engine.scheduler [-] Task destroy from None cancelled cancel /opt/stack/heat/heat/engine/scheduler.py:236
2014-12-08 15:51:52.237 54706 DEBUG heat.engine.scheduler [-] Task destroy from None cancelled cancel /opt/stack/heat/heat/engine/scheduler.py:236
2014-12-08 15:51:52.253 54706 INFO heat.engine.stack [-] Stack DELETE FAILED (gbp-demo): Resource DELETE failed: InternalServerError: delete_policy_target_postcommit failed.

Revision history for this message
Susaant Kondapaneni (susaant) wrote :

Was an issue with neutron delete order dependency. It got fixed after the latest neutron fixes.

Changed in group-based-policy-automation:
status: Confirmed → Invalid
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.