mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
Clusters created before the move to standard-trixie run the bare tag, the system variant on Debian bullseye. Moving them changes glibc and ICU under the data directory, and the collation repair pass cannot see every case (C.UTF-8 carries no collation version), so text indexes can return wrong results and unique indexes can accept duplicates. Such a cluster now stays on its image until a pre-upgrade hook, run from that image, finds nothing stored that depends on a collation other than C, POSIX or builtin. The hook records clean, affected or unknown on the Cluster; anything but clean holds the cluster, so a check that cannot finish keeps it where it is rather than letting it move unchecked. Helm renders before hooks run, so the hook fails an attempt only when its answer contradicts what that attempt rendered, and the retry follows the answer. allowCollationChange moves a held cluster on the owner's terms, and a held cluster refuses a change of version, since new majors are built only on the new images. A physical restore replaces the Cluster that carries the answer. The CNPG backup driver records the source Cluster's image in the backup snapshot and passes it on as bootstrap.sourceImageName without interpreting it; the chart restores onto it only when it is one of the bullseye tags it shipped, and the next upgrade checks the restored data. Assisted-By: LLM Signed-off-by: Andrey Kolkov <androndo@gmail.com>