Skip to content

Instantly share code, notes, and snippets.

@jmrodri
Created September 28, 2020 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmrodri/9b7c61f098922704aa55c8f5bf5cf304 to your computer and use it in GitHub Desktop.
Save jmrodri/9b7c61f098922704aa55c8f5bf5cf304 to your computer and use it in GitHub Desktop.
[jesusr@transam operator-registry{debug}]$ bin/opm registry add -d database/index.db -b quay.io/vnarsing/memcached-operator:v1 --mode=semver
INFO[0000] adding to the registry bundles="[quay.io/vnarsing/memcached-operator:v1]"
INFO[0000] resolved name: quay.io/vnarsing/memcached-operator:v1
INFO[0000] fetched digest="sha256:af6d5164bc7f2d6cbaffa6512e6f75c2a8f006023abae3a99464e2cac72dc79f"
INFO[0000] fetched digest="sha256:9e28e44ee9e02f864a5979bb1352a9f2cde5988b19d90d8291f792947d6473be"
INFO[0000] fetched digest="sha256:cb0f79f77243fc0308b0f392dc8a3cf04b2f1efda4ca6047c1a56c7f3d741d34"
INFO[0000] fetched digest="sha256:df87481a09e9bb57fb7aff5143fde82f2141e69c8f0de4843696da047bc15d98"
INFO[0000] fetched digest="sha256:bed2176ad0d92c8a90c3faade1df343420bb7de1dc57add2b3d6ed60883563e1"
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:9e28e44ee9e02f864a5979bb1352a9f2cde5988b19d90d8291f792947d6473be 2075 [] map[] <nil>}
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:bed2176ad0d92c8a90c3faade1df343420bb7de1dc57add2b3d6ed60883563e1 379 [] map[] <nil>}
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:cb0f79f77243fc0308b0f392dc8a3cf04b2f1efda4ca6047c1a56c7f3d741d34 476 [] map[] <nil>}
INFO[0000] Could not find optional dependencies file dir=bundle_tmp045653365 file=bundle_tmp045653365/metadata load=annotations
INFO[0000] found csv, loading bundle dir=bundle_tmp045653365 file=bundle_tmp045653365/manifests load=bundle
INFO[0000] loading bundle file dir=bundle_tmp045653365/manifests file=barktgx.example.comktgx_fooktgxes.yaml load=bundle
INFO[0000] loading bundle file dir=bundle_tmp045653365/manifests file=e2e-ktgx-metrics-reader_rbac.authorization.k8s.io_v1beta1_clusterrole.yaml load=bundle
INFO[0000] loading bundle file dir=bundle_tmp045653365/manifests file=e2e-ktgx.clusterserviceversion.yaml load=bundle
INFO[0000] XXX call AddOperatorBundle load=AddBundleSemver
INFO[0000] XXX call AddPackageChannelsFromGraph load=AddBundleSemver
INFO[0000] XXX calling addPackageIfNotExists load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX loop through channels in graph load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX addOrUpdateChannel failed load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX updateDefaultChannel load=AddBundlePackageChannelsFromGraph
INFO[0000] YYY update package set default_channel = [] where name = e2e-ktgx load=updateDefaultChannel
ERRO[0000] YYY error: FOREIGN KEY constraint failed load=updateDefaultChannel
INFO[0000] YYY updateDefaultChannel failed load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX update each channel's graph load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX addChannelEntry line 186 load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX line 193 load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX 205 load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX 215 load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX 224 load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX is nextNode empty? load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX breaking because nextnode is empty load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX commit transaction load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX return aggregate errors load=AddBundlePackageChannelsFromGraph
INFO[0000] XXX errors : [FOREIGN KEY constraint failed] load=AddBundlePackageChannelsFromGraph
ERRO[0000] permissive mode disabled bundles="[quay.io/vnarsing/memcached-operator:v1]" error="loadManifestsSemver: error loading bundle into db: FOREIGN KEY constraint failed"
Error: loadManifestsSemver: error loading bundle into db: FOREIGN KEY constraint failed
Usage:
opm registry add [flags]
Flags:
-b, --bundle-images strings comma separated list of links to bundle image
-c, --container-tool string tool to interact with container images (save, build, etc.). One of: [none, docker, podman] (default "none")
-d, --database string relative path to database file (default "bundles.db")
--debug enable debug logging
-h, --help help for add
--mode string graph update mode that defines how channel graphs are updated. One of: [replaces, semver, semver-skippatch] (default "replaces")
--permissive allow registry load errors
Global Flags:
--skip-tls skip TLS certificate verification for container image registries while pulling bundles or index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment