Bug 1387704

Summary: Installer fails when installing 1 rpm master and 1 container master.
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-09 02:53: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:

Description Ryan Howe 2016-10-21 15:24:57 UTC
Description of problem:

We are using the facts that get set for a containerized master and the delegating the task to the RPM master. The openshift.common.client_binary is set differently for containerized vs RPM installs. 

RPM:  /usr/bin/oadm
Containerized: /usr/local/bin/oadm

We first fail on task openshift_master_certificates


Version-Release number of selected component (if applicable):
3.3 

How reproducible:
100%

Steps to Reproduce:
 - Set master1 to RPM install, set master2 to containerized install 
 - Run installer fail on task openshift_master_certificates


Additional info:
Suggested fix: 
1. Create a symbolic link on 1st master 
   # ln -s /usr/local/bin/oadm /usr/bin/openshift

2. ensure the fact, client_binary, used is for the openshift_ca_host hostvars[openshift_ca_host].openshift.common.client_binary


TASK WHERE WE FAIL: 

https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_master_certificates/tasks/main.yml#L53-L65

TASK [openshift_master_certificates : Create the master certificates if they do not already exist] ***
skipping: [master-1.example.com]
fatal: [master-2.example.com -> master-1.example.com]: FAILED! => {"changed": false, "cmd": "/usr/local/bin/oadm create-master-certs --hostnames=kubernetes.default,kubernetes,master-2.example.com,openshift.public.example.com,openshift.example.com,openshift.default.svc,ope
nshift.default,172.30.0.1,192.168.0.5,openshift.default.svc.cluster.local,kubernetes.default.svc,kubernetes.default.svc.cluster.local,openshift --master=https://openshift.example.com --public-master=https://openshift.public.example.com --cert-dir=/etc/origin/generated-con
figs/master-master-2.example.com --overwrite=false", "failed": true, "msg": "[Errno 2] No such file or directory", "rc": 2}

Comment 1 Johnny Liu 2017-01-20 05:46:47 UTC
Seem like this is dup with 1364160

Comment 2 Scott Dodson 2017-06-09 02:53:40 UTC
Agree this is a duplicate of 1364160

*** This bug has been marked as a duplicate of bug 1364160 ***

Comment 3 Scott Dodson 2017-06-09 02:54:23 UTC

*** This bug has been marked as a duplicate of bug 1397530 ***