[原]openstack-kilo--issue(二) openstack auth error

/**

系统环境:redhat7.2

repo:163

openstack version : kilo

author: lihaibo

本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.

**/

问题1:ERROR: openstack The request you have made requires authentication. (HTTP 401) (Request-ID:

出现这个问题,经过检查发现,是环境变量错误:

由于在/etc/profile中已经设置了OS_URL  但是在设置indetify service的时候配置了一个脚本文件admin-openrc.sh的文件。

这个问题重点检查

/etc/profile

~/.bashrc

admin-openrc.sh 

中的环境变量是否有重复

我的环境设置了两个URL

[root@controller0 /]# env |grep OS_*
OS_PROJECT_DOMAIN_ID=default
HOSTNAME=controller0
OS_USER_DOMAIN_ID=default
OS_PROJECT_NAME=admin
OS_PASSWORD=admin
OS_AUTH_URL=http://controller0:35357/v3        admin-openrc.sh
OS_TOKEN=admin
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_URL=http://controller0:35357/v2.0          /etc/profile   #这个是多余的,在文件中取消这个设置或者使用unset取消这个限制

取消了第二个URL就好了

原文地址:https://www.cnblogs.com/horizonli/p/5547845.html