Bug 1309690 - neutron cli optional arguments does not override env varibales
neutron cli optional arguments does not override env varibales
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron (Show other bugs)
8.0 (Liberty)
x86_64 Linux
unspecified Severity low
: ---
: 8.0 (Liberty)
Assigned To: Assaf Muller
Toni Freger
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2016-02-18 08:49 EST by Eyal Dannon
Modified: 2017-07-17 13:57 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-07-17 13:57:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eyal Dannon 2016-02-18 08:49:26 EST
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 OS_USERNAME=admin
export no_proxy=,
export OS_TENANT_NAME=admin
export OS_CLOUDNAME=overcloud
export OS_AUTH_URL=
export NOVA_VERSION=1.1
export OS_PASSWORD=NjA9uQFzWM4QJbuePtwU2HrEx

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

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

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
Comment 2 Assaf Muller 2017-07-17 13:57:29 EDT
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.