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

Cannot create Team on OpenShift 4.11.59 #223

Open
bastien-reinhardt opened this issue May 31, 2024 · 1 comment
Open

Cannot create Team on OpenShift 4.11.59 #223

bastien-reinhardt opened this issue May 31, 2024 · 1 comment
Labels
helm Improvements regarding the helm chart help wanted Extra attention is needed

Comments

@bastien-reinhardt
Copy link

Expected Behavior

Follow installation guide for Openshift and Multi-Juicer should work.

Current Behavior

Follow installation guide.
"Step: Creating a Team" does not work.

JuiceBalancer Pod Logs:
time="2024-05-31T07:47:47.425Z" level="info" msg="JuiceBalancer listening on port 3000!"
time="2024-05-31T07:50:20.649Z" level="info" msg="Team test doesn't have a JuiceShop deployment yet"
time="2024-05-31T07:50:20.741Z" level="info" msg="Reached 0/10 instances"
time="2024-05-31T07:50:23.533Z" level="info" msg="Creating JuiceShop Deployment for team 'test'"
time="2024-05-31T07:50:23.723Z" level="error" msg="Error while creating deployment or service for team test"
time="2024-05-31T07:50:23.723Z" level="error" msg="deployments.apps "t-test-juiceshop" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , "

Possible Solution

This solution works for me.
As per RedHat Solution add the "update" verb to the "deployments/finalizers" ressources on the "juice-balancer" namespace role.
The role should look like this:

rules:
  - verbs:
      - get
      - create
      - list
      - delete
      - patch
      - update
    apiGroups:
      - apps
    resources:
      - deployments
      - deployments/finalizers
  - verbs:
      - get
      - create
      - delete
    apiGroups:
      - ''
    resources:
      - services
  - verbs:
      - get
      - list
      - delete
    apiGroups:
      - ''
    resources:
      - pods

I hope this helps others :)

Cheers

@J12934
Copy link
Member

J12934 commented Jun 13, 2024

Hi @bastien-reinhardt

Thanks for the pointer. Could you maybe open a or adding this role to the chart?

This should not impact normal Kubernetes users and would make it easier for openshift users to install MJ 👍

@J12934 J12934 added the helm Improvements regarding the helm chart label Jun 13, 2024
@J12934 J12934 added the help wanted Extra attention is needed label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm Improvements regarding the helm chart help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants