Description of problem: openshift-ansible do not support containerized ha-master installation Check the playbooks 1. No haproxy package on Atomic host, and the playbooks do not install the package --- - name: Install haproxy action: "{{ ansible_pkg_mgr }} name=haproxy state=present" when: not openshift.common.is_containerized | bool 2. Can not find defined haproxy image in openshift_fact role master_image = 'openshift/origin' cli_image = master_image node_image = 'openshift/node' ovs_image = 'openshift/openvswitch' etcd_image = 'registry.access.redhat.com/rhel7/etcd' Version-Release number of selected component (if applicable): openshift-ansible master commit ID: 2a12b6a99db4e8f39da27770e397dfafe27c9547 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Can not install containerized ha-master env Expected results: playbooks support containerized ha-master Additional info:
Install ha-master env. QE met the following error: TASK: [haproxy | Configure haproxy] ******************************************* <--snip--> msg: Destination directory /etc/haproxy does not exist FATAL: all hosts have already failed -- aborting
This is being tracked here: https://trello.com/c/ggjBrhgO/169-support-containerized-haproxy-for-ha-environments-using-lb-hosts
Community contribution which deploys the load balancer using the existing haproxy image https://github.com/openshift/openshift-ansible/pull/3106
openshift-ansible-3.5.3-1 and newer should allow for containerized=true for lb hosts it makes use of the existing router image for haproxy.
Verified with openshift-ansible-3.5.45-1.git.0.eb0859b.el7.noarch Step: 1) Trigger installation with containerized Haproxy host #cat inventory_hosts <--snip--> openshift_master_console_port=443 openshift_master_api_port=443 [lb] openshift-xxx.com containerized=true Result: 1) Installation successfully 2) Docker was installed and Haproxy container run well on Haproxy host 3) Succeed to login Web console via haproxy hostname 4) S2I build succeed
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-2017:0903