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]kafka create failed for specified cluster topology not found #6904

Closed
ahjing99 opened this issue Mar 28, 2024 · 2 comments
Closed

[BUG]kafka create failed for specified cluster topology not found #6904

ahjing99 opened this issue Mar 28, 2024 · 2 comments
Assignees
Labels
bug ci kind/bug Something isn't working
Milestone

Comments

@ahjing99
Copy link
Collaborator

➜ ~ kbcli version
Kubernetes: v1.27.8-gke.1067004
KubeBlocks: 0.9.0-alpha.7
kbcli: 0.9.0-alpha.1

➜  ~ kbcli addon upgrade kafka --force
Warn: addon kafka current version 0.8.1 is either the latest or newer than the expected version 0.8.1.
Warning: --force flag will skip version checks, which may result in the cluster not running correctly.
Addon kafka-0.8.1 upgrade successed.

      `kbcli addon enable  kafka `

addon.extensions.kubeblocks.io/kafka enabled

➜  ~ k get cd,cv,cmpd | grep kafka
Warning: The ClusterVersion CRD has been deprecated since 0.9.0
clusterdefinition.apps.kubeblocks.io/kafka                                         Available   2m32s
clusterversion.apps.kubeblocks.io/kafka-3.3.2                        kafka                Available   2m34s
componentdefinition.apps.kubeblocks.io/kafka-broker        kafka              3.3.2             Available     2m35s
componentdefinition.apps.kubeblocks.io/kafka-combine       kafka              3.3.2             Available     2m35s
componentdefinition.apps.kubeblocks.io/kafka-controller    kafka-controller   3.3.2             Available     2m35s
componentdefinition.apps.kubeblocks.io/kafka-exporter      kafka-exporter     3.3.2             Available     2m35s


      `kbcli cluster create  kafka kafka-sxubny                 --mode='combined'                 --cpu=0.5                 --memory=0.5                 --storage=1                 --availability-policy=none --termination-policy=DoNotTerminate --monitoring-interval=0 --version=kafka-3.3.2  --storage-enable=true                 --meta-storage=1 --replicas=1  --namespace default `

Cluster kafka-sxubny created

➜  ~ k describe cluster kafka-sxubny
Name:         kafka-sxubny
Namespace:    default
Labels:       app.kubernetes.io/instance=kafka-sxubny
              app.kubernetes.io/version=3.3.2
              clusterdefinition.kubeblocks.io/name=kafka
              clusterversion.kubeblocks.io/name=kafka-3.3.2
              helm.sh/chart=kafka-cluster-0.8.1
Annotations:  kubeblocks.io/enabled-pod-ordinal-svc: broker
              kubeblocks.io/extra-env:
                {"KB_KAFKA_ENABLE_SASL":"false","KB_KAFKA_BROKER_HEAP":"-XshowSettings:vm -XX:MaxRAMPercentage=100 -Ddepth=64","KB_KAFKA_CONTROLLER_HEAP":...
API Version:  apps.kubeblocks.io/v1alpha1
Kind:         Cluster
Metadata:
  Creation Timestamp:  2024-03-28T06:02:39Z
  Finalizers:
    cluster.kubeblocks.io/finalizer
  Generation:  1
  Managed Fields:
    API Version:  apps.kubeblocks.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubeblocks.io/enabled-pod-ordinal-svc:
          f:kubeblocks.io/extra-env:
        f:labels:
          .:
          f:app.kubernetes.io/instance:
          f:app.kubernetes.io/version:
          f:helm.sh/chart:
      f:spec:
        .:
        f:affinity:
          .:
          f:podAntiAffinity:
          f:tenancy:
        f:clusterDefinitionRef:
        f:clusterVersionRef:
        f:componentSpecs:
        f:services:
        f:terminationPolicy:
    Manager:      kbcli
    Operation:    Update
    Time:         2024-03-28T06:02:39Z
    API Version:  apps.kubeblocks.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:finalizers:
          .:
          v:"cluster.kubeblocks.io/finalizer":
        f:labels:
          f:clusterdefinition.kubeblocks.io/name:
          f:clusterversion.kubeblocks.io/name:
    Manager:      manager
    Operation:    Update
    Time:         2024-03-28T06:02:39Z
    API Version:  apps.kubeblocks.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:conditions:
    Manager:         manager
    Operation:       Update
    Subresource:     status
    Time:            2024-03-28T06:02:39Z
  Resource Version:  2509819
  UID:               22375a79-270e-4409-ba67-41a67098ce8f
Spec:
  Affinity:
    Pod Anti Affinity:     Preferred
    Tenancy:               SharedNode
  Cluster Definition Ref:  kafka
  Cluster Version Ref:     kafka-3.3.2
  Component Specs:
    Component Def:      kafka-combine
    Component Def Ref:  kafka-server
    Monitor:            true
    Name:               broker
    Replicas:           1
    Resources:
      Limits:
        Cpu:     0.5
        Memory:  0.5Gi
      Requests:
        Cpu:     0.5
        Memory:  0.5Gi
    Tls:         false
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:  1Gi
      Name:           metadata
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:    1Gi
    Component Def:      kafka-exporter
    Component Def Ref:  kafka-exporter
    Monitor:            true
    Name:               metrics-exp
    Replicas:           1
    Resources:
      Limits:
        Cpu:     0.5
        Memory:  0.5Gi
      Requests:
        Cpu:     0.5
        Memory:  0.5Gi
  Services:
    Component Selector:  broker
    Name:                bootstrap
    Service Name:        bootstrap
    Spec:
      Ports:
        Name:          kafka-client
        Port:          9092
        Protocol:      TCP
        Target Port:   9092
      Type:            ClusterIP
  Termination Policy:  DoNotTerminate
Status:
  Conditions:
    Last Transition Time:  2024-03-28T06:02:39Z
    Message:               specified cluster topology not found:
    Reason:                PreCheckFailed
    Status:                False
    Type:                  ProvisioningStarted
Events:                    <none>

➜  ~ kbcli report cluster   --with-logs --all-containers   kafka-sxubny
reporting cluster information to report-cluster-kafka-sxubny-2024-03-28-14-05-31.zip
processing manifests                               OK
processing events                                  OK
process pod logs                                   OK
➜  ~ kbcli report kubeblocks --with-logs --all-containers --output yaml
reporting KubeBlocks information to report-kubeblocks-2024-03-28-14-05-46.zip
processing manifests                               OK
processing events                                  OK
process pod logs                                   OK

report-kubeblocks-2024-03-28-14-05-46.zip
report-cluster-kafka-sxubny-2024-03-28-14-05-31.zip

@ahjing99 ahjing99 added the kind/bug Something isn't working label Mar 28, 2024
@ahjing99 ahjing99 added this to the Release 0.9.0 milestone Mar 28, 2024
@ahjing99
Copy link
Collaborator Author

similar with #6903

@leon-inf
Copy link
Contributor

dup with #6903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants