Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packer build doesn't work anymore #170

Closed
Nancomcy-Dev opened this issue Jun 20, 2024 · 3 comments
Closed

Packer build doesn't work anymore #170

Nancomcy-Dev opened this issue Jun 20, 2024 · 3 comments
Labels

Comments

@Nancomcy-Dev
Copy link

Nancomcy-Dev commented Jun 20, 2024

Overview of the Issue

packer build doesn't work anymore, here is the error :

error creating server: scaleway-sdk-go: http error 410 Gone

Reproduction Steps

Plugin and Packer version

From packer version 1.8.4 to 1.11.0

Simplified Packer Buildfile

packer {
  required_plugins {
    scaleway = {
      version = ">= 1.0.5"
      source  = "github.com/scaleway/scaleway"
    }
  }
}

variable "access_key" {
  type      = string
  sensitive = true
  default   = ""
}

variable "project_id" {
  type      = string
  sensitive = true
  default   = ""
}


variable "secret_key" {
  type      = string
  sensitive = true
  default   = ""
}

source "scaleway" "server_draft" {
  access_key      = "${var.access_key}"
  commercial_type = "PLAY2-PICO"
  image           = "ubuntu_noble"
  image_name      = "server-draft"
  project_id      = "${var.project_id}"
  remove_volume   = "true"
  secret_key      = "${var.secret_key}"
  server_name     = "server-build"
  snapshot_name   = "server-draft-snapshot"
  ssh_username    = "root"
  zone            = "fr-par-2"
}

build {
  sources = ["source.scaleway.server_draft"]
}
@remyleone
Copy link
Member

Hello 👋 does it work if you put a UUID directly? I'm trying to pin point where the error is.

@Nancomcy-Dev
Copy link
Author

Hello

You are right, using a UUID instead of the image name does the job.

Thanks

@remyleone
Copy link
Member

We released a new version: https://github.com/scaleway/packer-plugin-scaleway/releases/tag/v1.1.1 that should also work with the label. Feel free to test it out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants