标签:openstack
在创建用户时报
[root@controller ~]# openstack user create --password-prompt neutron
User Password:
Repeat User Password:
The request you have made requires authentication. (HTTP 401) (Request-ID: req-6750cf88-b2b0-4f07-89fa-
解决方法:
把admin-token中的admin-token环境变量去掉
[root@controller ~]# echo $OS_TOKEN
d55a8891f4adb5796f32
[root@controller ~]# unset OS_TOKEN
[root@controller ~]# echo $OS_TOKEN
[root@controller ~]# openstack user create --password-prompt neutron
User Password:
Repeat User Password:
+-----------+----------------------------------+
| Field | Value |
+-----------+----------------------------------+
| domain_id | default |
| enabled | True |
| id | 8004b1a254674184a47000058b28cb8c |
| name | neutron |
+-----------+----------------------------------+
若有token时,可以删除和查看用户但是不能创建用户。(原因待查询)
本文出自 “完美世界!” 博客,请务必保留此出处http://shyln.blog.51cto.com/6890594/1791097
标签:openstack
原文地址:http://shyln.blog.51cto.com/6890594/1791097