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] neon cluster referenced cluster component definition is not defined: neon-compute #477

Open
JashBook opened this issue Apr 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JashBook
Copy link
Collaborator

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

To Reproduce
Steps to reproduce the behavior:

  1. enable addon
helm repo add kubeblocks-addons https://apecloud.github.io/helm-charts
helm upgrade -i kb-addon-neon kubeblocks-addons/neon --version 0.9.0 -n kb-system  
  1. create cluster
helm upgrade -i neon-cluster kubeblocks-addons/neon-cluster --version 0.9.0
  1. See error
kubectl get cluster
NAME           CLUSTER-DEFINITION   VERSION       TERMINATION-POLICY   STATUS   AGE
neon-cluster   neon                 neon-latest   Delete                        29s

describe cluster

kubectl describe cluster  neon-cluster
Name:         neon-cluster
Namespace:    default
Labels:       clusterdefinition.kubeblocks.io/name=neon
              clusterversion.kubeblocks.io/name=neon-latest
Annotations:  <none>
API Version:  apps.kubeblocks.io/v1alpha1
Kind:         Cluster
Metadata:
  Creation Timestamp:  2024-04-28T06:58:48Z
  Finalizers:
    cluster.kubeblocks.io/finalizer
  Generation:  1
  Managed Fields:
    API Version:  apps.kubeblocks.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:affinity:
          .:
          f:podAntiAffinity:
          f:tenancy:
          f:topologyKeys:
            .:
            v:"kubernetes.io/hostname":
        f:clusterDefinitionRef:
        f:clusterVersionRef:
        f:componentSpecs:
        f:terminationPolicy:
        f:tolerations:
    Manager:      kubectl-client-side-apply
    Operation:    Update
    Time:         2024-04-28T06:58:48Z
    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-04-28T06:58:48Z
    API Version:  apps.kubeblocks.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:conditions:
    Manager:         manager
    Operation:       Update
    Subresource:     status
    Time:            2024-04-28T06:58:48Z
  Resource Version:  1722800
  UID:               f14f0a95-7a5b-4998-b921-9f47b30863b5
Spec:
  Affinity:
    Pod Anti Affinity:  Preferred
    Tenancy:            SharedNode
    Topology Keys:
      kubernetes.io/hostname
  Cluster Definition Ref:  neon
  Cluster Version Ref:     neon-latest
  Component Specs:
    Component Def Ref:  neon-compute
    Monitor:            false
    Name:               compute
    No Create PDB:      false
    Replicas:           1
    Resources:
      Limits:
        Cpu:     1
        Memory:  2Gi
      Requests:
        Cpu:               0.5
        Memory:            0.5Gi
    Rsm Transform Policy:  ToSts
    Service Account Name:  kb-neon-cluster
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:    20Gi
    Component Def Ref:  neon-storagebroker
    Monitor:            false
    Name:               neon-storagebroker
    No Create PDB:      false
    Replicas:           1
    Resources:
      Limits:
        Cpu:     1
        Memory:  2Gi
      Requests:
        Cpu:               0.5
        Memory:            0.5Gi
    Rsm Transform Policy:  ToSts
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:    20Gi
    Component Def Ref:  neon-safekeeper
    Monitor:            false
    Name:               neon-safekeeper
    No Create PDB:      false
    Replicas:           3
    Resources:
      Limits:
        Cpu:     1
        Memory:  2Gi
      Requests:
        Cpu:               0.5
        Memory:            0.5Gi
    Rsm Transform Policy:  ToSts
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:    20Gi
    Component Def Ref:  neon-pageserver
    Monitor:            false
    Name:               neon-pageserver
    No Create PDB:      false
    Replicas:           1
    Resources:
      Limits:
        Cpu:     1
        Memory:  2Gi
      Requests:
        Cpu:               0.5
        Memory:            0.5Gi
    Rsm Transform Policy:  ToSts
    Volume Claim Templates:
      Name:  data
      Spec:
        Access Modes:
          ReadWriteOnce
        Resources:
          Requests:
            Storage:   20Gi
  Termination Policy:  Delete
  Tolerations:
    Effect:    NoSchedule
    Key:       kb-data
    Operator:  Equal
    Value:     true
Status:
  Conditions:
    Last Transition Time:  2024-04-28T06:58:48Z
    Message:               The operator has started the provisioning of Cluster: neon-cluster
    Observed Generation:   1
    Reason:                PreCheckSucceed
    Status:                True
    Type:                  ProvisioningStarted
    Last Transition Time:  2024-04-28T06:58:48Z
    Message:               referenced cluster component definition is not defined: neon-compute
    Reason:                ApplyResourcesFailed
    Status:                False
    Type:                  ApplyResources
Events:
  Type     Reason                Age                 From                Message
  ----     ------                ----                ----                -------
  Normal   PreCheckSucceed       43s                 cluster-controller  The operator has started the provisioning of Cluster: neon-cluster
  Warning  ApplyResourcesFailed  33s (x12 over 43s)  cluster-controller  referenced cluster component definition is not defined: neon-compute
  Warning  Warning               33s (x12 over 43s)  cluster-controller  referenced cluster component definition is not defined: neon-compute

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]
kbcli version
Kubernetes: v1.26.14-gke.1044000
KubeBlocks: 0.9.0-beta.15
kbcli: 0.9.0-beta.4

Additional context
Add any other context about the problem here.

@JashBook JashBook added the bug Something isn't working label Apr 30, 2024
@ldming
Copy link
Collaborator

ldming commented May 6, 2024

Neon should support the KubeBlocks 0.9 API.

@skyrise-l skyrise-l self-assigned this May 10, 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
Projects
None yet
Development

No branches or pull requests

3 participants