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

Terraform state stuck after invalid docker_image tag #6431

Closed
kyhavlov opened this issue Apr 30, 2016 · 2 comments
Closed

Terraform state stuck after invalid docker_image tag #6431

kyhavlov opened this issue Apr 30, 2016 · 2 comments

Comments

@kyhavlov
Copy link
Contributor

kyhavlov commented Apr 30, 2016

Terraform Version

0.6.15

Affected Resource(s)

  • docker_image

Terraform Configuration Files

Initially:

provider "docker" {
  host = "tcp://localhost:2375"
}

resource "docker_container" "consul" {
  image = "${docker_image.consul.latest}"
  name = "consul"
}

resource "docker_image" "consul" {
  name = "progrium/consul:invalidtag"
}

Then, changed the following line:

  name = "progrium/consul:latest"

Debug Output

https://gist.github.com/kyhavlov/5a2d79cfc5409d101d5ba2291af807d6

Expected Behavior

Terraform should fail on the first run because of the invalid tag, then succeed after being given a valid tag

Actual Behavior

Terraform state becomes stuck and the invalid tag error persists, unless the tfstate is directly fixed

Steps to Reproduce

  1. Use the initial config above, then run terraform apply or terraform plan; both fail with this error once the state is stuck regardless of how the manifest is updated afterward
@kyhavlov
Copy link
Contributor Author

Fixed in #7000 .

@ghost
Copy link

ghost commented Apr 23, 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 23, 2020
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