Skip to content

fix(marketplace): update server's possible volume types #3116

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

Conversation

Mia-Cross
Copy link
Contributor

When referencing the scaleway_marketplace_image data source as the image attribute of the scaleway_instance_server resource, an error can occur when the marketplace local image type is not compatible with the requested root_volume.volume_type.

A few things could be enhanced in order to make troubleshooting this error easier:

  • b_ssd was removed from the documentation of the root_volume.volume_type field's possible values as it is deprecated.
  • instance_type was null in the scaleway_marketplace_image data source, making troubleshooting the error difficult.

Closes #3019

@Mia-Cross Mia-Cross self-assigned this May 27, 2025
@Mia-Cross Mia-Cross added documentation instance Instance issues, bugs and feature requests priority:highest Bugs filled by customers, security issues labels May 27, 2025
@Mia-Cross Mia-Cross marked this pull request as ready for review May 27, 2025 18:28
@Mia-Cross Mia-Cross requested review from a team and remyleone as code owners May 27, 2025 18:28
@remyleone remyleone changed the title doc(instance): update server's possible volume types + read more mark… fix(instance): update server's possible volume types Jun 2, 2025
@remyleone remyleone changed the title fix(instance): update server's possible volume types fix(marketplace): update server's possible volume types Jun 2, 2025
@@ -214,7 +214,7 @@ To retrieve more information by label please use: ```scw marketplace image get l
To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and
check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`.
Depending on `volume_type`, updates to this field may recreate a new resource.
- `volume_type` - (Optional) Volume type of root volume, can be `b_ssd`, `l_ssd` or `sbs_volume`, default value depends on server type
- `volume_type` - (Optional) Volume type of root volume, can be `l_ssd` or `sbs_volume`, default value depends on server type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add tests for those different cases?

@remyleone remyleone enabled auto-merge June 4, 2025 14:39
@remyleone remyleone added this pull request to the merge queue Jun 4, 2025
Merged via the queue into scaleway:master with commit a6a7a13 Jun 4, 2025
46 checks passed
@Mia-Cross Mia-Cross deleted the instance_doc_root_volume_type_compatibility branch June 4, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation instance Instance issues, bugs and feature requests priority:highest Bugs filled by customers, security issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outdated docs for scaleway_instance_server.root.volume_type ⇒ Unable to use an SBS volume for root volume of an instance from Scaleway's images
2 participants