Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/rabbitmq-cluster-operator] INSTALLATION FAILED: "rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator" already exists #27322

Closed
mrlioncub opened this issue Jun 18, 2024 · 2 comments
Assignees
Labels
rabbitmq-cluster-operator solved tech-issues The user has a technical issue about an application

Comments

@mrlioncub
Copy link

Name and Version

bitnam/rabbitmq-cluster-operator 4.3.7

What architecture are you using?

amd64

What steps will reproduce the bug?

Install with watchAllNamespaces=false:

helm install rabbitmq-cluster-operator bitnami/rabbitmq-cluster-operator --set clusterOperator.watchAllNamespaces=false --set clusterOperator.watchNamespaces={rabbitmq}  --set msgTopologyOperator.watchAllNamespaces=false --set msgTopologyOperator.watchNamespaces={rabbitmq}

Are you using any custom parameters or values?

--set clusterOperator.watchAllNamespaces=false --set clusterOperator.watchNamespaces={rabbitmq} \
--set msgTopologyOperator.watchAllNamespaces=false --set msgTopologyOperator.watchNamespaces={rabbitmq}

What is the expected behavior?

No response

What do you see instead?

Error: INSTALLATION FAILED: 1 error occurred:
* rolebindings.rbac.authorization.k8s.io "rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator" already exists

Additional information

No response

@mrlioncub mrlioncub added the tech-issues The user has a technical issue about an application label Jun 18, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 18, 2024
@javsalgar javsalgar changed the title INSTALLATION FAILED: "rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator" already exists [bitnami/rabbitmq-cluster-operator] INSTALLATION FAILED: "rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator" already exists Jun 18, 2024
@github-actions github-actions bot removed the triage Triage is needed label Jun 18, 2024
@github-actions github-actions bot assigned fmulero and unassigned javsalgar Jun 18, 2024
@fmulero
Copy link
Collaborator

fmulero commented Jun 18, 2024

Hi @mrlioncub, thanks for using bitnami/charts and sharing this issue.

I've just reproduced the problem and it is related with the size of the names for the role bindings here:

kind: RoleBinding
apiVersion: {{ include "common.capabilities.rbac.apiVersion" $ }}
metadata:
name: {{ printf "%s-%s" (include "rmqco.msgTopologyOperator.fullname" $) $namespace | trunc 63 | trimSuffix "-" }}
namespace: {{ $namespace | quote }}

The template include "rmqco.msgTopologyOperator.fullname" $ return in your example the name rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator which already have 63 characters. As workaround you could use a shorter name for your release, something like rmqco could fit

@mrlioncub
Copy link
Author

Thanks. A shorter name works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rabbitmq-cluster-operator solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

3 participants