Bug 1299742

Summary: Fail to install containerized environment with non-root user
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: InstallerAssignee: Andrew Butcher <abutcher>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: aos-bugs, atal, bleanhar, jokerman, mmccomas, xiama, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 12:57:33 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:

Description Ma xiaoqiang 2016-01-19 07:37:15 UTC
Description of problem:
Fail to install containerized environment with non-root user

Version-Release number of selected component (if applicable):
openshift-ansible-3.0.35-1.git.0.6a386dd.el7aos.noarch

How reproducible:
always

Steps to Reproduce:
1. Install contaierized environment on rhel7 or atomic with non-root user
<--snip-->
ansible_ssh_user=install
deployment_type=openshift-enterprise
ansible_sudo=true
containerized=true
<--snip-->

Actual results:
TASK: [openshift_master | Create the policy file if it does not already exist] *** 
failed: [openshift-138.lab.eng.nay.redhat.com] => {"cmd": "oadm create-bootstrap-policy-file --filename=/etc/origin/master/policy.json", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting


Expected results:
Install environment successfully.

Additional info:

Comment 1 Brenton Leanhardt 2016-01-20 13:20:42 UTC
For QE,

Would you mind testing this using master from https://github.com/openshift/openshift-ansible ?

You can use the same Ansible inventory generated by atomic-openshift-installer but instead of having it start the ansible run simply run it manually and point it to the byo config playbook.

Comment 4 Ma xiaoqiang 2016-01-22 00:49:42 UTC
yeah, the master branch works fine.

Comment 5 Brenton Leanhardt 2016-01-22 13:56:17 UTC
Great.  We'll include this in an upcoming ASYNC advisory once we get 3.1.1 out the door.

Comment 7 errata-xmlrpc 2016-02-29 12:57:33 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-2016:0311

Comment 8 Gaoyun Pei 2016-03-04 03:23:25 UTC
*** Bug 1312768 has been marked as a duplicate of this bug. ***