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

full-monte backpack collection fails because of privileged pods #8

Open
bengland2 opened this issue May 15, 2020 · 1 comment
Open

Comments

@bengland2
Copy link
Contributor

I tried following your e-mail instructions, after doing

# oc apply -f backpack_role.yaml

which succeeded, I used this CR snippet:

spec:
  metadata: 
    collection: true
    targeted: false
    privileged: true
    serviceaccount: "backpack-view"
    label:
      - [ 'cluster.ocs.openshift.io/openshift-storage', '' ]

And it fails with the error:

# ocmr describe daemonset.apps/backpack-81808487
...
  Warning  FailedCreate  75s (x15 over 2m37s)  daemonset-controller  Error creating: pods "backpack-81808487-" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]

You said to update the "privileged" scc, but I'm not sure what change to make there. Thanks -ben

@jtaleric
Copy link
Member

I think the backpack work now applies the right SCC/RBAC to run privileged pods... @dry923 can confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants