Bug 1266851 - openstackclient fails to create securitygroup rule
openstackclient fails to create securitygroup rule
Status: NEW
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient (Show other bugs)
7.0 (Kilo)
All Linux
unspecified Severity low
: ---
: 8.0 (Liberty)
Assigned To: Jason E. Rist
Shai Revivo
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-28 04:22 EDT by Jaison Raju
Modified: 2017-02-28 20:12 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1443963 None None None Never

  None (edit)
Description Jaison Raju 2015-09-28 04:22:58 EDT
Description of problem:
openstackclient fails to create securitygroup rule :
$ openstack security group rule create --proto icmp default
ERROR: openstack 'NoneType' object is not iterable

Version-Release number of selected component (if applicable):
python-openstackclient-1.0.3-2.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
Rule fails to create .

Expected results:
Rule is created .

Additional info:
Workaround is to add '--dst-port 0'
$ openstack security group rule create --proto icmp --dst-port 0 default
+-----------------+--------------------------------------+
| Field           | Value                                |
+-----------------+--------------------------------------+
| group           | {}                                   |
| id              | eeb09b86-9b12-4902-b577-3269d65725ed |
| ip_protocol     | icmp                                 |
| ip_range        | 0.0.0.0/0                            |
| parent_group_id | 641143c6-f39e-4745-aefc-b84739b08007 |
| port_range      |                                      |
+-----------------+--------------------------------------+

Fixed in upstream 
https://bugs.launchpad.net/python-openstackclient/+bug/1443963

Confirmed that the patch fixes the issue .

Note You need to log in before you can comment on or make changes to this bug.