Closed JashBook closed 1 month ago
invalid: spec.components[*].consensusSpec: Required value: consensusSpec is required when workloadType=Consensus
Fixed
curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash -s v0.9.1-beta.10
kbcli kubeblocks install --create-namespace --version 0.9.1-beta.24 --set image.registry=[docker.io](http://docker.io/) --set dataProtection.image.registry=[docker.io](http://docker.io/) --set addonChartsImage.registry=[docker.io](http://docker.io/) --set admissionWebhooks.enabled=true --set admissionWebhooks.ignoreReplicasCheck=true --set dataProtection.image.datasafed.tag=0.2.0
kbcli addon describe apecloud-mysql
Name: apecloud-mysql
Description: ApeCloud MySQL is a database that is compatible with MySQL syntax and achieves high availability through the utilization of the RAFT consensus protocol.
Labels: [addon.kubeblocks.io/name=apecloud-mysql,addon.kubeblocks.io/provider=apecloud,addon.kubeblocks.io/version=0.9.0-beta.10,addon.kubeblocks.io/model=RDBMS](http://addon.kubeblocks.io/name=apecloud-mysql,addon.kubeblocks.io/provider=apecloud,addon.kubeblocks.io/version=0.9.0-beta.10,addon.kubeblocks.io/model=RDBMS)
Type: Helm
Status: Failed
Auto-install: true
Default install selector: NONE
NAME REPLICAS STORAGE CPU (REQ/LIMIT) MEMORY (REQ/LIMIT) STORAGE-CLASS TOLERATIONS PV-ENABLED
main / /
Failed Message
TIME REASON MESSAGE
Sep 11,2024 18:55 UTC+0800 InstallationFailedLogs Release "kb-addon-apecloud-mysql" does not exist. Installing it now.
W0911 11:04:41.173233 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:41.189333 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:41.214029 1 warnings.go:70] Due to the lack of practical use cases, this API is deprecated from KB 0.9
.0.
W0911 11:04:41.868852 1 warnings.go:70] unknown field "spec.backupPolicies[0].target.fallBackRole"
W0911 11:04:41.868864 1 warnings.go:70] unknown field "spec.backupPolicies[0].target.fallBackRole"
W0911 11:04:41.967022 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:41.978141 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:42.009831 1 warnings.go:70] Due to the lack of practical use cases, this API is deprecated from KB 0.9
.0.
W0911 11:04:47.519728 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:47.519752 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 11:04:47.580872 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-apecloud-mysql failed, and has been uninstalled due to atomic being set: 6 errors occurred:
* admission webhook "[vclusterversion.kb.io](http://vclusterversion.kb.io/)" denied the request: [ClusterVersion.apps.kubeblocks.io/v1alpha1](http://clusterversion.apps.kubeblocks.io/v1alpha1) "ac-mysql
-8.0.30" is invalid: spec.clusterDefinitionRef: Invalid value: "apecloud-mysql": [ClusterDefinition.apps.kubeblocks.io](http://clusterdefinition.apps.kubeblocks.io/) "a
pecloud-mysql" not found
* admission webhook "[vclusterversion.kb.io](http://vclusterversion.kb.io/)" denied the request: [ClusterVersion.apps.kubeblocks.io/v1alpha1](http://clusterversion.apps.kubeblocks.io/v1alpha1) "ac-mysql
-8.0.30-1" is invalid: spec.clusterDefinitionRef: Invalid value: "apecloud-mysql": [ClusterDefinition.apps.kubeblocks.io](http://clusterdefinition.apps.kubeblocks.io/)
"apecloud-mysql" not found
* Internal error occurred: failed calling webhook "[vconfigconstraint.kb.io](http://vconfigconstraint.kb.io/)": failed to call webhook: the server coul
d not find the requested resource
* Internal error occurred: failed calling webhook "[vconfigconstraint.kb.io](http://vconfigconstraint.kb.io/)": failed to call webhook: the server coul
d not find the requested resource
* Internal error occurred: failed calling webhook "[vconfigconstraint.kb.io](http://vconfigconstraint.kb.io/)": failed to call webhook: the server coul
d not find the requested resource
* Internal error occurred: failed calling webhook "[vconfigconstraint.kb.io](http://vconfigconstraint.kb.io/)": failed to call webhook: the server coul
d not find the requested resource
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
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 --namespace kb-pyrvxryzkv
Kubernetes version 1.27.16 Kubernetes provider GKE kbcli version 0.9.1
Failed addons: error: some addons are failed to be enabled NAME TIME REASON MESSAGE
etcd Sep 11,2024 09:11 UTC+0000 InstallationFailedLogs Release "kb-addon-etcd" does not exist. Installing it now.
W0911 09:11:24.406402 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 09:11:25.084365 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
W0911 09:11:25.532435 1 warnings.go:70] The ClusterVersion CRD has been deprecated since 0.9.0
Error: release kb-addon-etcd failed, and has been uninstalled due to atomic being set: 2 errors occurred:
cd" is invalid: spec.components[*].consensusSpec: Required value: consensusSpec is required when workloadType=Consensus
5.6" is invalid: spec.clusterDefinitionRef: Invalid value: "etcd": ClusterDefinition.apps.kubeblocks.io "etcd" not found
Enabling addons: kafka, mongodb, pulsar, redis, apecloud-mysql, mysql, postgresql, snapshot-controller 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
kbcli kubeblocks status
KubeBlocks is deployed in namespace: kb-pyrvxryzkv,version: 0.9.1-beta.24
Kubernetes Cluster: VERSION PROVIDER REGION AVAILABLE ZONES
v1.27.16-gke.1051001 GKE us-central1 us-central1-a,us-central1-b,us-central1-c
KubeBlocks Workloads: NAMESPACE KIND NAME READY PODS CPU(CORES) MEMORY(BYTES) CREATED-AT
kb-pyrvxryzkv Deployment kb-addon-snapshot-controller 1/1 1m 8Mi Sep 11,2024 09:11 UTC+0000
kb-pyrvxryzkv Deployment kubeblocks 1/1 57m 71Mi Sep 11,2024 09:10 UTC+0000
kb-pyrvxryzkv Deployment kubeblocks-dataprotection 1/1 4m 41Mi Sep 11,2024 09:10 UTC+0000
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
etcd Failed 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
kbcli version 0.9.1 kubeblocks version is:0.9.1-beta.24