[Openstack-keystone] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
来源:互联网 发布:淘宝网的网址域名 编辑:程序博客网 时间:2024/05/17 06:16
通过devstack搭建到openstack,在使用keystone到时候遇到这个问题,keystone Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]。然后查阅了相关资料,问题得到解决,错误产产生到原因是一些变量没有指定。方法如下:
1.keystone到默认安装目录所/etc/keystone/。我在次目录下创建可一个keystonerc_admin文件,内容如下:
$ cat keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=000000
export OS_AUTH_URL=http://192.168.1.107:35357/v2.0/
export PS1='[\u@\h \W(keystone_admin)]$'
2.然后执行 source keystonerc_admin
3.keystone就可以正常的使用了。
root@yu-OptiPlex-3010:/etc/keystone# keystone user-list
+----------------------------------+----------+---------+----------------------+
| id | name | enabled | email |
+----------------------------------+----------+---------+----------------------+
| 94dc31f741a04eac80005139f5114a32 | admin | True | admin@example.com |
| 204fb05a4e5f47988203f06a8c26ac9c | alt_demo | True | alt_demo@example.com |
| b59260a26499402baa5b844c0802472a | cinder | True | cinder@example.com |
| 3d89fa005aee427f86bf5daff8e364b8 | demo | True | demo@example.com |
| a4792e4326354142a7791ad63bc655a8 | glance | True | glance@example.com |
| 73f9821c320e4badbe031bb983cf85e6 | heat | True | heat@example.com |
| b1da2ae4b188445e9f2663b3fccf28bf | nova | True | nova@example.com |
+----------------------------------+----------+---------+----------------------+
root@yu-OptiPlex-3010:/etc/keystone# keystone role-list
+----------------------------------+------------------+
| id | name |
+----------------------------------+------------------+
| af3607994f284aa7840d1a393f78a77b | Member |
| b6b513fc96ae41689db98febf0f5ccc0 | ResellerAdmin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| dca835aefbfa4c1690f5f73f5b42a670 | admin |
| ce8a537dfce2439981788803dcb928f6 | anotherrole |
| deaf50bbb7a342ebb2ecf1f0aadef2ab | heat_stack_owner |
| c9b04bf8bb12492c95300a122ac9fd90 | heat_stack_user |
| 59d4f4a7b33f4e3a97c6e3cf036b5301 | service |
+----------------------------------+------------------+
- [Openstack-keystone] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
- [Openstack] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
- Missing value auth-url required for auth plugin password
- keepalived 错误 received a 0 auth expecting 1
- BuildError: Could not build url for endpoint 'auth.register'(关键词:Web开发/Flask/bug)
- ImproperlyConfigured No URL to redirect to. Either provide a url or define a get_absolute_url metho
- uhttpd auth
- Auth方法
- AUTH测试
- Django Auth
- laravel--Auth
- auth权限
- redis auth
- Auth权限
- Filter mapping must specify either a <url-pattern> or a <servlet-name>问题的处理
- Creating an OpenStack Keystone ‘HelloWorld’ Extension
- 火狐已阻止载入混合活动内容“http://www.XXX/index.php?app=service&ac=auth&ts=isauth&url=
- openstack请求的url
- poj 3349 Snowflake Snow Snowflakes
- 究竟想要怎样
- 使用BackgroundWorker组件
- java调用淘宝API实例
- mac 系统开发android 真机调试找不到设备的问题
- [Openstack-keystone] Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
- 从QWebView类中下载图片
- 手势和UI控件之间冲突的解决方法(比如UITapGesture和UIButton冲突,UIPanGesture和UISlider冲突)
- hdu 1081 (dp_区间dp)
- 程序员如何像写代码一样找女朋友
- POJ-2421 最小生成树 算法复习计划
- 使用fedora 20
- Apache2.4.3编译移植
- POJ1144-Network(割顶模板题)