Open sed-i opened 2 months ago
Could you provide a minimal reproducer here?
Also, do the resources disappear eventually or not at all? The removal of the application is asynchronous to the execution of the plan.
@sed-i
With juju in general, if you deploy an application with X number of units, then remove the application, and deploy again, the unit numbers with begin with X+1
Tear down with the juju terraform provider appears quicker than with the juju cli because it doesn't wait for tear down to be complete before returning. We have a number of bugs around this topic which will be addressed in the future.
@hmlanigan this is news to me. I know VM charms behave that way, but in k8s I always expect unit count to start at zero.
The unit name is determined by juju, not the provider has no controller there.
Please provide a small plan in the bug with the listed terraform commands to run to allows us to easily reproduce and debug.
Description
As part of a terraform test in https://github.com/canonical/mimir-worker-k8s-operator/pull/74, when a testrun ends and terraform is tearing down, I noticed the following:
juju remove-application
command.Urgency
Casually reporting
Terraform Juju Provider version
0.13.0
Terraform version
Terraform v1.9.5
Juju version
3.5.3
Terraform Configuration(s)
For full context, see https://github.com/canonical/mimir-worker-k8s-operator/pull/74.
Reproduce / Test
Debug/Panic Output
Notes & References
No response