Fix KeyError if neutron security group is not TCP/UDP/ICMP and no ports
Previously, if a neutron security group rule was created that was not
TCP/UDP/ICMP and did not contain a port_range_min/max retrieving it from
nova-api would result in a KeyError in nova-api. This patch resolves
this issue.
Change-Id: I6284a7a8690aec9509b63f7cbd18812e09ef3fdd
Closes-bug: #1294346
(cherry picked from commit 3ad414597043979b8d73c17c05e666cff33a9b88)
Reviewed: https:/ /review. openstack. org/91228 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a3a955507d9 d4b3e2688847fe4 5f88a26be3e8cc
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit a3a955507d9d4b3 e2688847fe45f88 a26be3e8cc
Author: Aaron Rosen <email address hidden>
Date: Tue Mar 18 21:14:35 2014 -0700
Fix KeyError if neutron security group is not TCP/UDP/ICMP and no ports
Previously, if a neutron security group rule was created that was not
TCP/UDP/ICMP and did not contain a port_range_min/max retrieving it from
nova-api would result in a KeyError in nova-api. This patch resolves
this issue.
Change-Id: I6284a7a8690aec 9509b63f7cbd188 12e09ef3fdd b8d73c17c05e666 cff33a9b88)
Closes-bug: #1294346
(cherry picked from commit 3ad414597043979