Bug 2057358
| Summary: | [Secondary Scheduler] - cannot build bundle index image using the secondary scheduler operator bundle | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | RamaKasturi <knarra> |
| Component: | kube-scheduler | Assignee: | Jan Chaloupka <jchaloup> |
| Status: | CLOSED ERRATA | QA Contact: | RamaKasturi <knarra> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.10 | CC: | jchaloup, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 10:50:55 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: | |||
$ 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]" 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.
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
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: 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: