Ask Your Question

Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

asked 2013-12-23 23:12:21 -0500

Ron L. gravatar image

updated 2013-12-23 23:13:02 -0500

Hi, I keep getting this error:

Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

When I create keystone users.

# keystone tenant-create --name=service

# keystone user-role-add --user admin --tenant tenantA --role admin
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

I'm not sure what the error message is asking for, or where to find the --os-auth-url. Thanks a lot.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-12-24 02:34:37 -0500

kashyapc gravatar image

You're trying to create a tenant -- you must provide the URL of your Keystone authentication server for that command to complete successfully, that's what OS_AUTH_URL environment variable (or the CLI argument --os_auth_url ) is for. Assuming you have a single node installation, it would be along the lines of -- http://localhost:35357/v2.0

Reference --

Also, you can populate the Keystone authentication environment variables into an RC file:

$ cat keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=passwd
export OS_AUTH_URL=
export PS1='[\u@\h \W(keystone_admin)]$'

which needs to be sourced, so the environment variables take effect:

$ source keystonerc_admin
edit flag offensive delete link more



how can i see the full message

levitoh gravatar imagelevitoh ( 2014-01-21 10:31:51 -0500 )edit

answered 2014-06-13 07:35:24 -0500

use keystone without sudo

robbie@robbie-Controller:~$ keystone tenant-create --name=admin

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-12-23 23:12:21 -0500

Seen: 24,989 times

Last updated: Jun 13 '14