From ba48d025ca7f68d4bd2a14dbc26a76a8727d482b Mon Sep 17 00:00:00 2001 From: Alexey Artamonov Date: Tue, 17 Nov 2026 00:01:51 +0300 Subject: [PATCH] docs(clickhouse): say what the skip annotation leaves running The restore scenario said the skip annotation releases a Backup without starting a delete. It does not create another cleanup Job, but the one already there is deleted in the background, so its Pod can still start a delete until it is removed. Assisted-by: LLM Signed-off-by: Alexey Artamonov --- examples/backups/clickhouse/92-scenario-user-restore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/backups/clickhouse/92-scenario-user-restore.md b/examples/backups/clickhouse/92-scenario-user-restore.md index 288d1f1b0..5b68f70c0 100644 --- a/examples/backups/clickhouse/92-scenario-user-restore.md +++ b/examples/backups/clickhouse/92-scenario-user-restore.md @@ -51,5 +51,5 @@ The script: - Both flows assume the strategy template uses `.Mode` to switch between `create_remote` and `restore_remote`. See `01-create-strategy.sh`. -- On `backup.useSystemBucket: true`, deleting the Cozystack `Backup` deletes its archive through the sidecar and the `Backup` stays until that delete finished. When the ClickHouse application is already gone or no longer uses the system bucket, the platform's system bucket is no longer the one the `Backup` records its archive in (also when it changes while the delete runs), or the archive is named without its BackupJob's UID (a backup still running when the controller was upgraded, whose name another run of the same second may share), the `Backup` is released with an `ArtifactNotDeleted` Warning Event naming the archive left in the bucket; a delete that fails is retried, after a wait that starts at 30 seconds and doubles with each failure up to 30 minutes, and each failure is reported as an `ArtifactCleanupFailed` Warning Event; the `backups.cozystack.io/skip-artifact-cleanup: "true"` annotation releases it without starting a delete, though a delete the sidecar already accepted still runs to the end. A `Backup` taken before the archive name was recorded, or by a strategy that does not use `.ArchiveName`, does not name its archive and leaves it behind. So does a `Backup` that names its archive but not the bucket setting, as one recorded by a controller older than this behaviour does; it is released without an Event. +- On `backup.useSystemBucket: true`, deleting the Cozystack `Backup` deletes its archive through the sidecar and the `Backup` stays until that delete finished. When the ClickHouse application is already gone or no longer uses the system bucket, the platform's system bucket is no longer the one the `Backup` records its archive in (also when it changes while the delete runs), or the archive is named without its BackupJob's UID (a backup still running when the controller was upgraded, whose name another run of the same second may share), the `Backup` is released with an `ArtifactNotDeleted` Warning Event naming the archive left in the bucket; a delete that fails is retried, after a wait that starts at 30 seconds and doubles with each failure up to 30 minutes, and each failure is reported as an `ArtifactCleanupFailed` Warning Event; the `backups.cozystack.io/skip-artifact-cleanup: "true"` annotation releases it without creating another cleanup Job; a cleanup Pod that already exists can still start a delete until it is removed, and a delete the sidecar already accepted still runs to the end. A `Backup` taken before the archive name was recorded, or by a strategy that does not use `.ArchiveName`, does not name its archive and leaves it behind. So does a `Backup` that names its archive but not the bucket setting, as one recorded by a controller older than this behaviour does; it is released without an Event. - On the tenant's own bucket the archive's lifecycle stays the tenant's: deleting the `Backup` leaves it, and `POST /backup/delete/remote/` on the sidecar (port 7171, basic auth from the `-backup-api-auth` Secret) deletes one by hand.