USHIFT-2170: support upgrading 2 Y versions at a time#2952
Conversation
|
@dhellmann: This pull request references USHIFT-2170 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.16.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
4171edc to
e4c9cb8
Compare
|
This should be rebased on #2950 before it is merged. /hold |
e4c9cb8 to
9117d79
Compare
9117d79 to
55d4aa0
Compare
|
55d4aa0 to
5aa8273
Compare
|
5aa8273 to
08c0abd
Compare
2d50b02 to
a9caa1f
Compare
|
/hold cancel rebased after #2950 merged |
|
The issue is a package dependency problem between selinux-policy-targeted and osbuild. https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_microshift/2952/pull-ci-openshift-microshift-main-microshift-metal-tests/1755264697868750848 Let's see if that's being caused by a RHEL CDN or cache problem. /retest-required |
|
Same dependency error |
|
More background in openshift/enhancements#1562 |
|
/retest-required |
2d0bf81 to
d0b62f6
Compare
|
The `dnf repoquery` command does not require a repository to be enabled in order to check its contents. Since we use the command to look for old versions of MicroShift, in repositories that might not be enabled, we should not require the repo to be enabled before performing the query.
a642ca7 to
f16d284
Compare
| newest=$(sudo dnf repoquery microshift --quiet --queryformat '%{version}-%{release}' --repo "${rhsm_repo}" | sort --version-sort | tail -n1) | ||
| if [ -n "${newest}" ]; then | ||
| echo "${newest}" | ||
| return |
There was a problem hiding this comment.
@pmtk I think this is the change you've mentioned that we need, please take a look when you have a few minutes.
There was a problem hiding this comment.
I think so.
BTW. command can be changed to sudo dnf repoquery --quiet --latest-limit 1 --qf "%{version}-%{release}" --repo "${rhsm_repo}" microshift - --latest-limit instead of | sort | tail
There was a problem hiding this comment.
If that function were to return "version,repo", then YMINUS2_RELEASE_REPO="$(get_ocp_repo_name_for_version ${YMINUS2_MINOR_VERSION})" could be cut -d, -f2 but I'm fine with either
There was a problem hiding this comment.
I thought about that. I liked the simplicity of that repo being explicitly known to exist in the caller, but maybe the symmetry of always having some repo reference returned is better? I'll defer to you, let me know if I should change it.
|
/retest-required |
e7140db to
65552c9
Compare
|
/hold cancel |
…active make container extraction more flexible about handling repositories by handling repo names, paths, and URLs
Co-authored-by: Gregory Giguashvili <85498834+ggiguash@users.noreply.github.com>
b66273e to
9d43c9d
Compare
| @@ -0,0 +1,10 @@ | |||
| {{- if env.Getenv "RHOCP_MINOR_Y2" "" -}} | |||
There was a problem hiding this comment.
Some comment said RHOCP for y-2 will always be available - do we need if here?
There was a problem hiding this comment.
Good point, I can remove that.
|
/lgtm |
|
/hold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann, ggiguash, pmtk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel I'll take care of the suggested cleanup in a follow-up PR. |
|
@dhellmann: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/assign @pmtk