Open hloeung opened 3 days ago
units = 1
placement = "0"
Changed to:
units = 2
placement = "0,1"
Expected behavior is for a new ntp
unit to be provisioned to machine 1
. The original unit on machine 0 remains.
This is because the RequiresReplaceIfConfigured
flag is on the placement directive. The placement directive can be complex and there are edge cases that will require replacement.
Would be good to get @hmlanigan's opinion on this.
Description
Updating
units
andplacement
causes application to be removed and re-created.My Terraform plan is as follows:
I changed
units
to2
andplacement
to"0,1"
. Unfortunately, that caused thentp
application to be destroyed and a new one recreated. This removed by original unit and manually provisioned machine (because Juju doesn't support provisioning of OpenStack SR-IOV / OVN VMs).Now plan updated with the only change to
unit
andplacement
:Machine
0
is now removed from the model:Good thing is that this is a new service but would cause issues when we want to scale out adding more units.
Urgency
Casually reporting
Terraform Juju Provider version
0.13.0
Terraform version
v1.7.2-dev
Juju version
3.5.3
Terraform Configuration(s)
No response
Reproduce / Test
Debug/Panic Output
No response
Notes & References
No response