Bug 1309690 - neutron cli optional arguments does not override env varibales
Summary: neutron cli optional arguments does not override env varibales
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 8.0 (Liberty)
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Assaf Muller
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-18 13:49 UTC by Eyal Dannon
Modified: 2017-07-17 17:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-17 17:57:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.