Confusing message for deleting default security group

Bug #1403743 reported by Abhishek Talwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Abhishek Talwar

Bug Description

Trying to delete default security group from a non-admin user gives an error "Removing default security group not allowed. (HTTP 400) (Request-ID: req-208b1911-99f6-411f-8429-e05051e71cba) ". But this messgae is not clear as the user does not get to know why is he not allowed to remove the defaulty security group.

We should modify the error message to something that tells the user that it is only an admin operation. This way the user will not be confused as why is he not allowed.

~~nova secgroup-delete 8465d644-cc78-47c6-a699-e14a11ad9f21
~~ERROR (BadRequest): "Removing default security group not allowed. (HTTP 400) (Request-ID: req-8465d644-cc78-47c6-a699-e14a11ad9f21)

Expected Message : " Only admin allowed to remove default security group. (HTTP 400) (Request-ID: req-XYZ) "

Tags: api sg-fw
affects: nova → neutron
Changed in neutron:
assignee: nobody → Abhishek Talwar (abhishek-talwar)
description: updated
description: updated
Changed in neutron:
importance: Undecided → Low
status: New → Confirmed
tags: added: api sg-fw
Revision history for this message
Abhishek Talwar (abhishek-talwar) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/#/c/143018/

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

Reviewed: https://review.openstack.org/143018
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=907693ea9b13819f733462d88fcbc096a5926a4d
Submitter: Jenkins
Branch: master

commit 907693ea9b13819f733462d88fcbc096a5926a4d
Author: Abhishek Talwar <email address hidden>
Date: Wed Dec 24 10:04:32 2014 +0530

    Confusing message deleting default security group

    Trying to delete default security group from a non-admin
    user gives an error "Removing default security group not
    allowed. (HTTP 400).
    But this message is not clear as the user does not get to
    know why is he not allowed to remove the default security
    group.

    So updated the error message to give a more optimal message
    to the user.

    Change-Id: I25744b854371208d68a5cbdcf83079db7c54f96f
    Closes-Bug: #1403743

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
assignee: Abhishek Talwar (abhishek-talwar) → tcs_openstack_group (tcs-openstack-group)
assignee: tcs_openstack_group (tcs-openstack-group) → Abhishek Talwar (abhishek-talwar)
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-2 → 2015.1.0
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.