Closed cirocosta closed 6 years ago
Hi @cirocosta
This is a nice suggestion - just making the addition right now
Paul
Hey @stack72 , thanks for the quick response!
Please let me know if you want me to test it or contribute to it 👍
Thanks!
@cirocosta this has been merged to master - we will try and get a provider release out this week - I need to ask one of the HashiCorp team to do this for us
Thanks, @stack72 !
I just tried here by go get
ing it and then setting terraform init
to look for plugins in the right place and it worked perfectly 👍
Thx!
wonderful news @cirocosta :)
Terraform Version
Affected Resource(s)
triton_machine
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Take into account the desired state of an instance (anything except
failed
) when reading it such that an instance which got tofailed
state could be recreated instead of being accounted as a resource in good shape.Actual Behavior
The
triton_machine
resource doesn't account for thefailed
state whenrefresh
ing soplan
ing again after a machine gets tofailed
doesn't end up in additions.Steps to Reproduce
terraform_machine
that gets tofailed
stateterraform apply
terraform plan
Important Factoids
In our datacenter, we had some issues with Triton and that lead to having a good number of machines (from
triton_machine
) ending up infailed
state.References
In
GH-10
there was the addition of a check that verifies if the machine got to thefailed
state. In such case, it doesn't write to tfstate. In our deployment, we were getting tofailed
a lot of time after theprovisioning
state (at a time when terraform had already timed out). This lead to terraform keeping the resource at thetfstate
and then the plugin not accounting for the failed state later.