Skip to content

Commit

Permalink
fix(upgrade, jiva): change the order of upgrade (openebs#2607)
Browse files Browse the repository at this point in the history
0.9 have an API which gets called during handshake from controller.
During upgrade, replica need to be upgraded first so that this API will be available in replicas by the time controller gets upgraded.
This PR change the order of upgrade from controller->replica to replica->controller due to this issue.

fixes: openebs#2600

Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
  • Loading branch information
Utkarsh Mani Tripathi authored and vishnuitta committed Jun 2, 2019
1 parent 3502d98 commit 116e6cc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions k8s/upgrades/0.8.2-0.9.0/jiva/jiva_upgrade_runtask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ spec:
# replica deployment
- upgrade-jiva-volume-0.8.2-0.9.0-get-list-rep-old-rs

# This runtask will patch the jiva target deployment containers with the
# target version and other required things for upgrade.
- upgrade-jiva-volume-0.8.2-0.9.0-patch-ctrl-deployment-latest-version

# This runtask will verify that the jiva target deployment containers after
# the patch has been rolled out successfully.
- upgrade-jiva-volume-0.8.2-0.9.0-post-check-ctrl-deployment-status-latest-version

# This runtask will verify that the jiva target deployment containers
# that are running successfully has the appropriate target version.
- upgrade-jiva-volume-0.8.2-0.9.0-post-check-ctrl-deployment-image

# This runtask will patch the jiva replica deployment containers with the
# target version and other required things for upgrade.
- upgrade-jiva-volume-0.8.2-0.9.0-patch-rep-deployment-latest-version
Expand All @@ -83,6 +71,21 @@ spec:
# that are running successfully has the appropriate target version.
- upgrade-jiva-volume-0.8.2-0.9.0-post-check-rep-deployment-image

# This runtask will delete the stale jiva replica deployment replicaset
- upgrade-jiva-volume-0.8.2-0.9.0-delete-old-rep-rs

# This runtask will patch the jiva target deployment containers with the
# target version and other required things for upgrade.
- upgrade-jiva-volume-0.8.2-0.9.0-patch-ctrl-deployment-latest-version

# This runtask will verify that the jiva target deployment containers after
# the patch has been rolled out successfully.
- upgrade-jiva-volume-0.8.2-0.9.0-post-check-ctrl-deployment-status-latest-version

# This runtask will verify that the jiva target deployment containers
# that are running successfully has the appropriate target version.
- upgrade-jiva-volume-0.8.2-0.9.0-post-check-ctrl-deployment-image

# This runtask will patch the jiva target service
# with the version label of target version.
- upgrade-jiva-volume-0.8.2-0.9.0-patch-ctrl-svc
Expand All @@ -94,9 +97,6 @@ spec:
# This runtask will delete the stale jiva target deployment replicaset
- upgrade-jiva-volume-0.8.2-0.9.0-delete-old-ctrl-rs

# This runtask will delete the stale jiva replica deployment replicaset
- upgrade-jiva-volume-0.8.2-0.9.0-delete-old-rep-rs

# This runtask will list the snapshots related to this volume
- upgrade-jiva-volume-0.8.2-0.9.0-list-volumesnapshot

Expand Down

0 comments on commit 116e6cc

Please sign in to comment.