-
Notifications
You must be signed in to change notification settings - Fork 261
Description
[rwsu@mini-fedora node-maintenance-operator]$ opm index add --bundles quay.io/rwsu/node-maintenance-operator-bundle:0.4.0 --from-index quay.io/rwsu/my-index:1.0.0 --tag quay.io/rwsu/my-index:1.0.1
INFO[0000] building the index bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0000] Pulling previous image quay.io/rwsu/my-index:1.0.0 to get metadata bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0000] running podman pull bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0002] Getting label data from previous image bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0002] running podman inspect bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0002] running podman pull bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0005] running podman save bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0034] running podman pull img="quay.io/rwsu/node-maintenance-operator-bundle:0.4.0"
INFO[0036] running podman save img="quay.io/rwsu/node-maintenance-operator-bundle:0.4.0"
INFO[0036] loading Bundle quay.io/rwsu/node-maintenance-operator-bundle:0.4.0 img="quay.io/rwsu/node-maintenance-operator-bundle:0.4.0"
INFO[0036] found annotations file searching for csv dir=bundle_tmp931915972 file=bundle_tmp931915972/metadata load=annotations
INFO[0036] found csv, loading bundle dir=bundle_tmp931915972 file=bundle_tmp931915972/manifests load=bundle
INFO[0036] loading bundle file dir=bundle_tmp931915972/manifests file=node-maintenance-operator.v0.4.0.clusterserviceversion.yaml load=bundle
INFO[0036] loading bundle file dir=bundle_tmp931915972/manifests file=nodemaintenance_crd.yaml load=bundle
INFO[0037] Generating dockerfile bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0037] writing dockerfile: index.Dockerfile241362070 bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0037] running podman build bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
INFO[0037] [podman build -f index.Dockerfile241362070 -t quay.io/rwsu/my-index:1.0.1 .] bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
ERRO[0082] STEP 1: FROM quay.io/operator-framework/upstream-registry-builder
STEP 2: LABEL operators.operatorframework.io.index.database.v1=/database/index.db
--> Using cache 7247f2c88dfb07dd13cf07654bfcc8a4d234ae5ccc0eb72413a3b73b2ba48ad6
STEP 3: ADD index_tmp904376898 /database
Error: error building at STEP "ADD index_tmp904376898 /database": error copying "/home/rwsu/go/src/github.com/kubevirt/node-maintenance-operator/index_tmp904376898" to "/home/rwsu/.local/share/containers/storage/overlay/111216cca9c9128ee007e3806efb2b6b667c62240563058e7d2762eb02a79639/merged/database": Error processing tar file(exit status 1): open /build/.wh..wh..opq: invalid argument bundles="[quay.io/rwsu/node-maintenance-operator-bundle:0.4.0]"
Error: error building image: STEP 1: FROM quay.io/operator-framework/upstream-registry-builder
STEP 2: LABEL operators.operatorframework.io.index.database.v1=/database/index.db
--> Using cache 7247f2c88dfb07dd13cf07654bfcc8a4d234ae5ccc0eb72413a3b73b2ba48ad6
STEP 3: ADD index_tmp904376898 /database
Error: error building at STEP "ADD index_tmp904376898 /database": error copying "/home/rwsu/go/src/github.com/kubevirt/node-maintenance-operator/index_tmp904376898" to "/home/rwsu/.local/share/containers/storage/overlay/111216cca9c9128ee007e3806efb2b6b667c62240563058e7d2762eb02a79639/merged/database": Error processing tar file(exit status 1): open /build/.wh..wh..opq: invalid argument
. exit status 125
Steps to reproduce:
git clone https://github.com/rwsu/node-maintenance-operator.git -b bundle-index-images
cd node-maintenance-operator
podman build -f bundle.Dockerfile.v0.3.0 -t quay.io/rwsu/node-maintenance-operator-bundle:0.3.0
podman push quay.io/rwsu/node-maintenance-operator-bundle:0.3.0
opm index add --bundles quay.io/rwsu/node-maintenance-operator-bundle:0.3.0 --tag quay.io/rwsu/my-index:1.0.0
podman push quay.io/rwsu/my-index:1.0.0
podman build -f bundle.Dockerfile.v0.4.0 -t quay.io/rwsu/node-maintenance-operator-bundle:0.4.0
podman push quay.io/rwsu/node-maintenance-operator-bundle:0.4.0
opm alpha bundle validate --tag quay.io/rwsu/node-maintenance-operator-bundle:0.4.0 --image-builder podman
opm index add --bundles quay.io/rwsu/node-maintenance-operator-bundle:0.4.0 --from-index quay.io/rwsu/my-index:1.0.0 --tag quay.io/rwsu/my-index:1.0.1