Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )

オープン
#130 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go
領域
cloud

調査の方向性

記録されたイメージ作成のポーリングリクエスト GET /v2/images/{id} から開始し、提供された Packer 1.10.1、plugin 1.1.2 の設定と external_source_image_url を使用します。成功したイメージビルドと失敗したイメージビルド、および OpenStack イメージサービスのレスポンスを比較します。完了の条件は、一時的な 404 の原因を特定するか、再現に必要な不足情報を文書化することです。

索引モデルが issue の本文から書いたものです。

説明

bug

Help please>>>

Overview of the Issue

A strange problem, image assembly does not always end successfully, error 404, but when image assembly is completed successfully, several times in a row without changing the packer code, the image size varies greatly from 300 to 1500 MB. Please note that the commit is the same, it is a repetition of the same code.
Снимок экрана 2024-06-19 в 22 00 57
Снимок экрана 2024-06-19 в 22 53 41

Reproduction Steps

Recycle jobs, but error can be after first run.

Plugin and Packer version

Packer version: 1.10.1 [go1.20.12 linux amd64]
Plugin version: github.com/hashicorp/openstack = 1.1.2"

From packer version

Simplified Packer Buildfile

source "openstack" "base" {
############ Image settings
image_name = "Debian12"
instance_name = "packer-builder.node"
image_visibility = "shared"
external_source_image_url = "https://cloud.debian.org/images/cloud/bookworm/20240415-1718/debian-12-genericcloud-amd64-20240415-1718.qcow2"
image_tags = ["test-tag"]
############ OpenStack settings
identity_endpoint = "https://identity.123.cloud/v3/"
endpoint_type = "public"
username = "123"
password = "${var.OStack_ProdPass}"
tenant_name = "COD"
domain_name = "Default"
flavor = "Local_CPU4_RAM4_NVMe40"
region = "eu-hz"
config_drive = true
networks = ["4860xxxxxfe38"]
security_groups = ["5481xxxxx9856"]
############ Floating IP settings
floating_ip_network = "v110_123_ip_net"
############ SSH
ssh_timeout = "40m"
ssh_ip_version = "4"
ssh_keypair_name = "123"
ssh_username = "debian"
ssh_private_key_file = ".ssh/id_ed25519"
}

build {
sources = ["source.openstack.base"]
provisioner "ansible" {
playbook_file = "debian12_playbook.yml"
use_sftp = true
host_alias = "packerbuild-node"
ssh_host_key_file = ".ssh/id_ed25519"
use_proxy = "false"
ansible_ssh_extra_args=["-vvv", "-o StrictHostKeyChecking=no"]
}
}

packer {
required_plugins {
openstack = {
version = "~> 1"
source = "github.com/hashicorp/openstack"
}
ansible = {
version = ">= 1.1.1"
source = "github.com/hashicorp/ansible"
}
}
}

Operating system and Environment details

OpenStack using gitlab CI with Packer version: 1.10.1 [go1.20.12 linux amd64] inside docker
For AWS and GCP its working very well. We from Ukraine.

Log Fragments and crash.log files

openstack.base: [DEBUG] Request GET https://images.hz.123.cloud/v2/images/336xxxxd4 200
2024/06/19 17:37:07 packer-plugin-openstack_v1.1.2_x5.0_linux_amd64 plugin: 2024/06/19 17:37:07 Waiting for image creation status: saving
openstack.base: [DEBUG] Request GET https://images.hz.123.cloud/v2/images/336xxxxd4 404
openstack.base:
openstack.base: [DEBUG] Response Error: {"message": "No image found with ID 336xxx2d4

\n\n\n", "code": "404 Not Found", "title": "Not Found"}
openstack.base:
==> openstack.base: Error waiting for image: Resource not found

主要言語
Go
スター
29
フォーク
27
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hashicorp/packer-plugin-openstack のほかの issue

hashicorp/packer-plugin-openstack の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。