Bug 1387704 - Installer fails when installing 1 rpm master and 1 container master.
Summary: Installer fails when installing 1 rpm master and 1 container master.
Keywords:
Status: CLOSED DUPLICATE of bug 1397530
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-21 15:24 UTC by Ryan Howe
Modified: 2017-06-09 02:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-09 02:53:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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