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
Bug: terraform-provider-incus provider fails to create the instance in the project not equal to "default" if image fingerprint assigned to image attribute instead of `image name
#94
Closed
tregubovav-dev opened this issue
Jun 28, 2024
· 2 comments
· Fixed by #100
[Description was rewritten on July 7, 2024 after addition investigation] terraform-provider-incus provider fails to create the instance in the project not equal to "default" if image fingerprint assigned to image attribute instead of image name. Instance creation fails in this case with message like below:
incus_instance.test: Creating...
╷
│ Error: Failed to retrieve image info for instance "test"
│
│ with incus_instance.test,
│ on install_via_image.tf line 20, in resource "incus_instance" "test":
│ 20: resource "incus_instance" "test" {
│
│ Image not found
incus_imagedocumentation shows how to use 'incus_instance' with 'incus_image` resource. However it does not work.
I also tried to assign short or long hardcoded 'fingerprint' value of existing image getting by command incus image list --project test with the same result.
The text was updated successfully, but these errors were encountered:
tregubovav-dev
changed the title
Bug: incus_instance resources creation fails if fingerprint is used in image attribute instead of image name
Bug: incus_instance resources creation fails if fingerprint is used in image attribute instead of image name and project is not equal to "default"
Jul 2, 2024
tregubovav-dev
changed the title
Bug: incus_instance resources creation fails if fingerprint is used in image attribute instead of image name and project is not equal to "default"
Bug: incus_instance provider fail to create the instance in the project not equal to "default" if image fingerprint assigned to image attribute instead of `image name
Jul 2, 2024
tregubovav-dev
changed the title
Bug: incus_instance provider fail to create the instance in the project not equal to "default" if image fingerprint assigned to image attribute instead of `image name
Bug: terraform-provider-incus provider fails to create the instance in the project not equal to "default" if image fingerprint assigned to image attribute instead of `image name
Jul 2, 2024
Modifying image attribute in incus_instance resource from image = incus_image.alpine.fingerprint to image = format("${incus_cached_image.alpine.source_remote}:${incus_cached_image.alpine.fingerprint}") makes the configuration work.
But, it's still not clear why image remote is required to create instance from cached image.
Issue
[Description was rewritten on July 7, 2024 after addition investigation]
terraform-provider-incus
provider fails to create the instance in the project not equal to "default" if image fingerprint assigned toimage
attribute instead ofimage name
. Instance creation fails in this case with message like below:Steps to reproduce
Failed configuration
Working configurations
OR
incus_image
documentation shows how to use 'incus_instance' with 'incus_image` resource. However it does not work.I also tried to assign short or long hardcoded 'fingerprint' value of existing image getting by command
incus image list --project test
with the same result.terraform-provider-lxd has the same issue.
The text was updated successfully, but these errors were encountered: