Bug 1286936 - Can not create master certificates when installing env on Atomic host
Summary: Can not create master certificates when installing env on Atomic host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks: 1280169
TreeView+ depends on / blocked
 
Reported: 2015-12-01 06:39 UTC by Ma xiaoqiang
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-27 19:42:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0075 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-01-28 00:42:22 UTC

Description Ma xiaoqiang 2015-12-01 06:39:54 UTC
Description of problem:
Can not create master certificates when installing env on Atomic host

Version-Release number of selected component (if applicable):
https://github.com/sdodson/openshift-ansible containers

How reproducible:
Always


Steps to Reproduce:

1. Install env on Atomic host
#ansible-playbook -i hosts  containers/playbooks/byo/config.yml  -v


Actual results:
TASK: [openshift_master_ca | Create the master certificates if they do not already exist] *** 
failed: [10.66.79.126] => {"cmd": "oadm create-master-certs --hostnames=10.66.79.126,kubernetes.default,kubernetes,openshift.default.svc,openshift.default,openshift-126.lab.eng.nay.redhat.com,192.168.0.105,172.30.0.1,openshift.default.svc.cluster.local,kubernetes.default.svc,kubernetes.default.svc.cluster.local,openshift --master=https://openshift-126.lab.eng.nay.redhat.com:8443 --public-master=https://openshift-126.lab.eng.nay.redhat.com:8443 --cert-dir=/etc/origin/master --overwrite=false", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting

Expected results:
Install env successfully

Additional info:

Comment 1 Scott Dodson 2015-12-02 17:02:15 UTC
containers branch has been updated to add openshift_cli dependency to openshift_master_ca role ensuring that oadm is installed before attempting to create certs.

commit: https://github.com/openshift/openshift-ansible/commit/83c050745cd9bcbac2202b0e685c0e71cbeb29fa

Comment 2 Ma xiaoqiang 2015-12-03 03:02:19 UTC
check again

TASK: [openshift_master_ca | Install the base package for admin tooling] ****** 
failed: [10.66.79.148] => {"cmd": "/usr/bin/yum -d 2 -y install atomic-openshift", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting

User have no permission to install package on Atomic host.

Comment 3 Scott Dodson 2015-12-03 15:01:13 UTC
Ma,

Can you post your hosts file and the output of the following? The task you've listed should be skipped for containerized installs so I wonder if somehow the facts are getting set wrong?

ansible-playbook -i /path/to/inventory playbooks/byo/openshift_facts.yml

Also, lets check that you're on the right commit?
git describe  from your openshift-ansible checkout

Comment 7 errata-xmlrpc 2016-01-27 19:42:56 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:0075


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