Bug 2057358 - [Secondary Scheduler] - cannot build bundle index image using the secondary scheduler operator bundle
Summary: [Secondary Scheduler] - cannot build bundle index image using the secondary s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-scheduler
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.11.0
Assignee: Jan Chaloupka
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-23 09:41 UTC by RamaKasturi
Modified: 2022-08-10 10:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:50:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift secondary-scheduler-operator pull 22 0 None open bug 2057358: Fix the CRD name 2022-02-23 16:45:35 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:51:12 UTC

Description RamaKasturi 2022-02-23 09:41:21 UTC
Description of problem:
When i try to build bundle index image to test secondary scheduler operator using the bundle below error is seen

[knarra@knarra openshift-tests-private]$ brew list-builds --package=secondary-scheduler-operator-bundle-container
Build                                                    Built by          State
-------------------------------------------------------  ----------------  ----------------
secondary-scheduler-operator-bundle-container-v68422ce-1  osbs              FAILED
secondary-scheduler-operator-bundle-container-v80cb88b-1  contra/pipeline   COMPLETE
secondary-scheduler-operator-bundle-container-vd4ab55c-1  osbs              FAILED

[knarra@knarra openshift-tests-private]$ brew --noauth call --json getBuild secondary-scheduler-operator-bundle-container-v80cb88b-1 |jq -r '.extra.image.index.pull[0]'
registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605


[knarra@knarra openshift-tests-private]$ opm index add --bundles registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605 --tag quay.io/openshift-qe-optional-operators/ss-index:1
INFO[0000] building the index                            bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605]"
INFO[0001] resolved name: registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605 
INFO[0001] fetched                                       digest="sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605"
INFO[0002] fetched                                       digest="sha256:a71e4bcfe95d49270c521bea23b945ba2c16102f67e4a2c855951f8a93d30781"
INFO[0002] fetched                                       digest="sha256:b6db7e6005593df1aa94327207a7d711aa16be8ac6848918c268fd96e5d373bf"
INFO[0002] fetched                                       digest="sha256:85e8a1bb85c6bb7b2630bf44be4a66356b3d356a99cba47ceff737ddd3a28ca4"
INFO[0002] fetched                                       digest="sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1"
INFO[0004] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32 [] map[] <nil>} 
INFO[0004] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:b6db7e6005593df1aa94327207a7d711aa16be8ac6848918c268fd96e5d373bf 15684 [] map[] <nil>} 
INFO[0004] Could not find optional dependencies file     dir=bundle_tmp651562768 file=bundle_tmp651562768/metadata load=annotations
INFO[0004] found csv, loading bundle                     dir=bundle_tmp651562768 file=bundle_tmp651562768/manifests load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp651562768/manifests file=cluster-secondary-scheduler-operator.clusterserviceversion.yaml load=bundle
INFO[0004] loading bundle file                           dir=bundle_tmp651562768/manifests file=secondary-scheduler-operator.crd.yaml load=bundle
ERRO[0004] permissive mode disabled                      bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605]" error="error checking provided apis in bundle secondaryscheduleroperator.v4.10.0: couldn't find operator.openshift.io/v1/SecondaryScheduler (Secondaryschedulers) in bundle. found: map[operator.openshift.io/v1/SecondaryScheduler (secondaryschedulers):{}]"
Error: error checking provided apis in bundle secondaryscheduleroperator.v4.10.0: couldn't find operator.openshift.io/v1/SecondaryScheduler (Secondaryschedulers) in bundle. found: map[operator.openshift.io/v1/SecondaryScheduler (secondaryschedulers):{}]

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. brew list-builds --package=secondary-scheduler-operator-bundle-container
2. brew --noauth call --json getBuild secondary-scheduler-operator-bundle-container-v80cb88b-1 |jq -r '.extra.image.index.pull[0]'
3. opm index add --bundles registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:d98a19803aaa53374950bec108221729c0f9ce8e28d42e11a45effdd6269d605 --tag quay.io/openshift-qe-optional-operators/ss-index:1

Actual results:
Creating a bundle index image fails

Expected results:
Creation of bundle index image should not fail.

Additional info:

Comment 2 Jan Chaloupka 2022-02-24 10:55:57 UTC
$ opm index add --bundles registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408 --tag quay.io/openshift-qe-optional-operators/ss-index:1
WARN[0000] 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. 
INFO[0000] building the index                            bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408]"
INFO[0007] Could not find optional dependencies file     file=bundle_tmp254735430/metadata load=annotations with=bundle_tmp254735430
INFO[0007] Could not find optional properties file       file=bundle_tmp254735430/metadata load=annotations with=bundle_tmp254735430
INFO[0007] Could not find optional dependencies file     file=bundle_tmp254735430/metadata load=annotations with=bundle_tmp254735430
INFO[0007] Could not find optional properties file       file=bundle_tmp254735430/metadata load=annotations with=bundle_tmp254735430
INFO[0007] Generating dockerfile                         bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408]"
INFO[0007] writing dockerfile: index.Dockerfile154192628  bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408]"
INFO[0007] running podman build                          bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408]"
INFO[0007] [podman build --format docker -f index.Dockerfile154192628 -t quay.io/openshift-qe-optional-operators/ss-index:1 .]  bundles="[registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8:osso-1.0-rhel-8-containers-candidate-48922-20220224102408]"

Comment 3 RamaKasturi 2022-02-25 12:47:44 UTC
Verified with the secondary-scheduler operator below and i see that we could build the index image.

secondary-scheduler-operator-container-v1.0-5

