Files
cozystack/packages/apps/vm-disk/tests
Aleksei Sviridkin 5d2c82c457 fix(vm-disk): refuse to clone a golden image whose import failed
A disk with source.image clones a golden from cozy-public without
looking at it. When that golden's import has failed, CDI never
populates it, so the clone waits forever and the new disk sits pending
with nothing pointing at the image.

Fail the render instead when the golden's phase is Failed, naming the
image. A golden still importing is left alone because CDI holds the
clone until the source is populated. An existing disk is exempt: its
DataVolume spec is immutable, so failing the render cannot rescue it
and would only block its upgrades.

Signed-off-by: Aleksei Sviridkin <f@lex.la>
Assisted-by: LLM
2026-09-29 22:15:59 +03:00
..