Ask Your Question

failed to configure keystone [closed]

asked 2014-09-15 04:17:24 -0500

anonymous user


updated 2014-09-15 11:43:20 -0500

lafada gravatar image

Hi all, I am trying to install openstack followed by link below:

But I was stuck on the following steps: Configure the Keystone database, similar to how we do it for nova

$> sudo openstack-db --service keystone --init

Set up a keystonerc file with a generated admin token and various passwords:

$> cat > ./.keystonerc << _EOF
export ADMIN_TOKEN=$(openssl rand -hex 10)
export OS_USERNAME=admin
export OS_PASSWORD=verybadpass
export OS_TENANT_NAME=admin
export OS_AUTH_URL=
$>  ./.keystonerc

Here I modified keystonerc to be executable and run it, but when I ran "keystone user-list", it gave an error.

would somebody advise how can I fix this? Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Wang Zheng
close date 2014-09-16 02:14:49.560243

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-15 11:54:04 -0500

larsks gravatar image

Running the keystonerc script won't do you any good. You need to source it into your current environment, like this:

. ./.keystonerc

That's using the . command to execute a shell script in your current shell. If you make the script executable and run it, it will run in a seperate shell, which will not have any impact on subsequent keystone commands.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-15 04:17:24 -0500

Seen: 166 times

Last updated: Sep 15 '14