Ask Your Question
0

"Expecting authentication method" error when doing a `keystone role-list`

asked 2013-04-05 00:02:26 -0600

Anil Kumar gravatar image

updated 2013-04-21 21:05:17 -0600

smaffulli gravatar image

Here is a problem that when i run "sudo keystone role-list" command it shows

Expecting authentication method via either a service token, --token or env[SERVICETOKEN], or credentials, --osusername or env[OS_USERNAME].

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-17 10:42:47 -0600

hoshi gravatar image

You need OS_USERNAME in your novarc if you don't want passing it via args.

          --os-username <auth-user-name>
                                Defaults to env[OS_USERNAME]
edit flag offensive delete link more
0

answered 2015-12-17 12:20:13 -0600

Gourav Singla gravatar image

Either append username in the command or set the username as an environmental variable

To append in command: sudo keystone --os-username admin role-list

To set username as environmental variable export OS_USERNAME=admin

Note: here 'admin' is a username for example

edit flag offensive delete link more
0

answered 2013-05-02 12:12:25 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all

if anyone tell me the command novarc file open. i'm unable to open that

edit flag offensive delete link more

Comments

use vim or nano: vi novarc or nano novarc

henrik16 gravatar imagehenrik16 ( 2013-05-03 03:12:30 -0600 )edit
0

answered 2013-04-17 10:28:16 -0600

henrik16 gravatar image

Maybe you forgot to : source novarc

edit flag offensive delete link more
0

answered 2013-04-05 01:46:47 -0600

you are not authenticated, do you have a active token? Control you novarc file or execute it

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

Stats

Asked: 2013-04-05 00:02:26 -0600

Seen: 3,731 times

Last updated: Dec 17 '15