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:
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
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.
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
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