Queens, horizon 13.0.1
If try to create rule with other ip protocol then exception rise.
Cause of problem in openstack_dashboard/api/neutron.py
https://github.com/openstack/horizon/blob/841bce062327d70fb834b99bc2f238323e400a51/openstack_dashboard/api/neutron.py#L418-L441
If we define ip_protocol it mean that we didn't define to_port and from_port.
It means that comparison default values of to_port/from_port(None) with 0 will rise exception.
It can be fixed with something like this:
if not cidr:
cidr = None
+ if from_port != None:
if from_port < 0:
from_port = None
+ if to_port != None:
if to_port < 0:
to_port = None
Do you use python3?
In python2 a comparison "None < 0" returns True, but python3 raises TypeError for this comparison.
tipica@s26:~ [OS:admin/ admin@s26] [00:02: 28]$ python2.7 admin@s26] [00:02: 39]$ python3.5
Python 2.7.12 (default, Nov 12 2018, 14:36:49)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> None < 0
True
>>>
tipica@s26:~ [OS:admin/
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> None < 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() < int()
>>>