Skip to content

Commit

Permalink
Get back check for add master node count
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina Chernova committed Jul 12, 2018
1 parent 8192129 commit ea022e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kqueen/engines/openstack_kubespray.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,10 @@ def validate_ip(address):
ipaddress.ip_address(address)
return address

self.meta["master_count"] = self.cluster.metadata["master_count"]
mc = self.cluster.metadata["master_count"]
if mc % 2 == 0:
raise ValueError("Master node count must be an odd number at least 3 or greater")
self.meta["master_count"] = mc
self.meta["slave_count"] = self.cluster.metadata["slave_count"]

self.meta["dns"] = [validate_ip(ip) for ip in
Expand Down

0 comments on commit ea022e3

Please sign in to comment.