openstack keystone token-get报错'NoneType' object has no attribute 'has_service_catalog'
来源:互联网 发布:mysql主键和外键作用 编辑:程序博客网 时间:2024/06/03 17:15
最近在研究openstack keystone遇到了一个问题,关于keystone token-get的,在这里记录一下,方便以后查阅。
如果只是获取keystone user-list 只需要设置下面两个环境变量
export OS_SERVICE_TOKEN=050fc374829f30d9eb5d
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
只设置这两个环境变量,获取token的命令会报错
root@controller:~# keystone token-get
‘NoneType’ object has no attribute ‘has_service_catalog
要如何设置环境变量才能使用者命令呢?设置如下环境变量:
export OS_USERNAME=admin
export OS_PASSWORD=openstack
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0root@controller:~# export OS_USERNAME=admin
root@controller:~# export OS_PASSWORD=openstack
root@controller:~# export OS_TENANT_NAME=admin
root@controller:~# export OS_AUTH_URL=http://controller:35357/v2.0
keystone user-list是可以的,我们再看看token-get是否可以
root@controller:~# keystone token-get
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
‘NoneType’ object has no attribute ‘has_service_catalog
似乎不行
这个时候其实少了一步操作
unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
root@controller:~# unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
- openstack keystone token-get报错'NoneType' object has no attribute 'has_service_catalog'
- django 报错'NoneType' object has no attribute 'strftime'
- python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
- AttributeError: ‘NoneType’ object has no attribute ‘clone’
- AttributeError: 'NoneType' object has no attribute 'clone'
- python : 'NoneType' object has no attribute 'recv'
- AttributeError: 'NoneType' object has no attribute
- AttributeError: 'NoneType' object has no attribute 'startswith'
- Python: Attribute Error - 'NoneType' object has no attribute 'something'
- 用python爬github上星级排名前列的项目报错AttributeError: 'NoneType' object has no attribute 'decode'
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- Exception AttributeError: "'NoneType' object has no attribute
- python PIL bug: 'NoneType' object has no attribute 'bands' (解决)
- scapy AttributeError: 'NoneType' object has no attribute 'route'解决办法
- python使用PIL库报错,'NoneType' object has no attribute 'bands'
- selenium 2.0 'NoneType' object has no attribute 'send_keys'
- 时间复杂度
- bzoj 3282: Tree LCT第三题
- SpringMVC文件上传
- 我的Ubuntu常用软件(良心|继续补充)
- 剑指Offer—27—字符串的排列
- openstack keystone token-get报错'NoneType' object has no attribute 'has_service_catalog'
- [Linux]--底层文件 I/O 操作之多路复用
- js-01-基础-变量、数据类型、数据的操作
- 哈夫曼树学习小记
- Linux-安装MongoDB
- HDU
- HDOJ1240 BFS入门水题 + BFS模板程序
- 17AHU排位赛1 E题(gcd>1序列,容斥)
- 华为机试题[2017.8.23]