Current version of opm fails to create index image ERRO[0000] permissive mode disabled bundles="[docker.sas.com/hoonea/mvd-operator-bundle:v1.0]" error="error loading bundle from image: application/vnd.docker.distribution.manifest.v1+prettyjws not supported"
While attempting to create an index image (https://github.com/operator-framework/operator-registry#building-an-index-of-operators-using-opm) opm produces misleading error message, even though the bundle image passes validation, scorecard, and appears to meet the needed spec.
When using the latest code base an abnormal error is produced from opm that does not occur at a v1.6.1 :
Error: error loading bundle from image: application/vnd.docker.distribution.manifest.v1+prettyjws not supported
Running with current codebase in repo
$user@machine /c/workspace/operator-registry
% docker manifest inspect docker.registry.com/$user/mvd-operator-bundle:v1.0
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 3375,
"digest": "sha256:4cc4e13124f3d7cad7202d4f87c3feccdbe949766bf20f70ff4b4af39823b29f"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 9741,
"digest": "sha256:7cfec0718755d5c30556589e67381271ae6adeb6210f76a5d501e505997694b1"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 295,
"digest": "sha256:75511aec0adc9fc1308673dd784df4b9c61f586fb2b8e8f8fd6e0f739a9a480a"
}
]
}
$user@machine /c/workspace/operator-registry
% ./opm alpha bundle validate -t docker.registry.com/$user/mvd-operator-bundle:v1.0
INFO[0000] Create a temp directory at /tmp/bundle-113043196 container-tool=docker
DEBU[0000] Pulling and unpacking container image container-tool=docker
INFO[0000] running docker pull container-tool=docker
DEBU[0000] [docker pull docker.registry.com/$user/mvd-operator-bundle:v1.0] container-tool=docker
INFO[0000] running docker save container-tool=docker
DEBU[0000] [docker save docker.registry.com/$user/mvd-operator-bundle:v1.0 -o bundle_staging_722488363/bundle.tar] container-tool=docker
INFO[0000] Unpacked image layers, validating bundle image format & contents container-tool=docker
DEBU[0000] Found manifests directory container-tool=docker
DEBU[0000] Found metadata directory container-tool=docker
DEBU[0000] Getting mediaType info from manifests directory container-tool=docker
DEBU[0000] Validating annotations.yaml container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.package.v1" with value "mvd-operator" container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.channels.v1" with value "alpha" container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.channel.default.v1" with value "alpha" container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.mediatype.v1" with value "registry+v1" container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.manifests.v1" with value "manifests/" container-tool=docker
DEBU[0000] Found annotation "operators.operatorframework.io.bundle.metadata.v1" with value "metadata/" container-tool=docker
DEBU[0000] Validating bundle contents container-tool=docker
DEBU[0000] Validating "operators.coreos.com/v1alpha1, Kind=ClusterServiceVersion" from file "mvd-operator.v0.0.1.clusterserviceversion.yaml" container-tool=docker
DEBU[0000] Validating "apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition" from file "mvd.registry.com_minviyadeps_crd.yaml" container-tool=docker
INFO[0000] All validation tests have been completed successfully container-tool=docker
$user@machine /c/workspace/operator-registry
% ./opm alpha bundle validate -t docker.registry.com/$user/mvd-operator-bundle:v1.0
$user@machine /c/workspace/operator-registry
% ./opm index add --bundles docker.registry.com/$user/mvd-operator-bundle:v1.0 --tag docker.registry.com/$user/mvd-operator-index:v1.0 --container-tool docker
INFO[0000] building the index bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
INFO[0000] resolved name: docker.registry.com/$user/mvd-operator-bundle:v1.0
INFO[0000] fetched digest="sha256:3a8bf379f5a8391459beef293022fc0ca88edf89a895d8f86e3c633cf18722c5"
ERRO[0000] permissive mode disabled bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]" error="error loading bundle from image: application/vnd.docker.distribution.manifest.v1+prettyjws not supported"
Error: error loading bundle from image: application/vnd.docker.distribution.manifest.v1+prettyjws not supported
RUNNING WITH RELEASE v1.6.1
% ./opm index add --bundles docker.registry.com/$user/mvd-operator-bundle:v1.0 --tag docker.registry.com/$user/mvd-operator-index:v1.0 --container-tool docker
INFO[0000] building the index bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
INFO[0000] running docker pull img="docker.registry.com/$user/mvd-operator-bundle:v1.0"
INFO[0000] running docker save img="docker.registry.com/$user/mvd-operator-bundle:v1.0"
INFO[0000] loading Bundle docker.registry.com/$user/mvd-operator-bundle:v1.0 img="docker.registry.com/$user/mvd-operator-bundle:v1.0"
INFO[0000] found annotations file searching for csv dir=bundle_tmp142711949 file=bundle_tmp142711949/metadata load=annotations
INFO[0000] found csv, loading bundle dir=bundle_tmp142711949 file=bundle_tmp142711949/manifests load=bundle
INFO[0000] loading bundle file dir=bundle_tmp142711949/manifests file=mvd-operator.v0.0.1.clusterserviceversion.yaml load=bundle
INFO[0000] loading bundle file dir=bundle_tmp142711949/manifests file=mvd.registry.com_minviyadeps_crd.yaml load=bundle
INFO[0000] Generating dockerfile bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
INFO[0000] writing dockerfile: index.Dockerfile660628551 bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
INFO[0000] running docker build bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
INFO[0000] [docker build -f index.Dockerfile660628551 -t docker.registry.com/$user/mvd-operator-index:v1.0 .] bundles="[docker.registry.com/$user/mvd-operator-bundle:v1.0]"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.