When adding ICMP rule, the type/code is being validated as from/to ports

Bug #997669 reported by Tihomir Trifonov
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Tihomir Trifonov
Essex
Fix Released
High
Unassigned
horizon (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

Under Security groups, when adding an ICMP rule, the type/code values are being validated as from/to ports:

        if to_port < from_port:
            msg = _('The "to" port number must be greater than or equal to '
                    'the "from" port number.')
            raise ValidationError(msg)

This logic is not applicable for ICMP and should be skipped.

Also the forms renders as a TCP Rule after the error, and switches the field labels.

Devin Carlen (devcamcar)
Changed in horizon:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Nebula (nebula)
milestone: none → folsom-1
Devin Carlen (devcamcar)
Changed in horizon:
milestone: folsom-1 → folsom-2
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/8446

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

Reviewed: https://review.openstack.org/8446
Committed: http://github.com/openstack/horizon/commit/7b565fc9839833b4b99b1fc3b02269b79071af3e
Submitter: Jenkins
Branch: master

commit 7b565fc9839833b4b99b1fc3b02269b79071af3e
Author: Tihomir Trifonov <email address hidden>
Date: Tue Jun 12 17:50:18 2012 +0300

    Fixed validation check for ICMP rules

    Fixed the code that checks the ICMP type/code
    as from/to ports. Also fixed the CSS for the
    security rules form, and the script to change
    the form labels in case of form reload due to
    an error.

    Fixes bug 997669

    Change-Id: I3b9c0ba3f46b91a311f887560dae5e9399961b84

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
Tomoe Sugihara (tomoe) wrote :

Would it be backported to stable/essex?

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
tags: added: essex-backport
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/10078

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/essex)

Reviewed: https://review.openstack.org/10078
Committed: http://github.com/openstack/horizon/commit/9b22d68f3d49f58a36391c38d502e6cadd051bd6
Submitter: Jenkins
Branch: stable/essex

commit 9b22d68f3d49f58a36391c38d502e6cadd051bd6
Author: Tihomir Trifonov <email address hidden>
Date: Tue Jun 12 17:50:18 2012 +0300

    Fixed validation check for ICMP rules

    Fixed the code that checks the ICMP type/code
    as from/to ports. Also fixed the CSS for the
    security rules form, and the script to change
    the form labels in case of form reload due to
    an error.

    Fixes bug 997669

    Change-Id: I3b9c0ba3f46b91a311f887560dae5e9399961b84
    (cherry picked from commit 7b565fc9839833b4b99b1fc3b02269b79071af3e)

Chuck Short (zulcss)
Changed in horizon (Ubuntu Quantal):
status: New → Fix Released
Dave Walker (davewalker)
Changed in horizon (Ubuntu Precise):
status: New → Confirmed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horizon - 2012.1.3+stable~20120815-691dd2-0ubuntu1

---------------
horizon (2012.1.3+stable~20120815-691dd2-0ubuntu1) precise-proposed; urgency=low

  [ Chuck Short ]
  * New upstream release (LP: #1041120):
    - 9b22d6 - Fixed validation check for ICMP rules. (LP: #997669)
  * Dropped:
    - debian/patches/CVE-2012-2094.patch: No longer needed.
    - debian/patches/CVE-2012-2144.patch: No longer needed.

   [ Adam Gandelman ]
   * debian/patches/juju_panel-handle_catalog_exception.patch: Gracefully handle
    missing endpoints in Keystone catalog during Juju environmnets.yaml
    generation. (LP: #1033920)
 -- Adam Gandelman <email address hidden> Tue, 24 Aug 2012 03:27:33 -0500

Changed in horizon (Ubuntu Precise):
status: Confirmed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-2 → 2012.2
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Tihomir, or anyone else affected,

Accepted horizon into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/horizon/2012.1.3+stable-20130423-5ce39422-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Yolanda Robla (yolanda.robla) wrote : Verification report.

Please find the attached test log from the Ubuntu Server Team's CI infrastructure. As part of the verification process for this bug, Horizon has been deployed and configured across multiple nodes using precise-proposed as an installation source. After successful bring-up and configuration of the cluster, a number of exercises and smoke tests have be invoked to ensure the updated package did not introduce any regressions. A number of test iterations were carried out to catch any possible transient errors.

Please Note the list of installed packages at the top and bottom of the report.

For records of upstream test coverage of this update, please see the Jenkins links in the comments of the relevant upstream code-review(s):

Trunk review: https://review.openstack.org/8446
Stable review: https://review.openstack.org/10078

As per the provisional Micro Release Exception granted to this package by the Technical Board, we hope this contributes toward verification of this update.

Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

Test coverage log.

tags: added: verification-done
removed: verification-needed
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.