From 94bcc154b85092fc4b85915b36f94b138a91e9b6 Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Thu, 23 Mar 2017 10:30:06 -0400 Subject: Added 3.5 -> 3.6 upgrade playbooks --- .../openshift-cluster/upgrades/v3_6/filter_plugins | 1 + playbooks/common/openshift-cluster/upgrades/v3_6/roles | 1 + .../upgrades/v3_6/storage_upgrade.yml | 18 ++++++++++++++++++ .../openshift-cluster/upgrades/v3_6/validator.yml | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 120000 playbooks/common/openshift-cluster/upgrades/v3_6/filter_plugins create mode 120000 playbooks/common/openshift-cluster/upgrades/v3_6/roles create mode 100644 playbooks/common/openshift-cluster/upgrades/v3_6/storage_upgrade.yml create mode 100644 playbooks/common/openshift-cluster/upgrades/v3_6/validator.yml (limited to 'playbooks/common/openshift-cluster') diff --git a/playbooks/common/openshift-cluster/upgrades/v3_6/filter_plugins b/playbooks/common/openshift-cluster/upgrades/v3_6/filter_plugins new file mode 120000 index 000000000..7de3c1dd7 --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/v3_6/filter_plugins @@ -0,0 +1 @@ +../../../../../filter_plugins/ \ No newline at end of file diff --git a/playbooks/common/openshift-cluster/upgrades/v3_6/roles b/playbooks/common/openshift-cluster/upgrades/v3_6/roles new file mode 120000 index 000000000..415645be6 --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/v3_6/roles @@ -0,0 +1 @@ +../../../../../roles/ \ No newline at end of file diff --git a/playbooks/common/openshift-cluster/upgrades/v3_6/storage_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_6/storage_upgrade.yml new file mode 100644 index 000000000..48c69eccd --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/v3_6/storage_upgrade.yml @@ -0,0 +1,18 @@ +--- +############################################################################### +# Post upgrade - Upgrade job storage +############################################################################### +- name: Upgrade job storage + hosts: oo_first_master + roles: + - { role: openshift_cli } + vars: + # Another spot where we assume docker is running and do not want to accidentally trigger an unsafe + # restart. + skip_docker_role: True + tasks: + - name: Upgrade job storage + command: > + {{ openshift.common.client_binary }} adm --config={{ openshift.common.config_base }}/master/admin.kubeconfig + migrate storage --include=jobs --confirm + run_once: true diff --git a/playbooks/common/openshift-cluster/upgrades/v3_6/validator.yml b/playbooks/common/openshift-cluster/upgrades/v3_6/validator.yml new file mode 100644 index 000000000..ac5704f69 --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/v3_6/validator.yml @@ -0,0 +1,10 @@ +--- +############################################################################### +# Pre upgrade checks for known data problems, if this playbook fails you should +# contact support. If you're not supported contact users@lists.openshift.com +############################################################################### +- name: Verify 3.6 specific upgrade checks + hosts: oo_first_master + roles: + - { role: lib_openshift } + tasks: [] -- cgit v1.2.3