Incorrect message displayed during creation of new secgroup rules if quota exceeded

Bug #1699724 reported by Puneet Arora
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Simon Alexander Kerr Collins

Bug Description

Using ocata horizon, I have set quota limit of securitygroup rules to say 2 for admin tenant and now if I try to add security group rules under sec group.
It shows "Error: Security group rule already exists".

Here expected error message should be "Error: Security group rules quota exceeded"

Steps:-
Login to horizon
1) Go to Projects--> Identity--> admin--> manage members--> quota and set secgroup rule to 2.
2) Now goto project--> network-->Security groups--> default-->manage rules--> add rules --> all icmp and select ok.
3) Error message appeared is not correct.

Please correct error message if securitygroup rules quota exhausts and user try to create securitygroup rule under security group.

Changed in horizon:
assignee: nobody → Kiran Totad (kiran-totad)
Changed in horizon:
assignee: Kiran Totad (kiran-totad) → nobody
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

I can reproduce this on Pike.

Changed in horizon:
status: New → Confirmed
tags: added: neut
tags: added: neutron
removed: neut
tags: added: error-reporting
Changed in horizon:
importance: Undecided → Low
summary: Incorrect message displayed during creation of new secgroup rules if
- quota exhausts
+ quota exceeded
Changed in horizon:
assignee: nobody → Simon Alexander Kerr Collins (bird-jesus)
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/534462

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/534462
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=3929a8b7cd893f0b4c0ff6c20d5d1fd9077b4dd2
Submitter: Zuul
Branch: master

commit 3929a8b7cd893f0b4c0ff6c20d5d1fd9077b4dd2
Author: Simon Collins <email address hidden>
Date: Wed Jan 17 12:11:15 2018 +1300

    Security group quota error handling

    When adding a new rule to a secruity group that would exceede the
    quota, the error message displays a quota error, rather than rule
    already exists error. It does this my first checking for an
    "OverQuotaClient" error, then if that except doesn't trigger it
    checks for any other conflict

    Change-Id: I8eaa0f00b25c8c3b75fef2bf46979f1f248c6896
    Closes-Bug: #1699724

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 13.0.0.0b3

This issue was fixed in the openstack/horizon 13.0.0.0b3 development milestone.

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/539438

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/539439

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

Reviewed: https://review.openstack.org/539439
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=5c7aa1422f5328a06528ba5db25732087513f8e4
Submitter: Zuul
Branch: stable/ocata

commit 5c7aa1422f5328a06528ba5db25732087513f8e4
Author: Simon Collins <email address hidden>
Date: Wed Jan 17 12:11:15 2018 +1300

    Security group quota error handling

    When adding a new rule to a secruity group that would exceede the
    quota, the error message displays a quota error, rather than rule
    already exists error. It does this my first checking for an
    "OverQuotaClient" error, then if that except doesn't trigger it
    checks for any other conflict

    Change-Id: I8eaa0f00b25c8c3b75fef2bf46979f1f248c6896
    Closes-Bug: #1699724
    (cherry picked from commit 3929a8b7cd893f0b4c0ff6c20d5d1fd9077b4dd2)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/pike)

Reviewed: https://review.openstack.org/539438
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=97475c085ad18ee8c7719fecd22c1380b01284b8
Submitter: Zuul
Branch: stable/pike

commit 97475c085ad18ee8c7719fecd22c1380b01284b8
Author: Simon Collins <email address hidden>
Date: Wed Jan 17 12:11:15 2018 +1300

    Security group quota error handling

    When adding a new rule to a secruity group that would exceede the
    quota, the error message displays a quota error, rather than rule
    already exists error. It does this my first checking for an
    "OverQuotaClient" error, then if that except doesn't trigger it
    checks for any other conflict

    Change-Id: I8eaa0f00b25c8c3b75fef2bf46979f1f248c6896
    Closes-Bug: #1699724
    (cherry picked from commit 3929a8b7cd893f0b4c0ff6c20d5d1fd9077b4dd2)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.3

This issue was fixed in the openstack/horizon 12.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon ocata-eol

This issue was fixed in the openstack/horizon ocata-eol release.

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.