Comment 3 for bug 1762454

Revision history for this message
Pawel Suder (pasuder) wrote :

Thank you for your update.

Non-working for network:router_interface_distributed

REQ: curl -g -i -X PUT http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-neutronclient" -H "X-Auth-Token: {SHA1}342c0419cc48c8159a1f54b772f2871226728dc3" -d '{"firewall_group": {"ports": ["04222c40-dde1-4887-9fc2-fcf42a035fd4"]}}'
http://10.0.6.174:9696 "PUT /v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json HTTP/1.1" 409 150
RESP: [409] Connection: keep-alive Content-Length: 150 Content-Type: application/json Date: Fri, 27 Apr 2018 12:23:39 GMT X-Openstack-Request-Id: req-8a8a320b-659e-4364-9604-d41e0b04d6ea
RESP BODY: {"NeutronError": {"message": "Firewall Group Port 04222c40-dde1-4887-9fc2-fcf42a035fd4 is invalid", "type": "FirewallGroupPortInvalid", "detail": ""}}
PUT call to network for http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json used request id req-8a8a320b-659e-4364-9604-d41e0b04d6ea
Error message: {"NeutronError": {"message": "Firewall Group Port 04222c40-dde1-4887-9fc2-fcf42a035fd4 is invalid", "type": "FirewallGroupPortInvalid", "detail": ""}}
PUT call to neutron for http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json used request id req-8a8a320b-659e-4364-9604-d41e0b04d6ea
Failed to set firewall group 'oh_noes': Firewall Group Port 04222c40-dde1-4887-9fc2-fcf42a035fd4 is invalid
Neutron server returns request_ids: ['req-8a8a320b-659e-4364-9604-d41e0b04d6ea']
clean_up SetFirewallGroup: Failed to set firewall group 'oh_noes': Firewall Group Port 04222c40-dde1-4887-9fc2-fcf42a035fd4 is invalid
Neutron server returns request_ids: ['req-8a8a320b-659e-4364-9604-d41e0b04d6ea']
END return value: 1

Working for network:router_interface

REQ: curl -g -i -X PUT http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-neutronclient" -H "X-Auth-Token: {SHA1}6f70229308bbf77338f1d789acfaf5c887873874" -d '{"firewall_group": {"ports": ["769ef119-7f98-4bfc-8572-20501b12d727"]}}'
http://10.0.6.174:9696 "PUT /v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json HTTP/1.1" 200 388
RESP: [200] Connection: keep-alive Content-Length: 388 Content-Type: application/json Date: Fri, 27 Apr 2018 12:39:01 GMT X-Openstack-Request-Id: req-dc077abe-9c0b-4c10-8734-754f2c28c5e8
RESP BODY: {"firewall_group": {"status": "INACTIVE", "description": "", "ingress_firewall_policy_id": null, "id": "c2cff5a9-22dd-463d-a074-ea1551bcc116", "name": "oh_noes", "admin_state_up": true, "tenant_id": "2ca9201df90c4367a178d72426231509", "public": false, "project_id": "2ca9201df90c4367a178d72426231509", "ports": ["769ef119-7f98-4bfc-8572-20501b12d727"], "egress_firewall_policy_id": null}}
PUT call to network for http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json used request id req-dc077abe-9c0b-4c10-8734-754f2c28c5e8
PUT call to neutron for http://10.0.6.174:9696/v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json used request id req-dc077abe-9c0b-4c10-8734-754f2c28c5e8
clean_up SetFirewallGroup:
END return value: 0

I would like to ask you, to collect logs with DEBUG enabled for this particular moment:

2018-04-27 12:23:39.031 20410 INFO neutron.api.v2.resource [req-8a8a320b-659e-4364-9604-d41e0b04d6ea ceeebe28f43b415a8c4059c414a1574e 2ca9201df90c4367a178d72426231509 - - -] update failed (client error): There was a conflict when trying to complete your request.
2018-04-27 12:23:39.032 20410 INFO neutron.wsgi [req-8a8a320b-659e-4364-9604-d41e0b04d6ea ceeebe28f43b415a8c4059c414a1574e 2ca9201df90c4367a178d72426231509 - - -] 10.0.6.171 "PUT /v2.0/fwaas/firewall_groups/c2cff5a9-22dd-463d-a074-ea1551bcc116.json HTTP/1.1" status: 409 len: 355 time: 0.0730522

Thank you!