diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-24 15:05:27 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-24 16:33:12 -0500 |
commit | ed650557aef9bb1d18b755ffdf891fcb26bb20cb (patch) | |
tree | 3588c168c059d581fe44ae2463237ea15c9b58f3 /utils/src/ooinstall/cli_installer.py | |
parent | ba47106f21fd18c64c3a3bb89980a3e857fbd034 (diff) | |
download | openshift-ed650557aef9bb1d18b755ffdf891fcb26bb20cb.tar.gz openshift-ed650557aef9bb1d18b755ffdf891fcb26bb20cb.tar.bz2 openshift-ed650557aef9bb1d18b755ffdf891fcb26bb20cb.tar.xz openshift-ed650557aef9bb1d18b755ffdf891fcb26bb20cb.zip |
Properly setting scheduleability for HA Master scenarios
If the only Nodes we have are also on Masters we set the scheduleable.
Diffstat (limited to 'utils/src/ooinstall/cli_installer.py')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index 812a42795..c62461ad3 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -270,11 +270,11 @@ https://docs.openshift.org/latest/install_config/install/advanced_install.html#m """ confirm_continue(message) - nodes = [host.node for host in oo_cfg.hosts] + nodes = [host for host in oo_cfg.hosts if host.node] if len(masters) == len(nodes): message = """ No dedicated Nodes specified. By default, colocated Masters have their Nodes -set to unscheduleable. Continuing at this point will lable all nodes as +set to unscheduleable. Continuing at this point will label all nodes as scheduleable. """ confirm_continue(message) |