02-25 14:08:29.167  2) -> brew --noauth call --json getBuild external-dns-operator-bundle-container-0.1.2-34
02-25 14:08:29.731  #Info: the bundle image URL registry-proxy.engineering.redhat.com/rh-osbs/external-dns-operator-bundle@sha256:d0db150840b99cc7a78ad1233a061a08ccc14dc175af5b934db4dff78034497c
02-25 14:08:29.731  W0225 03:38:29.624005 4113973 helpers.go:151] Defaulting of registry auth file to "${HOME}/.docker/config.json" is deprecated. The default will be switched to podman config locations in the future version.
02-25 14:08:36.277  #Info: the bundle image digest URL registry-proxy.engineering.redhat.com/rh-osbs/external-dns-operator-bundle@sha256:17bfc7a924ca515bcd9162ffa5058cf23ea4a4b2d960eccf9d03b68f201c1cfd
02-25 14:08:36.277  3) -> opm index add --bundles registry-proxy.engineering.redhat.com/rh-osbs/external-dns-operator-bundle@sha256:17bfc7a924ca515bcd9162ffa5058cf23ea4a4b2d960eccf9d03b68f201c1cfd --from-index quay.io/openshift-qe-optional-operators/ocp4-index:25 --tag quay.io/openshift-qe-optional-operators/ocp4-index:25 -c podman
02-25 14:08:48.562  Getting image source signatures
02-25 14:08:48.562  Copying blob sha256:5ba389e24461a1b790c18b18707c0c0ef4fdd54217aefc4af36e934bf527c6a1
02-25 14:08:48.562  Copying blob sha256:4e7f383eb531db898a0835c445abdd067b256d452302b49b6b41eb712ac3d5bc
02-25 14:08:48.562  Copying blob sha256:bc276c40b172b1c5467277d36db5308a203a48262d5f278766cf083947d05466
02-25 14:08:48.562  Copying blob sha256:16a6b5b421af061cabf13d2b1258e6391c8733d79b921cfdd0b44a8c03313f59
02-25 14:08:48.562  Copying blob sha256:a98a386b6ec24d77ee4af183e773e6824515ee904249c31b0131192335359efb
02-25 14:08:48.562  Copying blob sha256:26895fdeb37eb1ebdf913f320b8e21440e30d3528df46810cafaa364ee65d76c
02-25 14:08:49.926  Copying config sha256:68fbe13a25c8e83a359fdbf9a155e0965ef26baf852d8b733ed56c40e1942c00
02-25 14:08:50.855  Writing manifest to image destination
02-25 14:08:50.855  Storing signatures
02-25 14:08:50.856  #Info: quay.io/openshift-qe-optional-operators/ocp4-index:25 pushed

Based on the above moving bug to verified state.

Comment 4 RamaKasturi 2022-02-25 12:54:36 UTC
Ignore output in the above comment, below is the right ouput

02-25 14:08:51.141  1) -> brew list-builds --package=secondary-scheduler-operator-bundle-container --sort-key=Build --state=COMPLETE --quiet --after=2021-02-25
02-25 14:08:51.709  Invalid sort_key: Build.
02-25 14:08:51.709  secondary-scheduler-operator-bundle-container-v1.0-1
02-25 14:08:51.709  2) -> brew --noauth call --json getBuild secondary-scheduler-operator-bundle-container-v1.0-1
02-25 14:08:51.965  #Info: the bundle image URL registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:f6c6976c448573a7e945cc50b0380bab9cdd8fcf9619aa92cd466094409572ad
02-25 14:08:52.221  W0225 03:38:52.053165 4114578 helpers.go:151] Defaulting of registry auth file to "${HOME}/.docker/config.json" is deprecated. The default will be switched to podman config locations in the future version.
02-25 14:08:52.480  #Info: the bundle image digest URL registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:0b9805e19b40e58e6fcd04febe1a8a42b9dcc4b8fe143d193fc6feff60afc357
02-25 14:08:52.480  3) -> opm index add --bundles registry-proxy.engineering.redhat.com/rh-osbs/secondary-scheduler-operator-metadata-rhel-8@sha256:0b9805e19b40e58e6fcd04febe1a8a42b9dcc4b8fe143d193fc6feff60afc357 --from-index quay.io/openshift-qe-optional-operators/ocp4-index:25 --tag quay.io/openshift-qe-optional-operators/ocp4-index:25 -c podman
02-25 14:09:04.680  Getting image source signatures
02-25 14:09:04.681  Copying blob sha256:eed8141f2963deb5d8ae194b3d8199d2353bd46e694851b0bec17d503f4ec3eb
02-25 14:09:04.681  Copying blob sha256:4e7f383eb531db898a0835c445abdd067b256d452302b49b6b41eb712ac3d5bc
02-25 14:09:04.681  Copying blob sha256:16a6b5b421af061cabf13d2b1258e6391c8733d79b921cfdd0b44a8c03313f59
02-25 14:09:04.681  Copying blob sha256:26895fdeb37eb1ebdf913f320b8e21440e30d3528df46810cafaa364ee65d76c
02-25 14:09:04.681  Copying blob sha256:a98a386b6ec24d77ee4af183e773e6824515ee904249c31b0131192335359efb
02-25 14:09:04.942  Copying blob sha256:bc276c40b172b1c5467277d36db5308a203a48262d5f278766cf083947d05466
02-25 14:09:06.328  Copying config sha256:dea9baf29debf60149686526098acfd585f1630aec32eb8a2c220efac270cd94
02-25 14:09:07.259  Writing manifest to image destination
02-25 14:09:07.259  Storing signatures
02-25 14:09:07.259  #Info: quay.io/openshift-qe-optional-operators/ocp4-index:25 pushed

Comment 7 errata-xmlrpc 2022-08-10 10:50:55 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.