Cannot to remove PXC manual backup for PVC storage

Description

I created minimal PXC cluster 

with FS PVC backup configured.

Then run the backup manually 

. After it's completed, its job and pod stays.

When I try to remove the backup manually, with the command below, it blocks CLI and does not remove the backup job and pod.

$> kubectl delete pxc-backup/local-dev perconaxtradbclusterbackup.pxc.percona.com "local-dev" deleted

Note that the deletionTimestamp is set so I can cancel the command with control-C

 

However when I delete finalizers for the backup, the job and pod are started deleting immediately.

$> kubectl patch pxc-backup/local-dev --type=merge -p '{"metadata": {"finalizers": null}}' perconaxtradbclusterbackup.pxc.percona.com/local-dev patched

 

With S3 backup the deletion command exits successfully and the job is deleted.
Only the backup pod is not deleted (see #K8SPXC-796 bug) 

Environment

None

Attachments

2
  • 06 Sep 2021, 07:41 AM
  • 06 Sep 2021, 07:41 AM

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Reviewer

Needs Review

Yes

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist

Created September 6, 2021 at 8:21 AM
Updated March 5, 2024 at 5:45 PM
Resolved October 11, 2021 at 5:34 PM

Flag notifications