Bug 2063327 - MCO template output directories created with wrong mode causing render failure in unprivileged container environments
Summary: MCO template output directories created with wrong mode causing render failur...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Machine Config Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.z
Assignee: Dan Mace
QA Contact: Rio Liu
URL:
Whiteboard:
Depends On: 2063326
Blocks: 2063328
TreeView+ depends on / blocked
 
Reported: 2022-03-11 19:35 UTC by OpenShift BugZilla Robot
Modified: 2022-04-20 14:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-20 14:49:50 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-config-operator pull 3013 0 None open Bug 2063327: [release-4.9] Ensure directories are created with usable permission bits 2022-03-14 20:00:32 UTC
Red Hat Product Errata RHSA-2022:1363 0 None None None 2022-04-20 14:50:24 UTC

Description OpenShift BugZilla Robot 2022-03-11 19:35:07 UTC
+++ This bug was initially created as a clone of Bug #2063326 +++

+++ This bug was initially created as a clone of Bug #2063324 +++

Description of problem:

While integrating with HyperShift which executes MCO binaries in unprivileged containers, I discovered the MCO template execution is creating a parent output directory with mode 0655, which causes rendering to fail because subdirectories and files can't be created within that parent due to the missing executable bit for the owner.

Version-Release number of MCO (Machine Config Operator) (if applicable): 4.11

Platform (AWS, VSphere, Metal, etc.): All

Are you certain that the root cause of the issue being reported is the MCO (Machine Config Operator)?
(Y/N/Not sure): Yes

Steps to Reproduce:

Run `machine-config-operator bootstrap ... --dest-dir=/output`.

Actual results:

Resulting destination directory has mode `drw-r-xr-x`.

Expected results:

Destination directory should have mode `drwxr-xr-x`.

Comment 8 errata-xmlrpc 2022-04-20 14:49:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.29 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1363


Note You need to log in before you can comment on or make changes to this bug.