Unable to add security rule to security group - horizon

Bug #1711297 reported by cooldharma06
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
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)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Critical
tags: added: pike-rc-potential
removed: devstack horizon
Changed in horizon:
milestone: none → pike-rc2
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Only "Custom ICMP rule" can be created..

Revision history for this message
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
status: Confirmed → In Progress
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.