首页 > 解决方案 > cinder 将公共端点重定向到 http

问题描述

我正在运行 cinder 客户端并尝试使用 openstack 端点,但是当我运行 cinder show 时,请求被重定向到 http 端点并被中止

#cinder --version 4.1.0

#cinder show 3988928-79b0-4e2e-90a9-38089af5b46e ERROR: Unable to establish connection to http://mydomain:8776/v3/35f4380e80074591a9fd746c09e39d5c/volumes/detail?all_tenants=1&marker=6088358b-2905-42a1-aa50-a014c1dc8147: ('Connection aborted.', BadStatusLine("''",))

知道为什么这个请求会被重定向

标签: openstackopenstack-cinder

解决方案


“cinder” CLI 已被弃用,改为使用“openstack” CLI:

openstack volume show 3988928-79b0-4e2e-90a9-38089af5b46e"

如果您出于某种原因仍想使用“cinder show”,请将 OS_VOLUME_API_VERSION 设置为 3.50。

export OS_VOLUME_API_VERSION=3.50
cinder show 3988928-79b0-4e2e-90a9-38089af5b46e

推荐阅读