Skip to content

Cannot create RMQ instance on Openshift #234

@harshac

Description

@harshac

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:

  1. Download the release files and extracted them to our local workspace
  2. Follow the steps to install the operator using Kubectl (not Helm) from here
  3. 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
  4. Confirm Operator should be installed successfully
  5. Confirm CR is available following instructions from here
  6. 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
  1. 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
  1. 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

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions