Skip to content

Conversation

@ksdeekshith
Copy link

@ksdeekshith ksdeekshith commented May 20, 2025

This PR will fix the oc mirror v2 from 4.19 for disconnected setups.

Note: This is verified for UPI installations. But not for ABI as of now. It will be verified based on the requirement.

Copy link
Member

@mohammedzee1000 mohammedzee1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if i remember correctly, the mirroring is also done for other disconnected setups @veera-damisetti can you please point to this

@ksdeekshith ksdeekshith marked this pull request as draft May 22, 2025 11:04
Copy link
Member

@mohammedzee1000 mohammedzee1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to handle the disconnected install for @veera-damisetti setups in this PR as well?

@veera-damisetti
Copy link
Collaborator

@isumitsolanki
Can you please confirm once on the existing disconnected setup ? and what approach we used for mirroring

@mohammedzee1000
Copy link
Member

@ksdeekshith, one thing is that I think the release image registry should be an optional field, as it's not required if we are testing with released OCP versions. This usually only becomes a problem with unreleased OCP versions.
So if the field is set, we add entries in registries.conf otherwise we don't do it

@mohammedzee1000
Copy link
Member

hi we need to resume this PR work soon before all current supported versions go out of scope

@ksdeekshith ksdeekshith changed the title fix for ocmirrorv2 fix: ocmirrorv2 Oct 9, 2025
@ksdeekshith ksdeekshith changed the title fix: ocmirrorv2 bug: fix for ocmirrorv2 Oct 9, 2025
@ksdeekshith ksdeekshith changed the title bug: fix for ocmirrorv2 fix: resolved bug for ocmirrorv2 from 4.19 Oct 9, 2025
@ksdeekshith ksdeekshith marked this pull request as ready for review October 9, 2025 09:08
Copy link
Member

@mohammedzee1000 mohammedzee1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The only minor crib that I can think of, really, is maybe we could use vars to reduce the repetition of some of the paths, such as {{ user_home.stdout }}/ocpinst_disconnected being repeated multiple times across the files.

But I would not consider it a blocker for merge.
For the line too long on comments, maybe we can consider restructuring the comment lines such as moving the line above or below the line the comment is for or maybe spliting the comment accross multipe lines.

oc mirror --config {{ user_home.stdout }}/ocpinst/imageset.yaml docker://{{ disconnected.registry.url}} --ignore-history{{ ' --continue-on-error' if disconnected.mirroring.oc_mirror.oc_mirror_args.continue_on_error == True }} \
{{ ' --source-skip-tls' if disconnected.mirroring.oc_mirror.oc_mirror_args.source_skip_tls == True }}
# ignore-history set by default for idempotency
oc mirror --v2 --config {{ user_home.stdout }}/ocpinst_disconnected/imageset.yaml --workspace file://{{ user_home.stdout }}/ocpinst_disconnected docker://{{ disconnected.registry.url }} --dry-run
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Copy link
Member

@mohammedzee1000 mohammedzee1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants