Browse Source

Merge pull request #3367 from soltysh/upgrade_jobs

Add upgrade job step after the entire upgrade performs
Scott Dodson 8 years ago
parent
commit
67b714641c

+ 2 - 0
playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade.yml

@@ -101,3 +101,5 @@
 - include: ../../../../common/openshift-cluster/upgrades/upgrade_nodes.yml
 
 - include: ../../../../common/openshift-cluster/upgrades/post_control_plane.yml
+
+- inlcude: ../../../../common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml

+ 2 - 0
playbooks/byo/openshift-cluster/upgrades/v3_5/upgrade_control_plane.yml

@@ -104,3 +104,5 @@
 - include: ../../../../common/openshift-cluster/upgrades/upgrade_control_plane.yml
 
 - include: ../../../../common/openshift-cluster/upgrades/post_control_plane.yml
+
+- inlcude: ../../../../common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml

+ 19 - 0
playbooks/common/openshift-cluster/upgrades/v3_5/storage_upgrade.yml

@@ -0,0 +1,19 @@
+---
+###############################################################################
+# 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
+