Error when running neutron firewall-policy-create with firewall-rules option

Bug #1385908 reported by Itzik Brown
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
yalei wang

Bug Description

Version
=======
Juno on RHEL7
python-neutronclient-2.3.9-1.el7.centos.noarch
openstack-neutron-2014.2-1.el7.centos.noarch
python-neutron-2014.2-1.el7.centos.noarch

Description
===========
Running #neutron firewall-policy-create --firewall-rules="53a4ea45-e884-44e2-a348-bbbc07e71d9a" policy100 I get neutron firewall-policy-create: error: argument --firewall-rules: invalid split value: u'53a4ea45-e884-44e2-a348-bbbc07e71d9a'

Results in:
usage: neutron firewall-policy-create [-h] [-f {shell,table,value}]
                                      [-c COLUMN] [--max-width <integer>]
                                      [--prefix PREFIX]
                                      [--request-format {json,xml}]
                                      [--tenant-id TENANT_ID]
                                      [--description DESCRIPTION] [--shared]
                                      [--firewall-rules FIREWALL_RULES]
                                      [--audited]
                                      NAME
neutron firewall-policy-create: error: argument --firewall-rules: invalid split value: u'53a4ea45-e884-44e2-a348-bbbc07e71d9a'

Revision history for this message
yalei wang (yalei-wang) wrote :

try this line?

#neutron firewall-policy-create --firewall-rules "53a4ea45-e884-44e2-a348-bbbc07e71d9a" policy100

yalei wang (yalei-wang)
Changed in python-neutronclient:
assignee: nobody → yalei wang (yalei-wang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/131367

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

Reviewed: https://review.openstack.org/131367
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=8a7771844daf9015644e07acbac05664d5260b64
Submitter: Jenkins
Branch: master

commit 8a7771844daf9015644e07acbac05664d5260b64
Author: Yalei Wang <email address hidden>
Date: Thu Oct 30 08:55:42 2014 +0800

    fix the firewall rule arg split error

    the previous firewall rules parsing is for type 'string', but we add the
    capability to deal with type 'unicode' to match the real type from cmdline.

    Change-Id: Id673a0c5967131d9d88fe0c78f19613a6fc1c721
    Closes-Bug: 1385908

Changed in python-neutronclient:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
status: Fix Committed → Fix Released
milestone: none → 2.3.10
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.