Open mcarvalhor opened 2 months ago
@mcarvalhor What version if juju are the controller and model running?
Hi!
Controller: v3.1.8
Model: v3.1.8
Another workaround is adding:
lifecycle{
ignore_changes = [ units, ]
}
This one is better as we don't even see the changes on the plan. But I guess the bug still needs a permanent fix.
Description
When we deploy a "daemon" juju application using terraform without explicit unit count, every
terraform apply
command fails with "Unable to update application resource, got error: scale a "daemon" application not supported".We can see from the plan that juju terraform provider is trying to change the number of units, and it shouldn't.
The current workaround is: ignore the error.
Urgency
Annoying bug in our test suite
Terraform Juju Provider version
0.11.0
Terraform version
v1.7.2-dev
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
Notes & References
I have a live environment on Canonical private cloud (Prodstack 6) where this issue is seen. Feel free to ping me on Mattermost if you'd like to troubleshoot this using that environment.