Deployment fails due to SELinux permissions issue

Solution In Progress - Updated -


Deployments fails with what it seems to be related to SELinux permissions or configuration:

$ oc logs mongodb-1
ERROR: Couldn't write into /var/lib/mongodb/data
CAUSE: current user doesn't have permissions for writing to /var/lib/mongodb/data directory
DETAILS: current user id = 184, user groups: 997 0
DETAILS: directory permissions: drwxrwxrwx owned by 0:0, SELinux: system_u:object_r:svirt_sandbox_file_t:s0:c7,c8


OpenShift Container Platform 3.6

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