Ask Your Question

cinder list: ERROR Unauthorized (HTTP 401)

asked 2014-09-17 16:55:56 -0500

Robert gravatar image

I am getting this error when I want to make command cinder list. I have made proper configuration in cinder.conf I have export, I have deleted user, service, endpoint and create new one for bouth cinder and cinderv2. I have been followng this install guide:

First of all why do I need double service cinder (cinderv1, cinderv2)?

I have tried also with export but I am not shore if thsi is working, I don't know which OS_USERNAME, OS_PASSWORD, OS_TENANT_ID, OS_AUTH_URL shuld I set?

So I have make it this way:

export OS_USERNAME=glance  or export OS_USERNAME=admin
export OS_PASSWORD=glancepass or export OS_USERNAME=adminpaXXXXXXXXX
export OS_TENANT_ID=??? ID of tenant services or ID of admin
export  OS_AUTH_URL = http://controler:35357/v2.0  or should I use endpoint of cinder ( 
                                          -- publicurl=http://controller:8776/v2/%\(tenant_id\)s 
                                          --internalurl=http://controller:8776/v2/%\(tenant_id\)s                                           --adminurl=http://controller:8776/v2/%\(tenant_id\)s

Beacuse if you read manula it says that yoi need to provide sjuts file:

And I am trying some combinations and it won't work.

edit retag flag offensive close merge delete


I have doing something like this guy:

Robert gravatar imageRobert ( 2014-09-17 17:00:15 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-09-19 03:04:37 -0500

unmesh-gurjar gravatar image

Please refer the docs [1] and set up your environment to use CLIs successfully.

[1] -

edit flag offensive delete link more

answered 2014-09-19 03:27:57 -0500

dbaxps gravatar image
[root@icehouse1 ~]# cat keystonerc_boris
export OS_USERNAME=boris
export OS_TENANT_NAME=ostenant
export OS_PASSWORD=fedora
export OS_AUTH_URL=
export PS1='[\u@\h \W(keystone_boris)]\$ '
[root@icehouse1 ~]# .  keystonerc_boris
[root@icehouse1 ~(keystone_boris)]# cinder list

|                  ID                  | Status |     Display Name    | Size | Volume Type | Bootable |             Attached to              |
| b077e931-01b1-4e57-b27b-cbcb4bc83ceb | in-use | UbuntuTwoNicVLG0916 |  5   |  glusterfs  |   true   | 4acc062d-a0b0-4b7a-a2e3-543331f23a7f |
| db9644ea-344f-4cf2-885b-f7f1e2767dab | in-use |  CentOS07TwoNicsVLG |  10  |  glusterfs  |   true   | 2c4c7439-e01c-4821-b7f2-6b9f62af22fe |
| ebc104c5-3025-4ff6-b883-e30bd0904006 | in-use |    VF20TWNVG0831    |  7   |  glusterfs  |   true   | def2480d-a904-4650-8615-200f76837649 |
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-17 16:55:56 -0500

Seen: 1,924 times

Last updated: Sep 19 '14