-
Sub-task
-
Resolution: Done
-
Major
-
1.x
-
None
-
None
-
False
-
None
-
False
-
-
If I use opm command for building WTO Index image locally, it works fine. For example:
+ opm index add -c docker --bundles quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3 --tag quay.io/mmusiien/wto/web-terminal-operator-index:next INFO[0000] building the index bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] running /usr/bin/docker pull quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3 bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] running docker create bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] running docker cp bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] running docker rm bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] found csv, loading bundle dir=bundle_tmp340351965 file=bundle_tmp340351965/manifests load=bundle INFO[0000] loading bundle file dir=bundle_tmp340351965/manifests file=web-terminal.clusterserviceversion.yaml load=bundle INFO[0000] Generating dockerfile bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] writing dockerfile: index.Dockerfile729007411 bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] running docker build bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" INFO[0000] [docker build -f index.Dockerfile729007411 -t quay.io/mmusiien/wto/web-terminal-operator-index:next .] bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:ea655dce8add69590ae594fcd6e0ffb7be11372af4a245a7a1b42c27f2a80cb3]" + docker push quay.io/mmusiien/wto/web-terminal-operator-index:next
But if run on a Jenkins job, have errors like:
[2024-02-22T16:09:51.753Z] + opm index add -c docker --bundles quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971 --tag quay.io/mmusiien/wto/web-terminal-operator-index:next [2024-02-22T16:09:51.753Z] time="2024-02-22T11:09:50-05:00" level=warning msg="\x1b[1;33mDEPRECATION NOTICE:\nSqlite-based catalogs and their related subcommands are deprecated. Support for\nthem will be removed in a future release. Please migrate your catalog workflows\nto the new file-based catalog format.\x1b[0m" [2024-02-22T16:09:51.753Z] time="2024-02-22T11:09:50-05:00" level=info msg="building the index" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:51.753Z] time="2024-02-22T11:09:50-05:00" level=info msg="running /bin/docker pull quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:51.753Z] time="2024-02-22T11:09:51-05:00" level=error msg="Trying to pull quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971...\nError: initializing source docker://quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971: reading manifest sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971 in quay.io/mmusiien/wto/web-terminal-operator-metadata: manifest unknown\n" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:51.753Z] time="2024-02-22T11:09:51-05:00" level=info msg="running docker create" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:52.570Z] time="2024-02-22T11:09:51-05:00" level=info msg="running docker cp" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:52.570Z] time="2024-02-22T11:09:51-05:00" level=info msg="running docker rm" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" [2024-02-22T16:09:52.570Z] time="2024-02-22T11:09:51-05:00" level=error msg="permissive mode disabled" bundles="[quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971]" error="error pulling image: Trying to pull quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971...\nError: initializing source docker://quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971: reading manifest sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971 in quay.io/mmusiien/wto/web-terminal-operator-metadata: manifest unknown\n. exit status 125" [2024-02-22T16:09:52.570Z] Error: error pulling image: Trying to pull quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971... [2024-02-22T16:09:52.570Z] Error: initializing source docker://quay.io/mmusiien/wto/web-terminal-operator-metadata@sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971: reading manifest sha256:52ec20c196bf9b759a4fbce64eec412c7e081006002f20e858bf57af64d33971 in quay.io/mmusiien/wto/web-terminal-operator-metadata: manifest unknown