diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2015-12-01 10:06:48 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2015-12-01 10:06:48 -0400 |
commit | 1b770dff59abc23e93eecfb76c4b10dc9e2dafe2 (patch) | |
tree | 1bdb07b4cbde05e62d5932b2acd4838513e116a1 | |
parent | 098833f05200258259e2fdb59084c07a2472fac0 (diff) | |
download | openshift-1b770dff59abc23e93eecfb76c4b10dc9e2dafe2.tar.gz openshift-1b770dff59abc23e93eecfb76c4b10dc9e2dafe2.tar.bz2 openshift-1b770dff59abc23e93eecfb76c4b10dc9e2dafe2.tar.xz openshift-1b770dff59abc23e93eecfb76c4b10dc9e2dafe2.zip |
Add warning for HA deployments with < 3 dedicated nodes.
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index ee962c21a..31e8cb147 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -172,30 +172,34 @@ def print_host_summary(hosts): click.echo("") if len(masters) == 1: - click.echo("NOTE: Add a total of 3 or more Masters to perform an HA" - " installation.") + ha_hint_message = """ +NOTE: Add a total of 3 or more Masters to perform an HA installation.""" + click.echo(ha_hint_message) elif len(masters) == 2: min_masters_message = """ WARNING: A minimum of 3 masters are required to perform an HA installation. -Please add one more to proceed. -""" +Please add one more to proceed.""" click.echo(min_masters_message) elif len(masters) >= 3: ha_message = """ NOTE: Multiple Masters specified, this will be an HA deployment with a separate etcd cluster. You will be prompted to provide the FQDN of a load balancer once -finished entering hosts. -""" +finished entering hosts.""" click.echo(ha_message) dedicated_nodes_message = """ WARNING: Dedicated Nodes are recommended for an HA deployment. If no dedicated Nodes are specified, each configured Master will be marked as a schedulable -Node. -""" +Node.""" + + min_ha_nodes_message = """ +WARNING: A minimum of 3 dedicated Nodes are recommended for an HA +deployment.""" dedicated_nodes = [host for host in hosts if host.node and not host.master] if len(dedicated_nodes) == 0: click.echo(dedicated_nodes_message) + elif len(dedicated_nodes) < 3: + click.echo(min_ha_nodes_message) click.echo('') |