Skip to content

[Bug]: CheckEmptyWalArchive doesn't run with volumesnapshots and CNPG-I plugin restores #9305

@mnencia

Description

@mnencia

Is there an existing issue already for this bug?

  • I have searched for an existing issue, and could not find anything. I believe this is a new bug.

I have read the troubleshooting guide

  • I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

  • I have read the troubleshooting guide and I think this is a new bug.

Contact Details

No response

Version

trunk (main)

What version of Kubernetes are you using?

1.34

What is your Kubernetes environment?

Self-managed: kind (evaluation)

How did you install the operator?

YAML manifest

What happened?

The CheckEmptyWalArchive feature does not work on volume snapshot restores if using a CNPG-I plugin (e.g., plugin-barman-cloud) for WALS. During restore, the code does not create the CheckEmptyWalArchiveFile file and instead calls the "barman-cloud-check-wal-archive" command directly, but only when using in-tree backup. This direct call is made before the restore begins as an early error detection, but it cannot function when an external plugin is handling the backup. As a result, restore doesn't run the check for setups using external plugins for WAL.

Cluster resource

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions