Environment OS_AUTH_TYPE doesn't work

Bug #1696635 reported by TommyLike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
John Griffith

Bug Description

Currently cinderclient will not recognize the environment variable 'OS_AUTH_TYPE ' even if it's configured.
configuration file
```
export OS_AUTH_TYPE=noauth
export CINDER_ENDPOINT=http://10.229.50.225:8776/v3
```
cinder list
```
ERROR: You must provide an authentication URL through --os-auth-url or env[OS_AUTH_URL].
```

TommyLike (hu-husheng)
Changed in cinder:
assignee: nobody → TommyLike (hu-husheng)
status: New → Confirmed
Revision history for this message
John Griffith (john-griffith) wrote :

OS_AUTH_TYPE was removed in 2.2.0 and replaced with OS_AUTH_SYSTEM, luckily this was planned and OS_AUTH_SYSTEM is also valid in 2.1.0; so we should be pretty safe here. Just make sure to set OS_AUTH_SYSTEM and things should work.

We'll need to update the example rc file in block-box to reflect this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/477647

Changed in cinder:
assignee: TommyLike (hu-husheng) → John Griffith (john-griffith)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/477647
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=392f4bb092589a32668f675855677dfaf4103676
Submitter: Jenkins
Branch: master

commit 392f4bb092589a32668f675855677dfaf4103676
Author: John Griffith <email address hidden>
Date: Mon Jun 26 13:28:08 2017 -0600

    Replace OS_AUTH_TYPE with OS_AUTH_SYSTEM in rc

    We've removed OS_AUTH_TYPE support in favor of OS_AUTH_SYSTEM
    as of 2.2.0. This change just updates the example rc file to
    reflect that. While we're at it we'll also go ahead and update
    the example entry for the endpoint IP to point to the localhost.

    Of course this will need to be changed if you're running the
    client on a different node than the container.

    Closes-Bug: #1696635

    Change-Id: Ia865aab9ec6dd1fac5a74a22a56bc6accc8b60b8

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 11.0.0.0b3

This issue was fixed in the openstack/cinder 11.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.