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

oc adm catalog mirror generate bad catalog name and bad image url #1884

Open
ddcdk opened this issue Sep 24, 2024 · 3 comments
Open

oc adm catalog mirror generate bad catalog name and bad image url #1884

ddcdk opened this issue Sep 24, 2024 · 3 comments

Comments

@ddcdk
Copy link

ddcdk commented Sep 24, 2024

Oc version
Client Version: 4.16.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: 4.16.2
Kubernetes Version: v1.29.6+aba1e8d

I use this kind of command to mirror an operator to a local registry :
oc adm catalog mirror myregistry.mycompany.com/olm-mirror/web-terminal/web-terminal-index:v4.16 myregistry.mycompany.com/olm-mirror --insecure --continue-on-error --skip-verification --max-components=3

First problem :
This command produce a CatalogSource.yaml file with this wrong metadata name : web-terminal/web-terminal-index
We can not have a '/' in name.

Second problem :
The spec.image is wrong myregistry.mycompany.com/olm-mirror/olm-mirror/web-terminal-web-terminal-index:v4.16
There is an extra 'olm-mirror'. In the ImageDigestMirrorSet.yaml, the path is correct, no extra 'olm-mirror' path

Thanks,
Delfim Da Costa

@ddcdk
Copy link
Author

ddcdk commented Sep 25, 2024

in mapping.txt we have also a wrong mapping :
myregistry.mycompany.com/olm-mirror/web-terminal/web-terminal-index:v4.16=myregistry.mycompany.com/olm-mirror/olm-mirror/web-terminal-web-terminal-index:v4.16
instead of :
myregistry.mycompany.com/olm-mirror/web-terminal/web-terminal-index:v4.16=myregistry.mycompany.com/olm-mirror/web-terminal-web-terminal-index:v4.16

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 24, 2024
@ddcdk
Copy link
Author

ddcdk commented Dec 24, 2024

/remove-lifecycle stale

@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 24, 2024
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

No branches or pull requests

2 participants