zoukankan      html  css  js  c++  java
  • [原]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就好了

  • 相关阅读:
    NKOJ P3051浇花
    Linux-Shell脚本编程-学习-2-Linux基本命令
    Linux-Shell脚本编程-学习-1-Linux基本命令
    Ubuntu下使用Git_6
    Ubuntu下使用Git_5
    电脑优化,提速
    Ubuntu下使用Git_4
    Ubuntu下使用Git_3
    Ubuntu下使用Git_2
    Ubuntu下使用Git_1
  • 原文地址:https://www.cnblogs.com/horizonli/p/5547845.html
Copyright © 2011-2022 走看看