Unable to add security rule to security group - horizon

Bug #1711297 reported by cooldharma06 on 2017-08-17
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Critical
Akihiro Motoki

Bug Description

i installed devstack and running openstack. i am trying to add security rules to new security group and its not adding. The Add rule(Input) message box doesnt disappears from the dashboard.

In browser console i am getting the error as :

An invalid form control with name='icmp_type' is not focusable.
(index):1 An invalid form control with name='icmp_code' is not focusable.

tags: removed: das
summary: - Unable to security rule to security group - horizon
+ Unable to add security rule to security group - horizon
Akihiro Motoki (amotoki) on 2017-08-17
Changed in horizon:
status: New → Confirmed
importance: Undecided → Critical
tags: added: pike-rc-potential
removed: devstack horizon
Changed in horizon:
milestone: none → pike-rc2
Akihiro Motoki (amotoki) wrote :

Only "Custom ICMP rule" can be created..

Akihiro Motoki (amotoki) wrote :

required=True (default value) is used for icmp_type and icmp_code and it seems this prevents from creating a rule. Perhaps the form tries to show some error message to icmp_type and icmp_code, but they are not visible and it causes a console message "An invalid form control with name='icmp_type' is not focusable.".

I don't know what is the right solution on this, but in this case we are lucky as icmp_code and icmp_type are not required fields in neutron security group API. They are required in nova security group API but we dropped the support for nova-network security group support in Pike. We can avoid the bug by specifying required=False to icmp_type/code.

Fix proposed to branch: master
Review: https://review.openstack.org/494445

Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
status: Confirmed → In Progress
Akihiro Motoki (amotoki) wrote :

This is caused by the same reason for bug 1708601. bug 1708601 will solve the root cause.

https://review.openstack.org/494445 is also a valid fix as ICMP type/code are not required fields.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers