Bug 1278706 - Suggest adding new added openshift_master_ha to ansible hosts example file
Summary: Suggest adding new added openshift_master_ha to ansible hosts example file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-06 08:49 UTC by Johnny Liu
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-29 20:58:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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