summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-09-14 14:15:11 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-09-14 14:19:02 -0400
commit522a069d21b6557821bd85aa77ecfee43cf7c549 (patch)
treee771a0d7939a41c3d9d63a7b98a2ff5146afb69f
parent872aafbe7a65388c473d125095ae60fc9ae915a4 (diff)
downloadopenshift-522a069d21b6557821bd85aa77ecfee43cf7c549.tar.gz
openshift-522a069d21b6557821bd85aa77ecfee43cf7c549.tar.bz2
openshift-522a069d21b6557821bd85aa77ecfee43cf7c549.tar.xz
openshift-522a069d21b6557821bd85aa77ecfee43cf7c549.zip
a-o-i: Don't set unschedulable nodes as infra
Make sure we don't set an unschedulable node as infra as that can cause problems. Fixes: Bug 1375946
-rw-r--r--utils/src/ooinstall/cli_installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index dd17fbf89..2ec2b4137 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -791,7 +791,7 @@ def set_infra_nodes(hosts):
if all(host.is_master() for host in hosts):
infra_list = hosts
else:
- nodes_list = [host for host in hosts if host.is_node()]
+ nodes_list = [host for host in hosts if host.is_schedulable_node(hosts)]
infra_list = nodes_list[:2]
for host in infra_list: