cilium / cilium-olm

Other
10 stars 13 forks source link

scan failure: certified-operator-catalog-initialization logs #23

Closed errordeveloper closed 3 years ago

errordeveloper commented 3 years ago
===== Test: operator-catalog-initialization =====

 The operator FAILED the catalog initialization test.

======== Debug output of the operator-registry initializer command for release-4.2 =========

# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ?sqlite3SelectNew?:
sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
123303 |   return pNew;
       |          ^~~~
sqlite3-binding.c:123263:10: note: declared here
123263 |   Select standin;
       |          ^~~~~~~

======== Debug output of the operator-registry initializer command for release-4.3 =========

# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ?sqlite3SelectNew?:
sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
123303 |   return pNew;
       |          ^~~~
sqlite3-binding.c:123263:10: note: declared here
123263 |   Select standin;
       |          ^~~~~~~
time="2021-02-01T22:14:15Z" level=fatal msg="permissive mode disabled" error="error loading manifests from directory: [error checking provided apis in bundle : error decoding CRD: no kind \"CustomResourceDefinition\" is registered for version \"apiextensions.k8s.io/v1\" in scheme \"pkg/registry/bundle.go:15\", error adding operator bundle : error decoding CRD: no kind \"CustomResourceDefinition\" is registered for version \"apiextensions.k8s.io/v1\" in scheme \"pkg/registry/bundle.go:15\", error loading package into db: [FOREIGN KEY constraint failed, no default channel specified for cilium]]"
exit status 1

======== Debug output of the operator-registry initializer command for release-4.4 =========

# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ?sqlite3SelectNew?:
sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
123303 |   return pNew;
       |          ^~~~
sqlite3-binding.c:123263:10: note: declared here
123263 |   Select standin;
       |          ^~~~~~~
time="2021-02-01T22:18:01Z" level=fatal msg="permissive mode disabled" error="error loading manifests from directory: [error checking provided apis in bundle : error decoding CRD: no kind \"CustomResourceDefinition\" is registered for version \"apiextensions.k8s.io/v1\" in scheme \"pkg/registry/bundle.go:15\", error adding operator bundle : error decoding CRD: no kind \"CustomResourceDefinition\" is registered for version \"apiextensions.k8s.io/v1\" in scheme \"pkg/registry/bundle.go:15\", error loading package into db: [FOREIGN KEY constraint failed, no default channel specified for cilium]]"
exit status 1

======== Debug output of the operator-registry initializer command for release-4.5 =========

# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ?sqlite3SelectNew?:
sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
123303 |   return pNew;
       |          ^~~~
sqlite3-binding.c:123263:10: note: declared here
123263 |   Select standin;
       |          ^~~~~~~

-------------------
Execution Reference:

-> /cvp/cvp-isv-operator-metadata-validation-test/certified-ospid-e31ac831-7e72-42bb-baf9-f392ef7ea622-3c06907c-655c-4465-94d5-c1ba6dafe42f/9dc0af89-488f-4fae-b8cb-ba99b7565918/

All level=info lines were dropped...

errordeveloper commented 3 years ago

Turns out OpenShift 4.5 requires CRD API version v1beta1. The error about default channel is probably just a side-effect of missing CRD...