openstack - 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("''",))
知道为什么这个请求会被重定向
解决方案
“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
推荐阅读
- reactjs - 通过中间件参考Plupload
- kivy - 如何在 KivyMD 中更改 MDDataTable 的字体?
- swift - swift5如何在用户授予有限访问权限以选择某些照片后仅显示有限的照片库
- python - 在 WSL2 (Ubuntu) 上安装 PyStemmer 时出错
- assembly - 如何在 MS-DOS x86 汇编语言中检测 16550 UART 芯片?
- javascript - 如何制作视频边框曲线?
- python - 编码新手 - 尝试从网站访问某个元素
- reactjs - React Redux CreateSlice Post Api is not taking the updated values
- python - 使用 Python 进行轨迹文件分析
- javascript - JS Fetch() 通过变量或函数获取头部元信息