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 fails to notice when a Consul catalog entry has been removed #13944

Closed
blalor opened this issue Apr 25, 2017 · 2 comments
Closed

Terraform fails to notice when a Consul catalog entry has been removed #13944

blalor opened this issue Apr 25, 2017 · 2 comments

Comments

@blalor
Copy link
Contributor

blalor commented Apr 25, 2017

Terraform Version

Terraform v0.9.3

Affected Resource(s)

  • consul_catalog_entry

Terraform Configuration Files

provider "consul" {}

resource "consul_catalog_entry" "redis" {
    node = "redis"
    address = "127.0.0.2"
    
    service = {
        name = "my-redis"
        port = "6379"
        tags = ["master"]
    }
}

Debug Output

Log for 2nd terraform apply: apply.log.txt

Console output:

$ TF_LOG=TRACE TF_LOG_PATH=apply.log.txt terraform apply
consul_catalog_entry.redis: Refreshing state... (ID: redis-127.0.0.2-[my-redis])

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Expected Behavior

Terraform should have noticed that the catalog entry was missing and recreated.

Actual Behavior

Nuttin', honey.

Steps to Reproduce

  1. consul agent -dev in terminal 0
  2. terraform apply in terminal 1
  3. confirm service registered: curl -sfS localhost:8500/v1/catalog/service/my-redis
  4. stop consul agent in terminal 0
  5. consul agent -dev in terminal 0 (restarting it)
  6. confirm service missing: curl -sfS localhost:8500/v1/catalog/service/my-redis
  7. terraform apply in terminal 1
  8. confirm service still missing: curl -sfS localhost:8500/v1/catalog/service/my-redis
@horalstvo
Copy link

We are also affected by this.

@ghost
Copy link

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

4 participants