Deletion of RabbitMQ cluster failing with error "Failed to remove finalizer for deletion"
search cancel

Deletion of RabbitMQ cluster failing with error "Failed to remove finalizer for deletion"

book

Article ID: 398345

calendar_today

Updated On:

Products

VMware Tanzu RabbitMQ

Issue/Introduction

Deletion of RabbitMQ cluster failing with error Failed to remove finalizer for deletion. The RabbitMQ cluster custom resource instance stays in terminating state blocking the namespace deletion.

 

Environment

  • Kubernetes Version - v1.31.6
  • RabbitMQ Operator Version - v2.6.0

Cause

The Kubernetes Statefulset object that belongs to the cluster could get deleted before deletion label is propagated . This leads to some pods stuck in terminating for a long time.

Resolution

To resolve this upgrade to RabbitMQ K8s operator v2.13 where this problem is mitigated. An improvement in deletion logic was done via PR-1864 along with other improvements to avoid encountering this scenario.