Bug 1787445

Summary: /etc/passwd misconfigured in ansible-operator base image
Product: OpenShift Container Platform Reporter: Fabian von Feilitzsch <fabian>
Component: Operator SDKAssignee: Joe Lanford <jlanford>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: aos-bugs
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1787587 (view as bug list) Environment:
Last Closed: 2020-01-22 10:46:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1787587    
Bug Blocks:    

Description Fabian von Feilitzsch 2020-01-02 21:10:23 UTC
Description of problem:
/etc/passwd not properly configured on Ansible Operator base image

When we moved away from allowing CRI-O to handle builds, it looks like we didn't re-enable the user_setup script, which sets the permissions on /etc/passwd to prevent CRI-O from attempting to write to set it up.



Version-Release number of selected component (if applicable):
4.2.z

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
This also blocks all tests for the 4.2 Ansible Operator base image.

Comment 1 Fabian von Feilitzsch 2020-01-03 20:15:06 UTC
How reproducible:
100%

Steps to Reproduce:
1. Start any Ansible-based operator

Actual results:
It crashes do to permissions errors

Expected results:
It starts successfully

Comment 3 Fan Jia 2020-01-13 06:47:21 UTC
test result:

operator-sdk version: branch release 4.2  50b14bf4-dirty, commit: 50b14bf4705450bac99cc70730865c405be30567

generate one ansible operator "memcached" and run in 4.2 cluster success
#oc get deployment
NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
memcached-operator   1/1     1            1           3m47s
#oc get pods
NAME                                          READY   STATUS    RESTARTS   AGE
example-memcached-memcached-7db5f499d-c779w   1/1     Running   0          88s
example-memcached-memcached-7db5f499d-djjvj   1/1     Running   0          88s
example-memcached-memcached-7db5f499d-tbtxf   1/1     Running   0          88s
memcached-operator-f78969fdd-74lsh            2/2     Running   0          2m34s

Comment 5 errata-xmlrpc 2020-01-22 10:46:40 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, 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/RHBA-2020:0107