You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packer {
required_plugins {
scaleway={
version ="1.0.3"
source ="github.com/hashicorp/scaleway"
}
}
required_version=">= 1.5.4"
}
# Scaleway image ID or labelvariable"scw_image_id" {
type=stringdefault="ubuntu_focal"
}
# Scaleway VPS typevariable"scw_commercial_type" {
type=string
}
# Image name is the resuling image namevariable"image_name" {
type=string
}
# Volume size in GB, defaults to 0 for a standard local SSD configurationvariable"image_size_in_gb" {
type=numberdefault=0
}
source"scaleway""foo-image" {
image=var.scw_image_idcommercial_type=var.scw_commercial_typeimage_size_in_gb=var.image_size_in_gbssh_username="root"image_name=var.image_name
}
build {
sources=["source.scaleway.foo-image"]
}
Operating system and Environment details
Tested on MacOS Catalina (10.15.7)
Log Fragments and crash.log files
scaleway.foo-image: output will be in this color.
==> scaleway.foo-image: Prevalidating image name: foo
==> scaleway.foo-image: Prevalidating snapshot name: snapshot-packer-1657808327
==> scaleway.foo-image: Creating temporary ssh key for server...
==> scaleway.foo-image: Creating server...
==> scaleway.foo-image: Waiting for server to become active...
==> scaleway.foo-image: Using SSH communicator to connect: 51.15.107.16
==> scaleway.foo-image: Waiting for SSH to become available...
==> scaleway.foo-image: Connected to SSH!
==> scaleway.foo-image: Shutting down server...
==> scaleway.foo-image: Creating snapshot: snapshot-packer-1657808327
==> scaleway.foo-image: Creating image: foo
==> scaleway.foo-image: Error creating image: scaleway-sdk-go: http error 400 Bad Request: snapshot is not available
==> scaleway.foo-image: Provisioning step had errors: Running the cleanup provisioner, if present...
==> scaleway.foo-image: Destroying server...
Build 'scaleway.foo-image' errored after 1 minute 6 seconds: Error creating image: scaleway-sdk-go: http error 400 Bad Request: snapshot is not available
The text was updated successfully, but these errors were encountered:
Maybe the timeout was a bit too short by default. Basically, the snapshot was not yet done that the image tried to exist. Could you try to relaunch it?
Hello @karelorigin, regarding the error you encountered, I was able to reproduce it using the plugin version 1.0.3, this behavior is fixed in the last release (see the PR ad44180).
I suggest you to upgrade your version to 1.0.5. Feel free to comment and reopen the issue if needed.
Overview of the Issue
The Scaleway Packer plugin fails to build an image. This error appears exclusively for block storage SSD images.
Reproduction Steps
Plugin and Packer version
From
packer version
packer v1.8.1
Plugin version:
v1.0.3
Simplified Packer Buildfile
Operating system and Environment details
Tested on MacOS Catalina (10.15.7)
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: