summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-02-15 12:00:48 -0500
committerSamuel Munilla <smunilla@redhat.com>2016-02-15 12:04:08 -0500
commitd135ccbbdd2f055a25ff168c6b140add0e8f5d73 (patch)
treeb4a74198a1ebb371c952e8782a306666276d452a
parentce306085ee0b8667dbba90e3a95199ce066c38d4 (diff)
downloadopenshift-d135ccbbdd2f055a25ff168c6b140add0e8f5d73.tar.gz
openshift-d135ccbbdd2f055a25ff168c6b140add0e8f5d73.tar.bz2
openshift-d135ccbbdd2f055a25ff168c6b140add0e8f5d73.tar.xz
openshift-d135ccbbdd2f055a25ff168c6b140add0e8f5d73.zip
a-o-i: Count nativeha hosts as "installed" for scaleup
-rw-r--r--utils/src/ooinstall/cli_installer.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index e1047e700..9839bf447 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -526,10 +526,14 @@ Add new nodes here
def get_installed_hosts(hosts, callback_facts):
installed_hosts = []
for host in hosts:
- if(host.connect_to in callback_facts.keys()
- and 'common' in callback_facts[host.connect_to].keys()
- and callback_facts[host.connect_to]['common'].get('version', '')
- and callback_facts[host.connect_to]['common'].get('version', '') != 'None'):
+ if host.connect_to in callback_facts.keys() and (
+ ('common' in callback_facts[host.connect_to].keys() and
+ callback_facts[host.connect_to]['common'].get('version', '') and
+ callback_facts[host.connect_to]['common'].get('version', '') != 'None') \
+ or
+ ('master' in callback_facts[host.connect_to].keys() and
+ callback_facts[host.connect_to]['master'].get('cluster_method', '') == 'native')
+ ):
installed_hosts.append(host)
return installed_hosts