Error initializing block storage client with Openstack 2026.1
评估
调研方向
从 StepCreateVolume 失败和块存储客户端初始化开始,然后追踪服务目录端点的选择方式。使用提供的 Packer 构建针对 OpenStack 2026.1 进行复现;当块存储使用可用的 block-storage 端点进行初始化,而不是要求 volumev3 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Overview of the Issue
With the 2026.1 (Gazpacho) release, cinder dropped the volumev3 endpoint.
It needs to be fetched from the endpoint list instead of hardcoded.
The error is Error initializing block storage client: No suitable endpoint could be found in the service catalog.
Reproduction Steps
After the upgrade of a cloud to 2026.1, packer build will fail when it previously worked:
# PACKER_LOG=1 /usr/bin/packer build openstack.pkr.hcl
(...)
openstack.openhpc: output will be in this color.
2026/08/25 15:40:35 Running builder: openstack
2026/08/25 15:40:35 [INFO] (telemetry) Starting builder openstack.openhpc
==> openstack.openhpc: Loading flavor: general.v1.small
2026/08/25 15:40:35 packer-plugin-openstack_v1.1.4_x5.0_linux_amd64 plugin: 2026/08/25 15:40:35 [INFO] Loading flavor by ID: general.v1.small
2026/08/25 15:40:35 packer-plugin-openstack_v1.1.4_x5.0_linux_amd64 plugin: 2026/08/25 15:40:35 [ERROR] Failed to find flavor by ID: Resource not found
2026/08/25 15:40:35 packer-plugin-openstack_v1.1.4_x5.0_linux_amd64 plugin: 2026/08/25 15:40:35 [INFO] Loading flavor by name: general.v1.small
==> openstack.openhpc: Verified flavor. ID: d7d3ab48-3948-4140-a690-60626ed3cabe
==> openstack.openhpc: Using existing SSH private key
==> openstack.openhpc: Using existing SSH private key
==> openstack.openhpc: Error initializing block storage client: No suitable endpoint could be found in the service catalog.
==> openstack.openhpc: Step "StepCreateVolume" failed
==> openstack.openhpc: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?
Plugin and Packer version
Packer v1.16.0
packer-plugin-openstack v1.1.4
Simplified Packer Buildfile
packer {
required_plugins {
openstack = {
version = ">= 1.0.0"
source = "github.com/hashicorp/openstack"
}
}
}
source "openstack" "openhpc" {
flavor = "en1.small"
use_blockstorage_volume = true
volume_type = "ssd"
volume_size = 20
volume_name = "my-image-xxx"
# Input image:
source_image = "xxxx"
source_image_name = "rl-98"
# Output image:
image_disk_format = "raw"
}
build {
source "source.openstack.openhpc" {
image_name = "my-image-xxx"
}
}
Log Fragments and crash.log files
Openstack endpoints on 2025.1
$ openstack endpoint list | grep cinder
| uuid1 | RegionOne | cinderv3 | volumev3 | True | public | https://my.cloud.local/v3/%(tenant_id)s |
| uuid2 | RegionOne | cinder | block-storage | True | public | https://my.cloud.local/v3 |
| uuid3 | RegionOne | cinderv3 | volumev3 | True | internal | https://my.cloud.private.ip:8776/v3/%(tenant_id)s |
| uuid4 | RegionOne | cinder | block-storage | True | internal | https://my.cloud.private.ip:8776/v3
Openstack endpoints on 2026.1
| uuid5 | RegionOne | cinder | block-storage | True | public | https://my.cloud.private.ip:8776/v3 |
| uuid6 | RegionOne | cinder | block-storage | True | internal | https://my.cloud.private.ip:8776/v3
==> volumev3 endpoints have been removed, must switch to block-storage
- 主要语言
- Go
- 星标
- 29
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hashicorp/packer-plugin-openstack 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement
难度 4/5 3-5 天 新手友好度 52/100
hashicorp/packer-plugin-openstack#151 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
-
Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )未关闭bug
难度 4/5 3-5 天 新手友好度 25/100
hashicorp/packer-plugin-openstack#130 · 1 条评论 ·
-
enhancement good first issue
难度 4/5 3-5 天 新手友好度 35/100
hashicorp/packer-plugin-openstack#116 · 2 条评论 ·
查看 hashicorp/packer-plugin-openstack 的全部 Issue
相似的 Issue
-
enhancement needs:sonnet ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
microsoft/TypeScript#65370 ·
维护者通常 1 天内回复
-
docs: data-ownership invites vendors to build add-ons around the OS可能已有人在做 @brandli 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
gentian-org/gentian-os#894 ·
维护者通常 1 天内回复
-
bug tech debt testing
难度 2/5 1-3 小时 新手友好度 76/100
aws/amazon-vpc-cni-k8s#3976 ·
维护者通常 1 天内回复
-
bug raised-by:desk
难度 2/5 1-3 小时 新手友好度 78/100
medici-finance/assay#5678 ·
维护者通常 1 天内回复