Bug 1278706

Summary: Suggest adding new added openshift_master_ha to ansible hosts example file
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: InstallerAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED CURRENTRELEASE QA Contact: Ma xiaoqiang <xiama>
Severity: low Docs Contact:
Priority: medium    
Version: 3.1.0CC: aos-bugs, bleanhar, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-29 20:58:21 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:
Embargoed:

Description Johnny Liu 2015-11-06 08:49:02 UTC
Description of problem:
In openshift-ansible/inventory/byo/hosts.example, the following lines:

# Native high availbility cluster method with optional load balancer.
# If no lb group is defined installer assumes that a load balancer has
# been preconfigured. For installation the value of
# openshift_master_cluster_hostname must resolve to the load balancer
# or to one or all of the masters defined in the inventory if no load
# balancer is present.
#openshift_master_cluster_method=native
#openshift_master_cluster_hostname=openshift-ansible.test.example.com
#openshift_master_cluster_public_hostname=openshift-ansible.test.example.com

If user is following these lines to install native master ha, would encounter such error:
TASK: [openshift_master | fail ] ********************************************** 
failed: [test61.cluster.local] => {"failed": true}
msg: openshift_master_cluster_method must be set to either 'native' or 'pacemaker' for multi-master installations

FATAL: all hosts have already failed -- aborting

According to the above error message, user do not know where is wrong.
Dig into code, found need add one more parameter in ansilbe host file:
openshift_master_ha=True



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Brenton Leanhardt 2016-01-28 16:20:59 UTC
I think this has been fixed now.  Today I installed an native HA environment and openshift_master_ha=True was not needed.

Comment 3 Johnny Liu 2016-01-29 06:51:00 UTC
Verified this bug with latest openshift-ansible, and PASS.

Now no need to add "openshift_master_ha=True" in ansible host file when install native ha env.