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

Fix testcase, test_respin_app_pod_exported_nfs_volume_incluster #10768

Open
amr1ta opened this issue Oct 29, 2024 · 1 comment
Open

Fix testcase, test_respin_app_pod_exported_nfs_volume_incluster #10768

amr1ta opened this issue Oct 29, 2024 · 1 comment
Assignees

Comments

@amr1ta
Copy link
Contributor

amr1ta commented Oct 29, 2024

Fix testcase, test_respin_app_pod_exported_nfs_volume_incluster. Currently It is failing to find the pod, 'nfs-test-pod' is not getting created successfully.

@amr1ta amr1ta self-assigned this Oct 29, 2024
@amr1ta
Copy link
Contributor Author

amr1ta commented Oct 29, 2024

It is failing to create the test pod in 'openshift-storage' namespace due to error,

reason: FailedCreate
      message: 'pods "nfs-test-pod-56c77dcfd6-" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, provider restricted-v2: .containers[0].privileged: Invalid value: true: Privileged containers are not allowed, provider "restricted": Forbidden: not usable by user or serviceaccount, provider "nonroot-v2": Forbidden: not usable by user or serviceaccount, provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "noobaa-core": Forbidden: not usable by user or serviceaccount, provider "noobaa-db": Forbidden: not usable by user or serviceaccount, provider "noobaa-endpoint": Forbidden: not usable by user or serviceaccount, provider "noobaa": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount, provider "hostnetwork-v2": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "rook-ceph": Forbidden: not usable by user or serviceaccount, provider "rook-ceph-csi": Forbidden: not usable by user or serviceaccount, provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount]'
      

Below code is causing this issue,

securityContext:
         capabilities: {}
         privileged: true

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

No branches or pull requests

1 participant