SUSE / caasp-salt

A collection of salt states used to provision a kubernetes cluster
Apache License 2.0
64 stars 29 forks source link

Force `etc-hosts` sls to be run before `etcd` #591

Closed ereslibre closed 6 years ago

ereslibre commented 6 years ago

Before the real update orchestration happens we are updating etcd certificates, so this machine isn't left isolated. However, in this process, the configuration for etcd might refer to the new machine names if this happens during the upgrade of 2.0 to 3.0. This might leave the etcd instances in a state in which they cannot resolve other etcd peer names (because their /etc/hosts file is outdated).

In order to prevent this, force the etc-hosts sls to be run before we execute the etcd sls, so we are sure that /etc/hosts will contain both the old and the new names during the upgrade, and etcd will be able to refer to other peers using the new hostnames.

Fixes: bsc#1096750