redhat-cip / config-tools

Config Tools
8 stars 11 forks source link

config.tmpl: Sort hosts in config template backport I.1.3 #73

Closed dsavineau closed 9 years ago

dsavineau commented 9 years ago

In most of cases we use ordered numbers with hostname and we use the first controller as the galera master node.

Currently the host list generated is not sorted so we are not sure that the first controller will be the first to run puppet. In that case we need to wait the galera bootstrap timeout on the other controller nodes (~10min).

./generate.py 0 global.yml config.tmpl (...) HOSTS="install-server node302 node300 node301 node306 node307 "

This patch allow to sort the host list and reduce the time on step 1 for the galera bootstrap.

./generate.py 0 global.yml config.tmpl (...) HOSTS="install-server node300 node301 node302 node306 node307 "

(cherry picked from commit d39a6f7faeab1c12c209bc59106f1cae6850fe4e)

EmilienM commented 9 years ago

Some Ansible playbooks may break since orchestration have been prepared for the opposite way. I merge it to I.1.3 but keep in mind some orchestrations issues could happen during MySQL upgrade.

Thanks