Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OLM install failing with clusterserviceversions.operators.coreos.com is invalid #1870

Closed
spkchels opened this issue Nov 19, 2020 · 1 comment

Comments

@spkchels
Copy link

OLM installation fails on mac / minikube

Fails with the below error message

xx:sprk yy$ curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh | bash -s v0.17.0
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/operatorgroups.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/operators.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com unchanged
The CustomResourceDefinition "clusterserviceversions.operators.coreos.com" is invalid: spec.preserveUnknownFields: Invalid value: true: must be false in order to use defaults in the schema
xx:sprk yy$

Ran the command provided in https://operatorhub.io/operator/spark-gcp

Environment

kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-12T01:09:16Z", GoVersion:"go1.15.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-11T13:09:17Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}

minikube version
minikube version: v1.15.1
commit: 23f40a012abb52eff365ff99a709501a61ac5876

System Version: macOS 10.15.7 (19H15)
Kernel Version: Darwin 19.6.0
@spkchels
Copy link
Author

Apologies. Was a problem with the certificates on quay.io.

Pods "olm-operator" and "catalog-operator" were not getting deployed because of self signed certificate issue.
Error response from daemon: Get https://quay.io/v2/: x509: certificate signed by unknown authority
ssh: Process exited with status 1

Enabled the certificate and it works.

openssl s_client -showcerts -verify 32 -connect quay.io:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /../.minikube/files/etc/ssl/certs/ca.crt
mkdir -p ../.minikube/files/etc/docker/certs.d/quay.io/
mkdir -p ../.minikube/files/etc/docker/certs.d/quay.io:443/
cp ../.minikube/files/etc/ssl/certs/ca.crt ../.minikube/files/etc/docker/certs.d/quay.io/
cp ../.minikube/files/etc/ssl/certs/ca.crt ../.minikube/files/etc/docker/certs.d/quay.io:443/
minikube delete;minikube start --insecure-registry=quay.io:443

Successfully deployed now.

Should have first gone to stackoverflow. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant