如何在devstack中管理用户/密码? [英] How to manage users/passwords in devstack?

查看:309
本文介绍了如何在devstack中管理用户/密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 devstack 安装到干净的Ubuntu计算机上.我可以通过http://localhost/auth/login/访问OpenStack仪表板.但是,我不知道如何管理用户或我的初始凭据是什么.

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.

此信息保存在哪里?

推荐答案

该信息保存在Keystone MySQL数据库中.不要直接编辑数据库!

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

您将要通过Keystone CLI来管理用户.为此,您需要正确地获取DevStack管理员凭据.

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

我在这里放置了echo命令,向您展示如何发现自己的信誉.

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

要使用Keystone CLI,请签出docs 管理项目,用户和角色.

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

如果您想以非管理员用户的身份使用CLI,只需

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

这篇关于如何在devstack中管理用户/密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