You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The juju cli does not allow for constraints of existing units to be updated either. If you change an application's constraints, they apply to the next machines for the units deployed only, see juju set-constraints.
Juju lacks the ability to resize existing machines disk today.
As terraform is a declarative language so the expectation would be that every unit has machines with the same constraints. It's not as flexible as juju.
Your next problem would be that the provider will not let you choose which units are to be deleted. The oldest units are removed first.
I'd suggest that putting the DB on the root disk is a bad idea anyways. You'd want it on a volume which can be detached and reattached to specific units (juju attach-storage). This is not currently supported by the provider.
If this is a real world scenario, a design of how to accomplish it should be made and agreed to.
Description
Constraint changes or differences (see #344) causes units to be replaced and destroyed. This is scary for an environment hosting databases.
I can see use cases where we want to increase or scale up DB units. We do so by changing the constraints, adding new units, then cycling out the old.
Sadly, the current Juju Terraform provider sees constraint changes and causes replacements which means destroying units.
Urgency
Casually reporting
Terraform Juju Provider version
0.15.0
Terraform version
v1.7.2-dev
Juju version
3.5.3
Terraform Configuration(s)
Reproduce / Test
Debug/Panic Output
The text was updated successfully, but these errors were encountered: