How to manage users/passwords in devstack?
Asked Answered
J

1

3

I've installed devstack to a clean Ubuntu machine. I'm able to access the OpenStack Dashboard at http://localhost/auth/login/. However, I have no idea how to manage users or what my initial credentials are.

Where is this information is kept?

Jumper answered 15/11, 2013 at 16:2 Comment(0)
M
5

The information is kept in the Keystone MySQL database. Do not edit the DB directly!

You'll want to manage users via the Keystone CLI. To do this you need to source your DevStack admin creds properly.

cd devstack
source openrc admin admin
echo $OS_USERNAME
echo $OS_TENANT_NAME
echo $OS_PASSWORD

I put the echo commands there to show you how to discover your creds.

To use the Keystone CLI checkout the docs Creating Tenants, Users, Roles, Tokens and Endpoints and Manage projects, users, and roles.

If you want to work with the CLIs as a non-admin user just do

cd devstack
source openrc
echo $OS_USERNAME
echo $OS_TENANT_NAME
echo $OS_PASSWORD
Maurene answered 15/11, 2013 at 17:18 Comment(2)
The credentials don't work. Web panel keeps saying "An error occurred authenticating. Please try again later.". Where can I find the cause of this bug? Error logs?Jumper
Honestly, what I do in this situation is to just delete whatever I installed DevStack on and start over fresh. Don't bother trying to fix or troubleshoot it. I suggest using DevStack from a stable branch, see blog.phymata.com/2012/11/08/… Replace folsom with havana everywhere in that post to get the latest and greatest OpenStack.Maurene

© 2022 - 2024 — McMap. All rights reserved.