Openstack builder doesn't support Openstack API Microversion
まだ誰も着手していません。
評価
調査の方向性
まず、use_blockstorage_volume とともに使用される OpenStack builder のパスと、その Nova クライアントが OS_COMPUTE_API_VERSION または clouds.yaml から設定を受け取る仕組みを調査します。multi-attach のデフォルトボリュームを使って build を再現し、server request がサポートされている Compute API のマイクロバージョンを使用していることを確認して、報告されている 400 エラーを回避します。
索引モデルが issue の本文から書いたものです。
説明
This issue was originally opened by @ArKam as hashicorp/packer#10906. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Overview of the Issue
When trying to launch a new image build using block storage volume feature, the build fail.
It come from the fact that the instance created will be attached on a volume type (the default one) that use multi-attach feature, packer fail to launch the VM as there is no way to specify the nova API microversion (min 2.60).
Even using environment variables such as OS_COMPUTE_API_VERSION=2.79 or a local clouds.yaml file doesn't work.
The targeted Openstack platform DO SUPPORT nova api microversion 2.79.
The targeted Openstack platform DO WORK as intended as we have a bunch of ansible playbooks that use it and that need to get this microversion specified within either an environment variable or within the system-wide or local clouds.yaml file.
Reproduction Steps
Create a packer template using Openstack builder and the use_blockstorage_volume directive.
Have your default __DEFAULT__ openstack volume type to use multi-attach feature.
launch the build.
The build fail with the following message:
==> openstack: Error launching source server: Bad request with: [POST https://sub.domain.tld:8774/v2.1/servers], error message: {"badRequest": {"message": "Multiattach volumes are only supported starting with compute API version 2.60.", "code": 400}}
Packer version
Packer v1.5.6
Simplified Packer Buildfile
https://gist.github.com/ArKam/275ecfb0cfbb43cbdf447bcd9a6696f0
Operating system and Environment details
OS: CentOS Linux release 7.9.2009 (Core).
Log Fragments and crash.log files
https://gist.github.com/ArKam/71d075c6faa08415cf39c85970d2e5ad
- 主要言語
- Go
- スター
- 29
- フォーク
- 27
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hashicorp/packer-plugin-openstack のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Error initializing block storage client with Openstack 2026.1対応中かも @elelaysh が 72 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
hashicorp/packer-plugin-openstack#162 · コメント 1 件 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
hashicorp/packer-plugin-openstack#151 · コメント 1 件 · リアクション 1 件 ·
-
難易度 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 件 ·
hashicorp/packer-plugin-openstack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
multica-ai/multica#10081 ·
メンテナーはふだん 1 日以内に返信
-
csp-probe needs efqdn to probe CSP domains対応中かも @unknownhackerworld が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
projectdiscovery/httpx#2725 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stefanpejcic/OpenPanel#1321 ·
メンテナーはふだん 1 日以内に返信
-
bug triage/pending
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信