Failed to create a firewall rule with "ANY" protocol on Horizon UI
Bug #1229543 reported by
Kaiwei Fan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Akihiro Motoki |
Bug Description
The Horizon UI failed to create a firewall with Protocol "ANY". The error is:
Error: Unable to add Rule "all".Firewall Rule protocol None is not supported. Only protocol values [None, 'tcp', 'udp', 'icmp'] and their integer representation (0 to 255) are supported.
tags: | added: fwaas |
no longer affects: | neutron |
tags: | added: neutron |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → Kuang-Ching Wang (kc-wang) |
assignee: | Kuang-Ching Wang (kc-wang) → nobody |
Changed in horizon: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-rc1 → 2013.2 |
To post a comment you must log in.
This looks a Horizon bug. A string "None" is sent as a protocol value instead of null.
My apache2 log says:
[Tue Sep 24 06:27:48 2013] [error] REQ: curl -i http:// 10.56.51. 210:9696/ /v2.0/fw/ firewall_ rules.json -X POST -H "X-Auth-Token: 0db10587cf2f41f f879e3ba51df986 19" -H "Content-Type: application neutronclient" -d '{"firewall_rule": {"protocol": "None", "name": "from-mysubnet", "enabled": true, "source_ ip_address" : "133.56.10 ip_address" : null, "source_port": null, "shared": false, "destination_port": null, "action": "allow", "description": ""}}' ient.client: RESP:{' date': 'Tue, 24 Sep 2013 06:27:48 GMT', 'status': '400', 'content-length': '174', 'content-type': 'application/json; chars
/json" -H "Accept: application/json" -H "User-Agent: python-
.0/24", "destination_
[Tue Sep 24 06:27:48 2013] [error]
[Tue Sep 24 06:27:48 2013] [error] DEBUG:neutroncl
et=UTF-8'} {"NeutronError": "Firewall Rule protocol None is not supported. Only protocol values [None, 'tcp', 'udp', 'icmp'] and their integer representation (0 to 255) are supported."}
[Tue Sep 24 06:27:48 2013] [error]