cephadm: support upgrade from octopus to pacific#39069
Merged
liewegas merged 16 commits intoceph:masterfrom Feb 3, 2021
Merged
cephadm: support upgrade from octopus to pacific#39069liewegas merged 16 commits intoceph:masterfrom
liewegas merged 16 commits intoceph:masterfrom
Conversation
sebastian-philipp
suggested changes
Jan 26, 2021
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
1ffc55d to
91aad0c
Compare
1cc6075 to
2889afd
Compare
2889afd to
2ddbf17
Compare
Member
Author
|
@sebastian-philipp Rebased on master... this is ready for a final review. |
8a4ca0a to
fea0cdf
Compare
- Prevent major upgrades that span > 2 releases - Prevent downgrades to an rc or dev release Signed-off-by: Sage Weil <sage@newdream.net>
With podman 2.2.1 I would get ERRO[0000] Error printing inspect output: template: all inspect:1: function "json" not defined Removing the 'json' portion of the query resolves it. Signed-off-by: Sage Weil <sage@newdream.net>
We don't want to 'ceph version ' prefix or sha1 suffix. This matches us up with 'orch upgrade start' Signed-off-by: Sage Weil <sage@newdream.net>
Apply the version checks to make sure this upgrade/downgrade is possible. Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
After we've upgraded all of the osds, complete the major version upgrade for core RADOS by setting the OSD cluster min. Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Otherwise the container_image value includes the same hash twice, separated by a newline, causing all sorts of confusion. Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fea0cdf to
6b34384
Compare
When we inspect a (pulled) image, return all of the repo digests. Update the mgr/cephadm code accordingly to match. Signed-off-by: Sage Weil <sage@newdream.net>
The image id can vary across hosts and (most notably) docker vs podman. Instead, use the repo_digest as an image identifier. Unfortunately, a single image may have multiple digests, even within the same registry, so keep a list of the digests for the image we are upgrading to, and ensure that each container has a digest that matches at least one of them. This allows upgrade to proceed in mixed docker+podman clusters. However, it does not yet address a cluster with mixed CPU architectures, because the container image will have different digest(s) for each architecture build. Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
…ades For octopus -> pacific, as with other recent releases, we need to scale down the MDS cluster(s) to a single daemon before upgrading. (This is because the MDS intra-cluster protocols aren't fully versioned.) Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
6b34384 to
b0ff67b
Compare
sebastian-philipp
approved these changes
Feb 3, 2021
Contributor
|
cc @yuriw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement basic version checks to support a major release upgrade.
Complete the upgrade by setting require-osd-release for the OSDs.