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

Support b_ssd storage with the template images provided by Scaleway #32

Closed
franckbebel opened this issue Apr 13, 2022 · 0 comments · Fixed by #46
Closed

Support b_ssd storage with the template images provided by Scaleway #32

franckbebel opened this issue Apr 13, 2022 · 0 comments · Fixed by #46
Assignees

Comments

@franckbebel
Copy link

franckbebel commented Apr 13, 2022

Support block storage in the packer builder with the images provided by scaleway

Description

In the documentation of the Scaleway Builder there is a param image_size_in_gb that says we can create an image with block storage but it doesn't work when I try to use it with the image provided by scaleway (here I used: Centos 7.6).

The error given by packer is the following :

==> scaleway: Error creating server: scaleway-sdk-go: http error 400 Bad Request: cannot create a volume of type b_ssd from a base of type l_ssd
Build 'scaleway' errored after 2 seconds 754 milliseconds: Error creating server: scaleway-sdk-go: http error 400 Bad Request: cannot create a volume of type b_ssd from a base of type l_ssd

My packer.json file looks like that :

"builders": [
    {

      "image_name": "name-packer-base-block-{{ user `ZONE` }}",
      "snapshot_name": "name-packer-base-block-snapshot-{{ user `ZONE` }}",
      "image_size_in_gb": "20",
      "type": "scaleway",
      "image": "centos_7.6",
      "zone": "fr-par-1",
      "commercial_type": "DEV1-S",
      "remove_volume": true,
      "ssh_username": "root"
    }
  ],

The feature seems not supported for the moment. Could you please implement custom image creation with block storage in the packer builder?

Use case

Creation of custom images with block storage without using the scaleway interface.

Sorry for my English. If you have any questions let me know. I appreciate your help.

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

Successfully merging a pull request may close this issue.

2 participants