Bug 2086974
| Summary: | oc-mirror does not work with headsonly for operator 4.8 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
| Component: | oc | Assignee: | Alex <aflom> |
| oc sub component: | oc-mirror | QA Contact: | zhou ying <yinzhou> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | jpower, vdinh |
| Version: | 4.11 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 11:12:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
still can't mirror operator 4.8 even with --continue-on-error
oc-mirror version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202205192208.p0.gf93ddac.assembly.stream-f93ddac", GitCommit:"f93ddac651dbdd9e3092d79b744df8d3b32c8ea4", GitTreeState:"clean", BuildDate:"2022-05-19T22:34:11Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"}
oc-mirror --config setting.yaml file:// --continue-on-error
Found: oc-mirror-workspace/src/publish
Found: oc-mirror-workspace/src/v2
Found: oc-mirror-workspace/src/charts
backend is not configured in setting.yaml, using stateless mode
backend is not configured in setting.yaml, using stateless mode
No metadata detected, creating new workspace
WARN[0022] DEPRECATION NOTICE:
Sqlite-based catalogs and their related subcommands are deprecated. Support for
them will be removed in a future release. Please migrate your catalog workflows
to the new file-based catalog format.
bundle 3scale-operator-latest-annotation: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest
bundle 3scale-operator-latest-annotation: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest
bundle 3scale-operator.v0.3.0: related image tag not set
bundle 3scale-operator.v0.3.0: related image tag not set
bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest
bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest
bundle 3scale-operator.v0.3.0: related image tag not set
bundle 3scale-operator.v0.3.0: related image tag not set
bundle 3scale-rhel7-operator-1.10-6-annotation: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest
bundle 3scale-rhel7-operator-1.10-6-annotation: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest
bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest
bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest
bundle mysql-57-rhel7: pinning related image to digest
bundle mysql-57-rhel7: pinning related image to digest
bundle 3scale-operator.v0.5.5: related image tag not set
bundle 3scale-operator.v0.5.5: related image tag not set
bundle postgresql-10-rhel7: pinning related image to digest
bundle postgresql-10-rhel7: pinning related image to digest
bundle 3scale-operator.v0.5.5: related image tag not set
bundle 3scale-operator.v0.5.5: related image tag not set
bundle redis-32-rhel7: pinning related image to digest
bundle redis-32-rhel7: pinning related image to digest
bundle 3scale-operator.v0.5.5: related image tag not set
bundle 3scale-operator.v0.5.5: related image tag not set
bundle fuse-apicurito-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle fuse-apicurito-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle apicurito-operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle apicurito-operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle apicurito_operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle apicurito_operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest
bundle generator: pinning related image registry.redhat.io/fuse7/fuse-apicurito-generator:1.7 to digest
bundle generator: pinning related image registry.redhat.io/fuse7/fuse-apicurito-generator:1.7 to digest
bundle apicurito: pinning related image registry.redhat.io/fuse7/fuse-apicurito:1.7 to digest
bundle apicurito: pinning related image registry.redhat.io/fuse7/fuse-apicurito:1.7 to digest
bundle fuse-console-rhel7-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest
bundle fuse-console-rhel7-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest
bundle fuse-console-operator: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest
bundle fuse-console-operator: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest
bundle fuse-online-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest
bundle fuse-online-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest
bundle syndesis-operator: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest
bundle syndesis-operator: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest
bundle postgres-version: pinning related image registry.redhat.io/rhscl/postgresql-96-rhel7:1-61 to digest
bundle postgres-version: pinning related image registry.redhat.io/rhscl/postgresql-96-rhel7:1-61 to digest
wrote mirroring manifests to oc-mirror-workspace/operators.1653388086/manifests-redhat-operator-index
To upload local images to a registry, run:
oc adm catalog mirror file://redhat/redhat-operator-index:v4.8 REGISTRY/REPOSITORY
bundle "3scale-operator.v0.5.5" related image "mysql-57-rhel7": "" is not a valid image reference: repository name must have at least one component
bundle "3scale-operator.v0.5.5" related image "postgresql-10-rhel7": "" is not a valid image reference: repository name must have at least one component
bundle "3scale-operator.v0.5.5" related image "redis-32-rhel7": "" is not a valid image reference: repository name must have at least one component
[root@localhost operatorheadonly48]# echo $?
1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069 |
Description of problem: oc-mirror does not work with headsonly for operator 4.8 Version-Release number of selected component (if applicable): oc-mirror version Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202205131159.p0.g7bde4c7.assembly.stream-7bde4c7", GitCommit:"7bde4c7bde6b829a34592b2d12115fb38b15576f", GitTreeState:"clean", BuildDate:"2022-05-13T12:59:14Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"} How reproducible: always Steps to Reproduce: 1. Using the headonly config to mirror operator 4.8: cat packageonly.yaml apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.8 2. use the commmand: `oc-mirror --config packageonly.yaml file://out` Actual results: 2. the oc-mirror always failed: oc-mirror --config packageonly.yaml file://out Creating directory: out/oc-mirror-workspace/src/publish Creating directory: out/oc-mirror-workspace/src/v2 Creating directory: out/oc-mirror-workspace/src/charts backend is not configured in %s, using stateless modepackageonly.yaml backend is not configured in %s, using stateless modepackageonly.yaml No metadata detected, creating new workspace WARN[0049] DEPRECATION NOTICE: Sqlite-based catalogs and their related subcommands are deprecated. Support for them will be removed in a future release. Please migrate your catalog workflows to the new file-based catalog format. bundle 3scale-operator-latest-annotation: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest bundle 3scale-operator-latest-annotation: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest bundle 3scale-operator.v0.3.0: related image tag not set bundle 3scale-operator.v0.3.0: related image tag not set bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp26/3scale-operator to digest bundle 3scale-operator.v0.3.0: related image tag not set bundle 3scale-operator.v0.3.0: related image tag not set bundle 3scale-rhel7-operator-1.10-6-annotation: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest bundle 3scale-rhel7-operator-1.10-6-annotation: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest bundle 3scale-operator: pinning related image registry.redhat.io/3scale-amp2/3scale-rhel7-operator:1.10-6 to digest bundle mysql-57-rhel7: pinning related image to digest bundle mysql-57-rhel7: pinning related image to digest bundle 3scale-operator.v0.5.5: related image tag not set bundle 3scale-operator.v0.5.5: related image tag not set bundle postgresql-10-rhel7: pinning related image to digest bundle postgresql-10-rhel7: pinning related image to digest bundle 3scale-operator.v0.5.5: related image tag not set bundle 3scale-operator.v0.5.5: related image tag not set bundle redis-32-rhel7: pinning related image to digest bundle redis-32-rhel7: pinning related image to digest bundle 3scale-operator.v0.5.5: related image tag not set bundle 3scale-operator.v0.5.5: related image tag not set bundle fuse-apicurito-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle fuse-apicurito-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle apicurito-operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle apicurito-operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle apicurito_operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle apicurito_operator: pinning related image registry.redhat.io/fuse7-tech-preview/fuse-apicurito-operator:1.7 to digest bundle generator: pinning related image registry.redhat.io/fuse7/fuse-apicurito-generator:1.7 to digest bundle generator: pinning related image registry.redhat.io/fuse7/fuse-apicurito-generator:1.7 to digest bundle apicurito: pinning related image registry.redhat.io/fuse7/fuse-apicurito:1.7 to digest bundle apicurito: pinning related image registry.redhat.io/fuse7/fuse-apicurito:1.7 to digest bundle fuse-console-rhel7-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest bundle fuse-console-rhel7-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest bundle fuse-console-operator: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest bundle fuse-console-operator: pinning related image registry.redhat.io/fuse7/fuse-console-rhel7-operator:1.7 to digest bundle fuse-online-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest bundle fuse-online-operator-1.7-annotation: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest bundle syndesis-operator: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest bundle syndesis-operator: pinning related image registry.redhat.io/fuse7/fuse-online-operator:1.7 to digest bundle postgres-version: pinning related image registry.redhat.io/rhscl/postgresql-96-rhel7:1-61 to digest bundle postgres-version: pinning related image registry.redhat.io/rhscl/postgresql-96-rhel7:1-61 to digest wrote mirroring manifests to out/oc-mirror-workspace/operators.1652710883/manifests-redhat-operator-index To upload local images to a registry, run: oc adm catalog mirror file://redhat/redhat-operator-index:v4.8 REGISTRY/REPOSITORY "" is not a valid image reference: repository name must have at least one component "" is not a valid image reference: repository name must have at least one component "" is not a valid image reference: repository name must have at least one component Expected results: 2. no failed. Additional info: