operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.72k stars 545 forks source link

Operator OLM installation failing with error message "Failed to install OLM version "latest": deployment/olm-operator failed to rollout: timed out waiting for the condition " #3107

Open codersyacht opened 1 year ago

codersyacht commented 1 year ago

Command executed:

operator-sdk olm install

Result:

INFO[0000] Fetching CRDs for version "latest"           
INFO[0000] Fetching resources for resolved version "latest" 
INFO[0001] Creating CRDs and resources                  
INFO[0001]   Creating CustomResourceDefinition "catalogsources.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "catalogsources.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "clusterserviceversions.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "clusterserviceversions.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "installplans.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "installplans.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "olmconfigs.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "olmconfigs.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "operatorconditions.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "operatorconditions.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "operatorgroups.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "operatorgroups.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "operators.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "operators.operators.coreos.com" created 
INFO[0001]   Creating CustomResourceDefinition "subscriptions.operators.coreos.com" 
INFO[0001]   CustomResourceDefinition "subscriptions.operators.coreos.com" created 
INFO[0001]   Creating Namespace "olm"                   
INFO[0001]   Namespace "olm" created                    
INFO[0001]   Creating Namespace "operators"             
INFO[0001]   Namespace "operators" created              
INFO[0001]   Creating ServiceAccount "olm/olm-operator-serviceaccount" 
INFO[0001]   ServiceAccount "olm/olm-operator-serviceaccount" created 
INFO[0001]   Creating ClusterRole "system:controller:operator-lifecycle-manager" 
INFO[0001]   ClusterRole "system:controller:operator-lifecycle-manager" created 
INFO[0001]   Creating ClusterRoleBinding "olm-operator-binding-olm" 
INFO[0001]   ClusterRoleBinding "olm-operator-binding-olm" created 
INFO[0001]   Creating OLMConfig "cluster"               
INFO[0001]     Failed to create OLMConfig "cluster". CRD is not ready yet. Retrying... 
INFO[0004]   OLMConfig "cluster" created                
INFO[0004]   Creating Deployment "olm/olm-operator"     
INFO[0004]   Deployment "olm/olm-operator" created      
INFO[0004]   Creating Deployment "olm/catalog-operator" 
INFO[0004]   Deployment "olm/catalog-operator" created  
INFO[0004]   Creating ClusterRole "aggregate-olm-edit"  
INFO[0004]   ClusterRole "aggregate-olm-edit" created   
INFO[0004]   Creating ClusterRole "aggregate-olm-view"  
INFO[0004]   ClusterRole "aggregate-olm-view" created   
INFO[0004]   Creating OperatorGroup "operators/global-operators" 
INFO[0004]   OperatorGroup "operators/global-operators" created 
INFO[0004]   Creating OperatorGroup "olm/olm-operators" 
INFO[0004]   OperatorGroup "olm/olm-operators" created  
INFO[0004]   Creating ClusterServiceVersion "olm/packageserver" 
INFO[0004]   ClusterServiceVersion "olm/packageserver" created 
INFO[0004]   Creating CatalogSource "olm/operatorhubio-catalog" 
INFO[0004]   CatalogSource "olm/operatorhubio-catalog" created 
INFO[0004] Waiting for deployment/olm-operator rollout to complete 
INFO[0004]   Waiting for Deployment "olm/olm-operator" to rollout: 0 of 1 updated replicas are available 
FATA[0120] Failed to install OLM version "latest": deployment/olm-operator failed to rollout: timed out waiting for the condition 
image image

kubectl version:

Client Version: v1.28.3 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.3

codersyacht commented 1 year ago

This step had always worked till today.

codersyacht commented 11 months ago

Any update on this ? Issue disappears when both KVM and Docker is present. With just Docker it does not work.