简体   繁体   English

Openstack keystone 令牌问题。 未能发现可用的身份版本

[英]Openstack keystone token issue. Failed to discover available identity versions

Im attempting to setup keystone identity service on virtualized Ubuntu 20.4 via Windows Hyper-V on Windows 10.我试图通过 Windows 10 上的 Windows Hyper-V 在虚拟化 Ubuntu 20.4 上设置 keystone 身份服务。

I followed the instructions on: https://docs.openstack.org/keystone/pike/install/index-ubuntu.html very carefully & attempted this 4 times from scratch with a new VM.我非常仔细地按照以下说明操作: https ://docs.openstack.org/keystone/pike/install/index-ubuntu.html 并使用新 VM 从头开始​​尝试了 4 次。

However, all calls to OpenStack web service API either via curl, or command line result in some type of 404 Error.但是,通过 curl 或命令行对 OpenStack Web 服务 API 的所有调用都会导致某种类型的 404 错误。

Here my detailed steps (not including VM setup):这是我的详细步骤(不包括VM设置):

  1. Install & Setup MySQL for keystone:为 keystone 安装和设置 MySQL:

在此处输入图像描述

在此处输入图像描述

  1. apt install keystone :易于安装梯形图:

在此处输入图像描述

  1. configure keystone:配置基石:

在此处输入图像描述

  1. fernet setup:铁丝网设置:

在此处输入图像描述

  1. Bootstrap keystone:引导梯形图: 在此处输入图像描述

  2. Apache2 setup: Apache2 设置:

In /etc/apache2/apache2.conf Set ServerName controller在 /etc/apache2/apache2.conf 中设置ServerName controller

  1. source confif file源配置文件

在此处输入图像描述

  1. check port 5000.检查端口 5000。

在此处输入图像描述

  1. set local host name resolution:设置本地主机名解析: 在此处输入图像描述

  2. Start apache.启动阿帕奇。 service apache2 restart

Here is the issue:这是问题:

Attempt # 1 - Using curl to call keystone API (404):尝试 #1 - 使用 curl 调用 keystone API (404):

Attempt # 2 - Using openstack command line tool, again (404):尝试 #2 - 再次使用 openstack 命令行工具(404):

在此处输入图像描述

Troubleshooting:故障排除:

Keystone logs look good with no error: Keystone 日志看起来不错,没有错误: 在此处输入图像描述

Furthermore, apache2 is running as I can see default server page:此外,apache2 正在运行,因为我可以看到默认服务器页面:

在此处输入图像描述

So why cant keystone API be reached?那么为什么无法访问 keystone API 呢?

Appreciated赞赏

export these variables and test again导出这些变量并再次测试

export OS_AUTH_VERSION=3
export OS_ENDPOINT_TYPE=internalURL
export OS_INTERFACE=internalURL
export OS_AUTH_TYPE=password
export OS_TENANT_NAME=admin
export OS_NO_CACHE=1

check your wsgi and apache2 vhost config too, to make sure apache will redircet it correctly检查您的 wsgi 和 apache2 vhost 配置,以确保 apache 将正确重定向它

请检查是否安装了文档中提到的libapache2-mod-WSGI此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM