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

DigitalOcean droplet image not found #17497

Closed
eakraly opened this issue Mar 4, 2018 · 2 comments
Closed

DigitalOcean droplet image not found #17497

eakraly opened this issue Mar 4, 2018 · 2 comments

Comments

@eakraly
Copy link

eakraly commented Mar 4, 2018

Terraform Version

Terraform v0.11.3

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:

  • data.digitalocean_image.XXX: 1 error(s) occurred:
  • 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

  1. Have 11 images on DO
  2. Create a single droplet with last created image (11th)
  3. Observer terraform failing with error "no user image found with name"

Additional Context

References

@ghost
Copy link

ghost commented Mar 5, 2018

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.

@ghost
Copy link

ghost commented Apr 4, 2020

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 ghost locked and limited conversation to collaborators Apr 4, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants