list security group by filter name is not working

Bug #1337711 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Sachin Bansal

Bug Description

Build 1.10 2229

With filter name, security-group-list command is failing

root@nodeg30:~# source /etc/contrail/openstackrc
root@nodeg30:~# neutron security-group-list
+--------------------------------------+---------+-------------+
| id | name | description |
+--------------------------------------+---------+-------------+
| a48fbdec-de0a-4c71-8e71-3720a58775a6 | default | |
+--------------------------------------+---------+-------------+
root@nodeg30:~#

root@nodeg30:~# neutron security-group-list --id=a48fbdec-de0a-4c71-8e71-3720a58775a6
+--------------------------------------+---------+-------------+
| id | name | description |
+--------------------------------------+---------+-------------+
| a48fbdec-de0a-4c71-8e71-3720a58775a6 | default | |
+--------------------------------------+---------+-------------+
root@nodeg30:~#

root@nodeg30:~# neutron security-group-list --name=default

root@nodeg30:~#

Tags: config
information type: Proprietary → Public
Revision history for this message
Sachin Bansal (sbansal) wrote :

It is working for me on the same build:

root@a6s21:~# neutron security-group-list --name=default
+--------------------------------------+---------+-------------+
| id | name | description |
+--------------------------------------+---------+-------------+
| 487ddd42-afd5-4d7b-a9c7-82de3a2983db | default | |
+--------------------------------------+---------+-------------+

Let me know how you to recreate the problem

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Sachin,
   If the SG is part of another project, as a admin , SG list and SG show by id works, but SG show by name doesnt work

root@nodec22:/usr/lib/python2.7/dist-packages/neutronclient# neutron security-group-list
+--------------------------------------+--------------+--------------+
| id | name | description |
+--------------------------------------+--------------+--------------+
| f7faed4b-7faa-4589-bb48-e10e35870d30 | admin-sg1 | admin-sg1 |
| e8ba27a0-0607-427d-9423-6b3e80cc4711 | admin-sg2 | admin-sg2 |
| a5312bb0-f4c8-4f00-bb6d-418b99d00339 | default | |
| 60f7a7be-f9c7-4732-b23b-0506892b2c14 | default | |
| 78bf2626-de2c-4572-8854-76a64e311172 | default | |
| 7c46433b-35fa-4578-8094-b49610e8a651 | project1-sg1 | project1-sg1 |
| bee2ef80-6dad-4aca-a35a-09d807577851 | project1-sg2 | project1-sg2 |
+--------------------------------------+--------------+--------------+
root@nodec22:/usr/lib/python2.7/dist-packages/neutronclient# neutron security-group-list --name=project1-sg1

root@nodec22:/usr/lib/python2.7/dist-packages/neutronclient# neutron security-group-list --name="project1-sg1"

root@nodec22:/usr/lib/python2.7/dist-packages/neutronclient#

Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → Fix Committed
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: Fix Committed → In Progress
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: In Progress → Fix Committed
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.