-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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.


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