OpenShift reports SELinux-related conflicts when creating Pods

Solution Verified - Updated -

Issue

SELinux related events observed when starting a Pod:

`SELinuxLabel ‘XXX’ conflicts with pod YYY that uses the same volume as this pod with SELinuxLabel ‘ZZZ’. If both pods land on the same node, only one of them may access the volume.`
`SELinuxLabel ‘XXX’ conflicts with another pod that uses the same volume as this pod with a different SELinuxLabel. If both pods land on the same node, only one of them may access the volume.`
`SELinuxChangePolicy ‘XXX’ conflicts with another pod that uses the same volume as this pod with a different SELinuxChangePolicy. If both pods land on the same node, only one of them may access the volume.`

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.20 and above

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content