Bug 1309690

Summary: neutron cli optional arguments does not override env varibales
Product: Red Hat OpenStack Reporter: Eyal Dannon <edannon>
Component: openstack-neutronAssignee: Assaf Muller <amuller>
Status: CLOSED WONTFIX QA Contact: Toni Freger <tfreger>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: amuller, chrisw, nyechiel, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-17 17:57:29 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 Eyal Dannon 2016-02-18 13:49:26 UTC
Description of problem:

neutron --os-project-name TenantA --os-username UserA --os-password secrete net-list

return HTTP 401 while environment variables as follow:

export OS_NO_CACHE=True
export COMPUTE_API_VERSION=1.1
export OS_USERNAME=admin
export no_proxy=,192.0.2.6
export OS_TENANT_NAME=admin
export OS_CLOUDNAME=overcloud
export OS_AUTH_URL=http://192.0.2.6:5000/v2.0
export NOVA_VERSION=1.1
export OS_PASSWORD=NjA9uQFzWM4QJbuePtwU2HrEx





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

How reproducible:

Use the above cloudrc variables, and run the following command:
neutron --os-project-name TenantA --os-username UserA --os-password secrete net-list





Steps to Reproduce:
1. source admincloudrc
2. neutron --os-project-name TenantA --os-username UserA --os-password secrete net-list
3.

Actual results:
he request you have made requires authentication. (HTTP 401) (Request-ID: req-db7cf3b5-5fb1-4fda-a7fb-6b925ade3498)


Expected results:

neutron --os-project-name TenantA --os-username UserA --os-password secrete net-list

should be successful

Additional info:

Only when changing ENV variables: 
export OS_TENANT_NAME=TenantA
export OS_USERNAME=UserA

It works


see the following cliend --debug
http://pastebin.test.redhat.com/349962

Comment 2 Assaf Muller 2017-07-17 17:57:29 UTC
We're prioritizing development on the openstack client in OSP 10+ at this point.