etcd: Add support for more scenarios
This commit addresses a few shortcomings in the etcd service: * Adding or removing etcd nodes required manual intervention. * The etcd service would have brief outages during upgrades or reconfigures because restarts weren't always serialised. This makes the etcd service follow a similar pattern to mariadb: * There is now a distiction between bootstrapping the cluster and adding / removing another member. * This more closely follows etcd's upstream bootstrapping guidelines. * The etcd role now serialises restarts internally so the kolla_serial pattern is no longer appropriate (or necessary). This does not remove the need for manual intervention in all failure modes: the documentation has been updated to address the most common issues. Note that there's repetition in the container specifications: this is somewhat deliberate. In a future cleanup, it's intended to reduce the duplication. Change-Id: I39829ba0c5894f8e549f9b83b416e6db4fafd96f
Showing
- ansible/roles/etcd/defaults/main.yml 12 additions, 4 deletionsansible/roles/etcd/defaults/main.yml
- ansible/roles/etcd/handlers/main.yml 56 additions, 13 deletionsansible/roles/etcd/handlers/main.yml
- ansible/roles/etcd/tasks/bootstrap.yml 25 additions, 0 deletionsansible/roles/etcd/tasks/bootstrap.yml
- ansible/roles/etcd/tasks/bootstrap_cluster.yml 60 additions, 0 deletionsansible/roles/etcd/tasks/bootstrap_cluster.yml
- ansible/roles/etcd/tasks/bootstrap_services.yml 55 additions, 0 deletionsansible/roles/etcd/tasks/bootstrap_services.yml
- ansible/roles/etcd/tasks/deploy.yml 2 additions, 0 deletionsansible/roles/etcd/tasks/deploy.yml
- ansible/roles/etcd/tasks/lookup_cluster.yml 26 additions, 0 deletionsansible/roles/etcd/tasks/lookup_cluster.yml
- ansible/roles/etcd/tasks/lookup_leader.yml 41 additions, 0 deletionsansible/roles/etcd/tasks/lookup_leader.yml
- ansible/roles/etcd/tasks/remove_deleted_members.yml 39 additions, 0 deletionsansible/roles/etcd/tasks/remove_deleted_members.yml
- ansible/roles/etcd/tasks/restart_services.yml 25 additions, 0 deletionsansible/roles/etcd/tasks/restart_services.yml
- ansible/site.yml 0 additions, 1 deletionansible/site.yml
- doc/source/admin/etcd.rst 97 additions, 0 deletionsdoc/source/admin/etcd.rst
- doc/source/admin/index.rst 1 addition, 0 deletionsdoc/source/admin/index.rst
- doc/source/user/adding-and-removing-hosts.rst 8 additions, 0 deletionsdoc/source/user/adding-and-removing-hosts.rst
- etc/kolla/globals.yml 7 additions, 0 deletionsetc/kolla/globals.yml
- releasenotes/notes/managed-etcd-72fb2d3fbba516d9.yaml 12 additions, 0 deletionsreleasenotes/notes/managed-etcd-72fb2d3fbba516d9.yaml
- tests/setup_gate.sh 1 addition, 1 deletiontests/setup_gate.sh
- tests/templates/globals-default.j2 4 additions, 0 deletionstests/templates/globals-default.j2
Loading
Please register or sign in to comment