Juju Persistent Volume Claim retention inconsistent with K8s's when not using --destroy-storage flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Harry Pidcock |
Bug Description
-----
*Bug description:*
We noticed that the behavior of juju's management of persistent volume claims is inconsistent with the one of K8s's.
When scaling down, either using: "juju scale-application" or "juju remove-unit" (without having set the --destroy-storage flag), PVCs and PVs are retained as expected.
However, as soon as a new scale up event occurs (either using: "juju scale-application" or "juju add-unit") the previously retained Persistent Volume Claim gets immediately terminated.
Thus, preventing the re-attachment of the said PVC to the new unit as per K8s default behavior with StatefulSets.
-----
*To Reproduce:*
- juju deploy mysql -n 3
- juju scale-application mysql 2 (or: juju remove unit mysql --num-units 1)
- (wait a few seconds or minutes)
- juju scale application mysql 3 (or: juju add-unit mysql --num-units 1)
-----
*Environment:*
- Juju: 2.9.35
- MicroK8s: 1.21.13
-----
*Relevant Attachments:*
Please find attached the screenshots with timestamps detailing this behavior: https:/
-----
*Additional Context:*
It seems that if this bug is fixed, this would fix the issue detailed here: https:/
-----
Thank you,
Changed in juju: | |
milestone: | 2.9.37 → 2.9.38 |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
milestone: | 2.9.38 → 2.9.39 |
Changed in juju: | |
milestone: | 2.9.39 → 2.9.40 |
Changed in juju: | |
milestone: | 2.9.40 → 2.9.41 |
Changed in juju: | |
milestone: | 2.9.41 → 2.9.42 |
Changed in juju: | |
milestone: | 2.9.42 → 2.9.43 |
Changed in juju: | |
milestone: | 2.9.43 → 2.9.44 |
Changed in juju: | |
status: | In Progress → Fix Committed |
milestone: | 2.9.44 → 2.9.43 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Thanks for the bug information. I will take a look at this.