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
data.digitalocean_image.XXX: data.digitalocean_image.XXX: no user image found with name YYY
After some debugging I found out that DigitalOcean paginates its https://api.digitalocean.com/v2/images API and returns 1 page by default. Which means if image YYY is not on the first page - it is not "seen" by terraform and it fails.
If I keep number of images <=10 then it all works fine.
I'm not sure this is strictly terraform bug - it looks more like DigitalOcean API issue.
Actual Behavior
There should be no limit on number of images on DO, no matter how many images are there - any one can be used to deploy a droplet.
Steps to Reproduce
Have 11 images on DO
Create a single droplet with last created image (11th)
Observer terraform failing with error "no user image found with name"
Additional Context
References
The text was updated successfully, but these errors were encountered:
This issue has been automatically migrated to terraform-providers/terraform-provider-digitalocean#69 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-digitalocean#69.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 4, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
...
Debug Output
Crash Output
Expected Behavior
Using DigitalOcean provider, trying to create droplet, terraform fails with following error:
Error: Error refreshing state: 1 error(s) occurred:
After some debugging I found out that DigitalOcean paginates its https://api.digitalocean.com/v2/images API and returns 1 page by default. Which means if image YYY is not on the first page - it is not "seen" by terraform and it fails.
If I keep number of images <=10 then it all works fine.
I'm not sure this is strictly terraform bug - it looks more like DigitalOcean API issue.
Actual Behavior
There should be no limit on number of images on DO, no matter how many images are there - any one can be used to deploy a droplet.
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: