Bug 1266851

Summary: openstackclient fails to create securitygroup rule
Product: Red Hat OpenStack Reporter: Jaison Raju <jraju>
Component: python-openstackclientAssignee: Jason E. Rist <jrist>
Status: CLOSED NEXTRELEASE QA Contact: Shai Revivo <srevivo>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: apevec, beth.white, lhh, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-31 14:58:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaison Raju 2015-09-28 08:22:58 UTC
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 .

Comment 3 Beth White 2017-08-31 14:58:37 UTC
This has been fixed from the next release. Due to the existence of a workaround for this we are closing for backport to 8.