security group rule delete fails

Bug #1447624 reported by Ramaraja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Medium
Ramaraja

Bug Description

openstack security group rule delete <group-name> --proto <protocol> --dst-port <port>

ERROR: openstack delete() takes exactly 2 arguments (6 given)

In this, It fails in 2 scenarios.

scenario 1: When --dst-port not provied
(openstack)security group rule delete <group-name> --proto <protocol>
ERROR: openstack 'NoneType' object is not iterable

scenario 2: (openstack) security group rule delete <group-name> --proto <protocol> --dst-port <port>
ERROR: openstack delete() takes exactly 2 arguments (6 given)

Typically, the delete rule operation required group rule id. But delete method gets argument of (group.id,protocol,from_port,to_port,src_ip)

https://github.com/openstack/python-openstackclient/blob/master/openstackclient/compute/v2/security_group.py#L363

Ramaraja (ramaraja-r)
Changed in python-openstackclient:
assignee: nobody → Ramaraja (ramaraja-r)
Revision history for this message
Dean Troyer (dtroyer) wrote :
Changed in python-openstackclient:
status: New → Triaged
importance: Undecided → Medium
Ramaraja (ramaraja-r)
Changed in python-openstackclient:
status: Triaged → In Progress
Revision history for this message
Ramaraja (ramaraja-r) wrote :

Seems like the issue has been fixed in latest release.

Revision history for this message
Ramaraja (ramaraja-r) wrote :

This bug still exist in the kilo release. It needs to be fixed?

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.