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

[WIP] AGENT: Fix releaseImageMirror formatting #6272

Conversation

celebdor
Copy link
Contributor

When the image is of the form:

quay.io/openshift-release-dev/ocp-release@sha256:300bce8246cf880e792e106607925de0a404484637627edf5f517375517d54a4

Splitting by ':' means that the extracted location will be:

quay.io/openshift-release-dev/ocp-release@sha256:

Instead of

quay.io/openshift-release-dev/ocp-release

Whereas in registries.conf we'd have the location be:

[[registry]]
  location = "quay.io/openshift-release-dev/ocp-release"

Thus. There wouldn't be a match and the release image will be empty in
places like:

/usr/local/share/assisted-service/assisted-service.env

or

/etc/systemd/system/create-cluster-and-infraenv.service

Signed-off-by: Antoni Segura Puimedon antoni@redhat.com

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 27, 2022
@openshift-ci openshift-ci bot requested review from bfournie and rwsu August 27, 2022 16:27
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 27, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from celebdor by writing /assign @celebdor in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

When the image is of the form:

    quay.io/openshift-release-dev/ocp-release@sha256:300bce8246cf880e792e106607925de0a404484637627edf5f517375517d54a4

Splitting by ':' means that the extracted location will be:

    quay.io/openshift-release-dev/ocp-release@sha256:

Instead of

    quay.io/openshift-release-dev/ocp-release

Whereas in registries.conf we'd have the location be:

    [[registry]]
      location = "quay.io/openshift-release-dev/ocp-release"

Thus. There wouldn't be a match and the release image will be empty in
places like:

    /usr/local/share/assisted-service/assisted-service.env

or

    /etc/systemd/system/create-cluster-and-infraenv.service

Signed-off-by: Antoni Segura Puimedon <antoni@redhat.com>
@celebdor celebdor force-pushed the agent-sha-releaseImageMirror-fix branch from a0e932f to 863cd1e Compare August 27, 2022 16:41
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 27, 2022

@celebdor: all tests passed!

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@bfournie
Copy link
Contributor

/lgtm
Nice fix. I will take a follow-on to add a Unit test for this.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2022
bfournie added a commit to bfournie/installer that referenced this pull request Aug 29, 2022
Based on openshift#6272, this
fixes the mirror generation to handle release images that
include the sha256 checksum, e.g:
quay.io/openshift-release-dev/ocp-release@sha256:300bce8246cf880e792e106607925de0a404484637627edf5f517375517d54a4
@zaneb
Copy link
Member

zaneb commented Aug 30, 2022

/close
Closing in favour of #6275

@openshift-ci openshift-ci bot closed this Aug 30, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2022

@zaneb: Closed this PR.

In response to this:

/close
Closing in favour of #6275

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 kubernetes/test-infra repository.

@celebdor celebdor deleted the agent-sha-releaseImageMirror-fix branch November 14, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants