diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2017-10-16 08:28:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 08:28:27 -0700 |
commit | 7359d9902a2d7d701c0e32d6bc6a341b3eea4e13 (patch) | |
tree | 1841801f551b28618f0e96d38a6f2f97eadaa5cc /playbooks/common/openshift-etcd | |
parent | 27321df000f4789fa3876fdb43e4b083fe55bdcb (diff) | |
parent | 8b45cff69c9ab5f99ef57911a483da5d8bd13c72 (diff) | |
download | openshift-7359d9902a2d7d701c0e32d6bc6a341b3eea4e13.tar.gz openshift-7359d9902a2d7d701c0e32d6bc6a341b3eea4e13.tar.bz2 openshift-7359d9902a2d7d701c0e32d6bc6a341b3eea4e13.tar.xz openshift-7359d9902a2d7d701c0e32d6bc6a341b3eea4e13.zip |
Merge pull request #5733 from ingvagabund/data-migrate-of-embedded-etcd-not-allowed
Automatic merge from submit-queue.
data migration of embedded etcd not allowed
The v2->v3 migration of an embedded etcd is depricated. Instead, one needs to run:
1. `playbooks/byo/openshift-etcd/embedded2external.yml` to migrate the embedded etcd to an external one (see https://github.com/openshift/openshift-ansible/pull/5672)
2. then `playbooks/byo/openshift-etcd/migrate.yml` to migrate the v2 data to v3 data
Diffstat (limited to 'playbooks/common/openshift-etcd')
-rw-r--r-- | playbooks/common/openshift-etcd/migrate.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/playbooks/common/openshift-etcd/migrate.yml b/playbooks/common/openshift-etcd/migrate.yml index 2456ad3a8..31362f2f6 100644 --- a/playbooks/common/openshift-etcd/migrate.yml +++ b/playbooks/common/openshift-etcd/migrate.yml @@ -1,4 +1,17 @@ --- +- name: Check if the master has embedded etcd + hosts: localhost + connection: local + become: no + gather_facts: no + tags: + - always + tasks: + - fail: + msg: "Migration of an embedded etcd is not supported. Please, migrate the embedded etcd into an external etcd first." + when: + - groups.oo_etcd_to_config | default([]) | length == 0 + - name: Run pre-checks hosts: oo_etcd_to_migrate tasks: @@ -60,12 +73,11 @@ hosts: oo_etcd_to_migrate gather_facts: no pre_tasks: - - set_fact: - l_etcd_service: "{{ 'etcd_container' if openshift.common.is_containerized else 'etcd' }}" - - name: Disable etcd members - service: - name: "{{ l_etcd_service }}" - state: stopped + - include_role: + name: etcd + tasks_from: disable_etcd + vars: + r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}" - name: Migrate data on first etcd hosts: oo_etcd_to_migrate[0] |