Skip to content

cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on #425

@peacememories

Description

@peacememories

We are currently trying to migrate to the Barman Cloud Plugin from the Built-in CloudNativePG Backup on our OKD cluster.

When recreating a Cluster and trying to do a WAL restore, the plugin gives the following error message:

Error while handling GRPC request","info":{"Server":{"Client":{}},"FullMethod":"/cnpgi.reconciler.v1.ReconcilerHooks/Pre"},"error":"roles.rbac.authorization.k8s.io \"menueplan-be-postgres-barman-cloud\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>

This seems to be a problem with additional permissions being required on OKD/Openshift. We already tried adding explicit permissions for setting finalizers on CronJobs to the plugins ClusterRole, but this does not seem to help.

Do we need to add this permission to another resource? Unfortunately I don't know where the plugin tries to set blockOwnerDeletion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions