adding a security rule for ICMP requires a port

Bug #933636 reported by Christian Berendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Tihomir Trifonov

Bug Description

trying to add a security rule for ICMP gives me an error that the fields "From port" and "To port" are required.

Revision history for this message
Christian Berendt (berendt) wrote :

Only -1:-1 as ports for ICMP seems to create a usable security rule for ICMP. That's a little bit confusing.

Devin Carlen (devcamcar)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Wishlist
milestone: none → essex-4
Revision history for this message
Tihomir Trifonov (ttrifonov) wrote :

In addition, as seen in nova

https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/security_groups.py:

            # Verify ICMP type and code
            if (ip_protocol.upper() == "ICMP" and
                (from_port < -1 or to_port > 255)):
                raise exception.InvalidPortRange(from_port=from_port,
                      to_port=to_port, msg="For ICMP, the"
                                           " type:code must be valid")

For ICMP from_port/to_port have different meaning of "type:code". This should be properly exposed in the 'create rule' form with validation and/or help text.

Changed in horizon:
assignee: nobody → Tihomir Trifonov (ttrifonov)
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/4346

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/4346
Committed: http://github.com/openstack/horizon/commit/404bda32b95c0f4154378e8f7281ab64c3a5bcfa
Submitter: Jenkins
Branch: master

commit 404bda32b95c0f4154378e8f7281ab64c3a5bcfa
Author: Tihomir Trifonov <email address hidden>
Date: Tue Feb 21 11:15:54 2012 +0200

    Help texts and dynamic label change for entering
    security group rules. ICMP rules have different
    meanings for the from_port and to_port fields.

    Fixes bug 933636

    Patch Set 3: fixed type cast in unit tests

    Change-Id: I745846a0fb054eb03efae102b40428889baed48f

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-4 → 2012.1
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.