Bug 2086974 - oc-mirror does not work with headsonly for operator 4.8
Summary: oc-mirror does not work with headsonly for operator 4.8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Alex
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-17 01:22 UTC by zhou ying
Modified: 2022-08-10 11:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:12:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc-mirror pull 466 0 None open Bug 2086974: fix(operator): adds context to error when bundles have invalid relate… 2022-05-17 14:59:18 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:12:45 UTC

Description zhou ying 2022-05-17 01:22:29 UTC
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:

Comment 2 zhou ying 2022-05-24 10:33:07 UTC
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

Comment 3 zhou ying 2022-05-25 01:17:39 UTC
refer Comment 2 will move to verified status.

Comment 5 errata-xmlrpc 2022-08-10 11:12:29 UTC
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


Note You need to log in before you can comment on or make changes to this bug.