Bug 890809

Summary: quantum net-create name option is not working currectly when more than one option is used
Product: Red Hat OpenStack Reporter: Ofer Blaut <oblaut>
Component: python-neutronclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED UPSTREAM QA Contact: Ofer Blaut <oblaut>
Severity: low Docs Contact:
Priority: low    
Version: 2.0 (Folsom)CC: chrisw, jkt, oblaut
Target Milestone: ---Keywords: Improvement, Reopened, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-neutronclient-2.3.4-1.el6ost.noarch Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-05 04:38:57 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 Ofer Blaut 2012-12-30 10:45:39 UTC
Description of problem:

quantum net-create name option is not working currectly when more than one option

See attached example 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create network with only tenant ID and name - it works , 
if using --name  < name > it will fails
( quantum net-create --tenant-id < ID > <network name > )

2. create network with tenant ID , shared option & name - it will fail 

quantum net-create --tenant-id < ID > --shared True  <network name >

3. create network with tenant ID , shared option & -- name < name> - will pass

quantum net-create --tenant-id < ID > --shared True  --name <network name >
  
Actual results:

According to CLI help 

--name should not be used 

Expected results:


Additional info:

Comment 4 Jakub Ruzicka 2014-05-06 18:27:44 UTC
This WFM in python-neutronclient-2.3.4.

Comment 5 Ofer Blaut 2014-05-07 06:37:05 UTC
Hi Kuba 

still not work

[root@puma04 ~(keystone_admin)]# neutron net-create --tenant-id e91cdd9e867b49059cc79898413fd0ee --shared True --name ofer1
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 18c78edf-7508-4756-bd5d-3757f544eb2f |
| name                      | ofer1                                |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 3                                    |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | e91cdd9e867b49059cc79898413fd0ee     |
+---------------------------+--------------------------------------+
[root@puma04 ~(keystone_admin)]# neutron net-create --tenant-id e91cdd9e867b49059cc79898413fd0ee --shared True ofer2
Invalid values_specs ofer2
[root@puma04 ~(keystone_admin)]# 


since --name is not a must , ofer2 should work 


python-neutronclient-2.3.4-1.el6ost.noarch

Comment 6 Jakub Ruzicka 2014-05-12 12:58:15 UTC
Oh, I see, you're right.

So this is IMHO more of a cosmetic fix - there is a way to do what you need, it just could be smoother.

Please report upstream and link the external tracker:
https://bugs.launchpad.net/python-neutronclient/+filebug

Comment 7 Ofer Blaut 2014-06-05 04:38:57 UTC
opened upstream