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

[BUG] kbcli addon enable error no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1" #423

Open
JashBook opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Stale

Comments

@JashBook
Copy link
Collaborator

JashBook commented Aug 9, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
`kbcli kubeblocks install --create-namespace --version 1.0.0-alpha.2 --set dataProtection.image.datasafed.tag=0.2.0  --namespace kb-system `
    
Kubernetes version 1.30.0
kbcli version 1.0.0-alpha.0
Collecting data from cluster                       OK
Kubernetes cluster preflight                       OK
  Warn
  - This application requires at least 3 nodes
  - The default storage class was not found. You can use option --set storageClass=<storageClassName> when creating cluster
Create CRDs                                        OK
Add and update repo kubeblocks                     OK
Install KubeBlocks 1.0.0-alpha.2                   OK
Wait for addons to be enabled
  apecloud-mysql                                   Failed
  kafka                                            Failed
  mongodb                                          Failed
  mysql                                            Failed
  postgresql                                       Failed
  pulsar                                           Failed
  redis                                            Failed
  snapshot-controller                              OK

Failed addons:
NAME             TIME                         REASON                   MESSAGE                                                                                                                    
mongodb          Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-mongodb" does not exist. Installing it now.                                                              
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "mongodb-5.0" nam   
                                                                       espace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                          
                                                                       ensure CRDs are installed first, resource mapping not found for name: "mongodb-4.2" namespace: "" from "": no matches fo   
                                                                       r kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                           
                                                                       ensure CRDs are installed first, resource mapping not found for name: "mongodb-4.4" namespace: "" from "": no matches fo   
                                                                       r kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                           
                                                                       ensure CRDs are installed first, resource mapping not found for name: "mongodb-6.0" namespace: "" from "": no matches fo   
                                                                       r kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                           
                                                                       ensure CRDs are installed first, resource mapping not found for name: "mongodb-sharding-5.0" namespace: "" from "": no m   
                                                                       atches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                  
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
postgresql       Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-postgresql" does not exist. Installing it now.                                                           
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "postgresql-14.7.   
                                                                       2" namespace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                    
                                                                       ensure CRDs are installed first, resource mapping not found for name: "postgresql-12.14.1" namespace: "" from "": no mat   
                                                                       ches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                    
                                                                       ensure CRDs are installed first, resource mapping not found for name: "postgresql-12.15.0" namespace: "" from "": no mat   
                                                                       ches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                    
                                                                       ensure CRDs are installed first, resource mapping not found for name: "postgresql-14.8.0" namespace: "" from "": no matc   
                                                                       hes for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                     
                                                                       ensure CRDs are installed first, resource mapping not found for name: "postgresql-12.14.0" namespace: "" from "": no mat   
                                                                       ches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                    
                                                                       ensure CRDs are installed first, resource mapping not found for name: "postgresql-15.7.0" namespace: "" from "": no matc   
                                                                       hes for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                     
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
pulsar           Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-pulsar" does not exist. Installing it now.                                                               
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "pulsar-2.11.2" n   
                                                                       amespace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                        
                                                                       ensure CRDs are installed first, resource mapping not found for name: "pulsar-3.0.2" namespace: "" from "": no matches f   
                                                                       or kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                          
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
redis            Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-redis" does not exist. Installing it now.                                                                
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "redis-7.2.4" nam   
                                                                       espace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                          
                                                                       ensure CRDs are installed first, resource mapping not found for name: "redis-7.0.6" namespace: "" from "": no matches fo   
                                                                       r kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                           
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
apecloud-mysql   Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-apecloud-mysql" does not exist. Installing it now.                                                       
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "ac-mysql-8.0.30-   
                                                                       1" namespace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                    
                                                                       ensure CRDs are installed first, resource mapping not found for name: "ac-mysql-8.0.30" namespace: "" from "": no matche   
                                                                       s for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                       
                                                                       ensure CRDs are installed first, resource mapping not found for name: "kb.classes.default.apecloud-mysql.mysql" namespac   
                                                                       e: "" from "": no matches for kind "ComponentClassDefinition" in version "apps.kubeblocks.io/v1alpha1"                     
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
mysql            Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-mysql" does not exist. Installing it now.                                                                
                                                                       Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "mysql-5.7.44" na   
                                                                       mespace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                         
                                                                       ensure CRDs are installed first, resource mapping not found for name: "mysql-8.0.33" namespace: "" from "": no matches f   
                                                                       or kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                                                          
                                                                       ensure CRDs are installed first, resource mapping not found for name: "kb.classes.default.mysql.mysql" namespace: "" fro   
                                                                       m "": no matches for kind "ComponentClassDefinition" in version "apps.kubeblocks.io/v1alpha1"                              
                                                                       ensure CRDs are installed first]                                                                                           
                                                                                                                                                                                                  
kafka            Aug 09,2024 18:07 UTC+0800   InstallationFailedLogs   Release "kb-addon-kafka" does not exist. Installing it now.                                                                
                                                                       Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "kafka-3.3.2" name   
                                                                       space: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1"                           
                                                                       ensure CRDs are installed first                                                                                            
                                                                                                                                                                                                  
Failed to wait for auto-install addons to be enabled, run "kbcli kubeblocks status" to check the status
error: some addons are failed to be enabled
check kubeblocks status...
check kubeblocks resources status

      `kbcli kubeblocks status`
    
KubeBlocks is deployed in namespace: kb-system,version: 1.0.0-alpha.2

KubeBlocks Workloads:
NAMESPACE   KIND         NAME                           READY PODS   CPU(CORES)   MEMORY(BYTES)   CREATED-AT                   
kb-system   Deployment   kb-addon-snapshot-controller   1/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Deployment   kubeblocks                     1/1          N/A          N/A             Aug 09,2024 18:06 UTC+0800   
kb-system   Deployment   kubeblocks-dataprotection      1/1          N/A          N/A             Aug 09,2024 18:06 UTC+0800   
kb-system   Job          install-apecloud-mysql-addon   0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-kafka-addon            0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-mongodb-addon          0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-mysql-addon            0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-postgresql-addon       0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-pulsar-addon           0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   
kb-system   Job          install-redis-addon            0/1          N/A          N/A             Aug 09,2024 18:07 UTC+0800   

KubeBlocks Addons:
NAME                           STATUS     TYPE   PROVIDER   
alertmanager-webhook-adaptor   Disabled   Helm   N/A        
apecloud-mysql                 Failed     Helm   N/A        
apecloud-otel-collector        Disabled   Helm   N/A        
aws-load-balancer-controller   Disabled   Helm   N/A        
csi-driver-nfs                 Disabled   Helm   N/A        
csi-hostpath-driver            Disabled   Helm   N/A        
grafana                        Disabled   Helm   N/A        
kafka                          Failed     Helm   N/A        
kubeblocks-csi-driver          Disabled   Helm   N/A        
llm                            Disabled   Helm   N/A        
loki                           Disabled   Helm   N/A        
mongodb                        Failed     Helm   N/A        
mysql                          Failed     Helm   N/A        
postgresql                     Failed     Helm   N/A        
prometheus                     Disabled   Helm   N/A        
pulsar                         Failed     Helm   N/A        
qdrant                         Disabled   Helm   N/A        
redis                          Failed     Helm   N/A        
snapshot-controller            Enabled    Helm   N/A        
victoria-metrics-agent         Disabled   Helm   N/A        

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@JashBook JashBook added the bug Something isn't working label Aug 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

This issue has been marked as stale because it has been open for 30 days with no activity

@github-actions github-actions bot added the Stale label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants