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

Unable to start osd prepare job due to missing PSP capability #9438

Closed
y1r opened this issue Dec 16, 2021 · 0 comments · Fixed by #9439
Closed

Unable to start osd prepare job due to missing PSP capability #9438

y1r opened this issue Dec 16, 2021 · 0 comments · Fixed by #9439
Labels
Projects

Comments

@y1r
Copy link
Contributor

y1r commented Dec 16, 2021

Is this a bug report or feature request?

  • Bug Report

Deviation from expected behavior:
Preparing OSD job cannot create pods due to PodSecurityPolicy. Following events are occuring:

Events:
  Type     Reason        Age               From            Message
  ----     ------        ----              ----            -------
  Warning  FailedCreate  6s (x3 over 39s)  job-controller  Error creating: pods "rook-ceph-osd-prepare-set1-data-128zvj--1-" is forbidden: PodSecurityPolicy: unable to admit pod: [spec.initContainers[1].securityC
ontext.capabilities.add: Invalid value: "MKNOD": capability may not be added]

I think adding CAP_MKNOD to 00-rook-priviledged will solve the issue.

Expected behavior:
Preparing OSD pods are created.

How to reproduce it (minimal and precise):

File(s) to submit:

  • Cluster CR (custom resource), typically called cluster.yaml, if necessary
  • Operator's logs, if necessary
  • Crashing pod(s) logs, if necessary

To get logs, use kubectl -n <namespace> logs <pod name>
When pasting logs, always surround them with backticks or use the insert code button from the Github UI.
Read Github documentation if you need help.

Environment:

  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Cloud provider or hardware configuration:
  • Rook version (use rook version inside of a Rook Pod): v1.8.0
  • Storage backend version (e.g. for ceph do ceph -v):
  • Kubernetes version (use kubectl version): Kubernetes 1.22.3
  • Kubernetes cluster type (e.g. Tectonic, GKE, OpenShift): On-premise with PSP
  • Storage backend status (e.g. for Ceph use ceph health in the Rook Ceph toolbox):
@y1r y1r added the bug label Dec 16, 2021
@y1r y1r changed the title Unable to start osd prepare job due to missing PSP capabilitiy Unable to start osd prepare job due to missing PSP capability Dec 16, 2021
@y1r y1r mentioned this issue Dec 16, 2021
10 tasks
@leseb leseb added this to To do in v1.8 via automation Dec 16, 2021
@leseb leseb moved this from To do to Review in progress in v1.8 Dec 16, 2021
v1.8 automation moved this from Review in progress to Done Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v1.8
Done
Development

Successfully merging a pull request may close this issue.

1 participant