Bug 1309690 - neutron cli optional arguments does not override env varibales
neutron cli optional arguments does not override env varibales
Status: CLOSED WONTFIX
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:
Blocks:
  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:
Environment:
Last Closed: 2017-07-17 13:57:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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 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 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.