在安装devstack之后 http://server-ip:5000 无法访问



我按照 https://www.theurbanpenguin.com/installing-devstack-on-ubuntu-16-04/教程在我的 Ubuntu 16.04 服务器上安装了 devstack(queens release)。

安装完成后,我运行了以下命令

export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=<password>
export OS_AUTH_URL=http://server-ip:5000/v2.0
openstack image create --public --disk-format qcow2 --container-format bare --file /home/cse3/ubuntu_images/ubuntu-14.04-server-cloudimg-amd64-disk1.img ubuntu

但是每当我在浏览器中打开 http://server-ip:5000/v2.0 时,我都无法连接错误。当我从命令行创建图像时,我收到以下消息

Failed to discover available identity versions when contacting http://server-ip:5000/v2.0. Attempting to parse version from URL. Unable to establish connection to http://server-ip:5000/v2.0/tokens: HTTPConnectionPool(host='server-ip', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84ebecabd0>: Failed to establish a new connection: [Errno 111] Connection refused',))

任何人都可以建议需要遵循哪些步骤来消除此错误吗?

安装 Devstack 后,您应该能够在http://server-ip查看 OpenStack 仪表板,如果server-ip是公共 IP。AUTH_URL用于在使用 SDK 或客户端库时授权 API。这实际上是仪表板(Horizon)与Keystone身份服务一起工作的方式。

如果server_ip不是公共 IP,则需要在服务器和浏览器中设置代理端口。

这是因为身份 API 从

export OS_AUTH_URL=http://server-ip:5000/v2.0

export OS_AUTH_URL=http://server-ip/identity

您可以从OpenStack Doc中获得更多

检查你的httpd是否正在运行

SystemCTL Status HTTPD

如果它已退出或未启动。

启用 httpd

系统CTK S

相关内容

最新更新