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

Unable to install the olm #882

Closed
ssimk0 opened this issue Jun 3, 2019 · 4 comments
Closed

Unable to install the olm #882

ssimk0 opened this issue Jun 3, 2019 · 4 comments

Comments

@ssimk0
Copy link

ssimk0 commented Jun 3, 2019

Hi,

I want install the olm in my cluster which have installed kube v1.13.6. I try use both options what you explain in release notes here

I still get error message:

customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com configured
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com unchanged
customresourcedefinition.apiextensions.k8s.io/operatorgroups.operators.coreos.com unchanged
namespace/olm unchanged
namespace/operators unchanged
clusterrole.rbac.authorization.k8s.io/system:controller:operator-lifecycle-manager unchanged
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-olm unchanged
clusterrole.rbac.authorization.k8s.io/aggregate-olm-edit unchanged
clusterrole.rbac.authorization.k8s.io/aggregate-olm-view unchanged
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": serviceaccounts "olm-operator-serviceaccount" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": deployments.apps "olm-operator" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": deployments.apps "catalog-operator" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": configmaps "olm-operators" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": catalogsources.operators.coreos.com "olm-operators" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": operatorgroups.operators.coreos.com "global-operators" is forbidden: unable to create new content in namespace operators because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": operatorgroups.operators.coreos.com "olm-operators" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": subscriptions.operators.coreos.com "packageserver" is forbidden: unable to create new content in namespace olm because it is being terminated
Error from server (Forbidden): error when creating "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml": catalogsources.operators.coreos.com "operatorhubio-catalog" is forbidden: unable to create new content in namespace olm because it is being terminated

Could you help me with that?

@dmesser
Copy link
Contributor

dmesser commented Jun 3, 2019

Looks like you are trying to deploy OLM over a previous install where you tried to uninstall by deleting the namespace. The namespace is stuck in terminating state, most likely due to some finalizers. Easiest is to start from scratch using a new minikube.

Did you try to uninstall using kubectl delete -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/0.10.0/olm.yaml?

@ecordell
Copy link
Member

ecordell commented Jun 3, 2019

If you have a previously failed install, usually the thing keeping the namespace around is the apiserver:

kubectl delete apiservices.apiregistration.k8s.io v1.packages.operators.coreos.com
kubectl delete apiservices.apiregistration.k8s.io v1alpha1.packages.apps.redhat.com

(only one is needed, depends on how old your last install was).

I'm going to close this because I don't believe you would see this issue on a fresh cluster. If you continue to have issues installing, please open a new issue or comment here.

@ecordell ecordell closed this as completed Jun 3, 2019
@dmesser dmesser reopened this Jun 4, 2019
@dmesser
Copy link
Contributor

dmesser commented Jun 4, 2019

Deleting the API service did not help for me. Only when I remove the finalizer kubernetes on the namespace it is eventually deleted.

@ssimk0
Copy link
Author

ssimk0 commented Jun 5, 2019

On fresh cluster it work probably some problem after upgrading olm, I try remove old and install new one.

@ssimk0 ssimk0 closed this as completed Jun 5, 2019
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

3 participants