Ask Your Question
0

Failed to execute 'cinder list' on devstack [closed]

asked 2015-08-03 21:36:48 -0600

I am using devstack in master branch.I want to use this command 'cinder list'.I find a error message.

stack@hw-virtual-machine:~$ cinder list ERROR: You must provide a user name through --os-username or env[OS_USERNAME].

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by chenying
close date 2015-08-04 09:26:44.443411

1 answer

Sort by » oldest newest most voted
1

answered 2015-08-04 01:37:27 -0600

Tobias Urdin gravatar image

You should have a file named something containing "RC" in the directory which should be created when you run DevStack, this file contains some variables that is set for authentication against Keystone, for example the OS_USERNAME environment variable is one of them.

You can either "source" this file and then run your commands or you can provide the python-cinderclient (the Cinder CLI client) with parameters for the credentials, for example the --os-username.

Example would be

cat adminrc
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=adminpasswordhere
export OS_AUTH_URL=http://127.0.0.1:35357/v2.0
export OS_VOLUME_API_VERSION=2
source adminrc
cinder list

The reason I set OS_VOLUME_API_VERSION to version 2 is simply because version 1 is or is being deprecated so it's disabled on our cloud (OpenStack Kilo).

Best regards

edit flag offensive delete link more

Comments

I will try your method,thanks.

chenying gravatar imagechenying ( 2015-08-04 04:50:04 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-03 21:36:48 -0600

Seen: 159 times

Last updated: Aug 04 '15