Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGMT-3959 Support overriding newer release images #1034

Conversation

YuviGold
Copy link
Contributor

@YuviGold YuviGold commented Feb 7, 2021

Currently, the assisted-service only supports overriding an image that is already supported (major.minor).

We need to support experiencing with even newer images.

Otherwise, the CI would complain once in a while about newer versions being tested that are unsupported.

HTTP response body: {"code":"400","href":"","id":400,"kind":"Error","reason":"Openshift version 4.8 is not supported"} {code}

Eventually, I removed the override from the Go code and I made the handle_ocp_versions.py utility to update JSONs.
In case of overriding an existing major.minor - it would just replace the displayName and releaseImage fields.
In case of a new image (new major.minor) - it would copy the biggest semver version metadata (i.e. rhcosVersion)

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: YuviGold

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2021
@omertuc
Copy link
Contributor

omertuc commented Feb 7, 2021

Please write a short description of what you're trying to achieve

@YuviGold
Copy link
Contributor Author

YuviGold commented Feb 7, 2021

Please write a short description of what you're trying to achieve

Updated.

Remove the override logic from the Go code and made the handle_ocp_versions.py utility to update JSONs.

In case of overriding an existing major.minor - it would just replace the displayName and releaseImage fields.
In case of a new image (new major.minor) - it would copy the biggest semver version metadata (i.e. rhcosVersion)
@YuviGold YuviGold force-pushed the MGMT-3959-support-override-newer-images branch from ec60339 to a0ba583 Compare February 8, 2021 09:08
@omertuc
Copy link
Contributor

omertuc commented Feb 8, 2021

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2021
@openshift-merge-robot openshift-merge-robot merged commit 79033a8 into openshift:master Feb 8, 2021
mkowalski pushed a commit to mkowalski/assisted-service that referenced this pull request May 21, 2021
* update tools for running local bmo

Have the run script build a development version of the deployment for
metal3 by looking at the production one and removing the bmo and some
other settings we don't want.

Wait longer for the new pod to run, since we now wait for the init
container to download RHCOS.

Log output.

Signed-off-by: Doug Hellmann <dhellmann@redhat.com>

* make it possible to override the logging destination directory

Signed-off-by: Doug Hellmann <dhellmann@redhat.com>

* add stop script for dev metal3 deployment

Signed-off-by: Doug Hellmann <dhellmann@redhat.com>

* add script to bring mao back under cvo control

Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants