summaryrefslogtreecommitdiffstats
path: root/roles/etcd_migrate/README.md
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-18 19:25:04 -0400
committerGitHub <noreply@github.com>2017-06-18 19:25:04 -0400
commitd7be27f7f9321099e52b54afcce2308ac1e1671f (patch)
treedd840473d179259b098d651da0ad73bb642901ce /roles/etcd_migrate/README.md
parente2840e8ab50215eb7603a832f2f729d873e5a811 (diff)
parent0fc47e5030577479be08126818dd2b5b5ccdf995 (diff)
downloadopenshift-d7be27f7f9321099e52b54afcce2308ac1e1671f.tar.gz
openshift-d7be27f7f9321099e52b54afcce2308ac1e1671f.tar.bz2
openshift-d7be27f7f9321099e52b54afcce2308ac1e1671f.tar.xz
openshift-d7be27f7f9321099e52b54afcce2308ac1e1671f.zip
Merge pull request #3954 from ingvagabund/etcd-migrate
Merged by openshift-bot
Diffstat (limited to 'roles/etcd_migrate/README.md')
-rw-r--r--roles/etcd_migrate/README.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/etcd_migrate/README.md b/roles/etcd_migrate/README.md
new file mode 100644
index 000000000..369e78ff2
--- /dev/null
+++ b/roles/etcd_migrate/README.md
@@ -0,0 +1,53 @@
+Role Name
+=========
+
+Offline etcd migration of data from v2 to v3
+
+Requirements
+------------
+
+It is expected all consumers of the etcd data are not accessing the data.
+Otherwise the migrated data can be out-of-sync with the v2 and can result in unhealthy etcd cluster.
+
+The role itself is responsible for:
+- checking etcd cluster health and raft status before the migration
+- checking of presence of any v3 data (in that case the migration is stopped)
+- migration of v2 data to v3 data (including attaching leases of keys prefixed with "/kubernetes.io/events" and "/kubernetes.io/masterleases" string)
+- validation of migrated data (all v2 keys and in v3 keys and are set to the identical value)
+
+The migration itself requires an etcd member to be down in the process. Once the migration is done, the etcd member is started.
+
+Role Variables
+--------------
+
+TBD
+
+Dependencies
+------------
+
+- etcd_common
+- lib_utils
+
+Example Playbook
+----------------
+
+```yaml
+- name: Migrate etcd data from v2 to v3
+ hosts: oo_etcd_to_config
+ gather_facts: no
+ tasks:
+ - include_role:
+ name: openshift_etcd_migrate
+ vars:
+ etcd_peer: "{{ ansible_default_ipv4.address }}"
+```
+
+License
+-------
+
+Apache License, Version 2.0
+
+Author Information
+------------------
+
+Jan Chaloupka (jchaloup@redhat.com)