apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.06k stars 167 forks source link

[BUG] kubeblocks install addon kafka/mysql/postgresql/redis Failed #8137

Open JashBook opened 1 week ago

JashBook commented 1 week ago

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

To Reproduce Steps to reproduce the behavior:

  1. kubeblocks install
    kbcli kubeblocks install --create-namespace --version 0.9.1-beta.24 --set image.registry=docker.io --set dataProtection.image.registry=docker.io --set addonChartsImage.registry=docker.io --set admissionWebhooks.enabled=true --set admissionWebhooks.ignoreReplicasCheck=true --set dataProtection.image.datasafed.tag=0.2.0
  2. See error
    
    Kubernetes version 1.27.16
    Kubernetes provider GKE
    kbcli version 0.9.1-beta.10
    25h25h25h
    25h25h25h25h
    Failed addons:
    error: some addons are failed to be enabled
    NAME    TIME                         REASON                   MESSAGE                                                                                                                    
    mysql   Sep 12,2024 02:45 UTC+0000   InstallationFailedLogs   Release "kb-addon-mysql" does not exist. Installing it now.                                                                
                                                              W0912 02:45:06.388943       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:06.399005       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:06.408776       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:06.445197       1 warnings.go:70] Due to the lack of practical use cases, this API is deprecated from KB 0.9   
                                                              .0.                                                                                                                        
                                                              W0912 02:45:07.198882       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:07.210393       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:07.215913       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:07.238849       1 warnings.go:70] Due to the lack of practical use cases, this API is deprecated from KB 0.9   
                                                              .0.                                                                                                                        
                                                              W0912 02:45:11.222285       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:11.235960       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:11.236020       1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0                       
                                                              W0912 02:45:11.287108       1 warnings.go:70] Due to the lack of practical use cases, this API is deprecated from KB 0.9   
                                                              .0.                                                                                                                        
                                                              Error: release kb-addon-mysql failed, and has been uninstalled due to atomic being set: 3 errors occurred:                 
                                                                  * admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "mysql-5.   
                                                              7.44" is invalid: spec.clusterDefinitionRef: Invalid value: "mysql": ClusterDefinition.apps.kubeblocks.io "mysql" not fo   
                                                              und                                                                                                                        
                                                                  * admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "mysql-8.   
                                                              4.2" is invalid: spec.clusterDefinitionRef: Invalid value: "mysql": ClusterDefinition.apps.kubeblocks.io "mysql" not fou   
                                                              nd                                                                                                                         
                                                                  * admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "mysql-8.   
                                                              0.33" is invalid: spec.clusterDefinitionRef: Invalid value: "mysql": ClusterDefinition.apps.kubeblocks.io "mysql" not fo   
                                                              und                                                                                                                        

redis Sep 12,2024 02:45 UTC+0000 InstallationFailedLogs Release "kb-addon-redis" does not exist. Installing it now.
W0912 02:45:08.231308 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0912 02:45:08.369860 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0912 02:45:10.907510 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0912 02:45:10.907513 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0912 02:45:13.116473 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0912 02:45:13.117768 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
Error: release kb-addon-redis failed, and has been uninstalled due to atomic being set: 5 errors occurred:

Enabling addons: kafka, postgresql, mongodb Please wait for a while and try to run "kbcli addon list" to check addons status. Failed to wait for auto-install addons to be enabled, run "kbcli kubeblocks status" to check the status


describe addons
kafka

Events: Type Reason Age From Message


Normal AddonAutoInstall 11m addon-controller Addon enabled auto-install Normal EnablingAddon 11m addon-controller Progress to Enabling phase Warning InstallationFailed 10m addon-controller Installation failed, do inspect error from jobs.batch kb-xekpwwfway/install-kafka-addon Warning InstallationFailedLogs 10m addon-controller Release "kb-addon-kafka" does not exist. Installing it now. W0912 02:45:05.959630 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0 W0912 02:45:06.745410 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0 W0912 02:45:11.094321 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0 Error: release kb-addon-kafka failed, and has been uninstalled due to atomic being set: 1 error occurred:

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):

Additional context Add any other context about the problem here.

shanshanying commented 1 week ago

Failed addons: 178error: some addons are failed to be enabled 179NAME TIME REASON MESSAGE
180pulsar Sep 12,2024 03:51 UTC+0000 InstallationFailedLogs Release "kb-addon-pulsar" does not exist. Installing it now.
181 W0912 03:51:45.674824 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
182 W0912 03:51:45.678817 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
183 W0912 03:51:46.272525 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
184 W0912 03:51:46.273960 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
185 W0912 03:51:47.848215 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
186 W0912 03:51:47.848252 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
187 Error: release kb-addon-pulsar failed, and has been uninstalled due to atomic being set: 2 errors occurred:
188 admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "pulsar-2
189 .11.2" is invalid: spec.clusterDefinitionRef: Invalid value: "pulsar": ClusterDefinition.apps.kubeblocks.io "pulsar" not
190 found
191
admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "pulsar-3
192 .0.2" is invalid: spec.clusterDefinitionRef: Invalid value: "pulsar": ClusterDefinition.apps.kubeblocks.io "pulsar" not
193 found
194
195
196
197kafka Sep 12,2024 03:51 UTC+0000 InstallationFailedLogs Release "kb-addon-kafka" does not exist. Installing it now.
198 W0912 03:51:49.599263 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
199 W0912 03:51:50.447220 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
200 W0912 03:51:51.281613 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
201 Error: release kb-addon-kafka failed, and has been uninstalled due to atomic being set: 1 error occurred:
202 * admission webhook "vclusterversion.kb.io" denied the request: ClusterVersion.apps.kubeblocks.io/v1alpha1 "kafka-3.
203 3.2" is invalid: spec.clusterDefinitionRef: Invalid value: "kafka": ClusterDefinition.apps.kubeblocks.io "kafka" not fou
204 nd