-
Notifications
You must be signed in to change notification settings - Fork 307
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Creating a RabbitMQ cluster on Openshift fails with following error:
FailedCreate statefulset/mcs-services-rabbitmq-server create Pod mcs-services-rabbitmq-server-0 in StatefulSet mcs-services-rabbitmq-server failed error: failed to create PVC persistence-mcs-services-rabbitmq-server-0: persistentvolumeclaims "persistence-mcs-services-rabbitmq-server-0" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
To Reproduce
Steps to reproduce the behavior:
- Download the release files and extracted them to our local workspace
- Follow the steps to install the operator using Kubectl (not Helm) from here
- Allow the anyuid SCC which allows users to run with any UID and any GID
oc adm policy add-scc-to-user anyuid -z p-rmq-operator -n pivotal-rabbitmq-system - Confirm Operator should be installed successfully
- Confirm CR is available following instructions from here
- Add the following lines to the ClusterRole named p-rmq-operator-role of the rbac.yaml and re-apply the rbac.yaml
- apiGroups:
- rabbitmq.pivotal.io
resources:
- rabbitmqclusters/finalizers
verbs:
- create
- get
- patch
- update
- Create a RMQ cluster using
apiVersion: rabbitmq.pivotal.io/v1beta1
kind: RabbitmqCluster
metadata:
name: rmq-cluster
namespace: rmq
spec:
image: <Image>
replicas: 3
service:
type: ClusterIP
- You will see the following errors
Warning FailedCreate statefulset/mcs-services-rabbitmq-server create Claim persistence-mcs-services-rabbitmq-server-0 for Pod mcs-services-rabbitmq-server-0 in StatefulSet mcs-services-rabbitmq-server failed error: persistentvolumeclaims "persistence-mcs-services-rabbitmq-server-0" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
Expected behavior
A rabbitmqCluster should be successfully created on OpenShift
Version information
- RabbitMQ Cluster Operator: [0.7.0-build.41]
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working