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]orchestrator cluster is always in Creating status - only primary role is specified #8390

Closed
tianyue86 opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

Describe the bug

Kubernetes: v1.30.4-eks-a737599
KubeBlocks: 1.0.0-beta.0
kbcli: 1.0.0-alpha.0

To Reproduce
Steps to reproduce the behavior:

  1. Get the latest yaml using helm template orclu02 kubeblocks-addons/orchestrator-cluster --version 1.0.0-alpha.0
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: orclu02
  labels:
    helm.sh/chart: orchestrator-cluster-1.0.0-alpha.0
    app.kubernetes.io/version: "3.2.6"
    app.kubernetes.io/instance: orclu02
  annotations:
    "kubeblocks.io/extra-env": "{\"ORC_TOPOLOGY_PASSWORD\":\"orchestrator\",\"ORC_META_PASSWORD\":\"orchestrator\",\"ORC_META_DATABASE\":\"orchestrator\"}"
spec:
  clusterDef: orchestrator
  topology: raft
  terminationPolicy: Delete
  services:
    - name: orchestrator
      componentSelector: orchestrator
      spec:
        ports:
          - name: orc-http
            port: 80
  componentSpecs:
    - name: orchestrator
      env:
        - name: ORC_TOPOLOGY_PASSWORD
          value: orchestrator
        - name: ORC_META_PASSWORD
          value: orchestrator
        - name: ORC_META_DATABASE
          value: orchestrator     
      disableExporter: true
      replicas: 3     
      resources:
        limits:
          cpu: "1"
          memory: "1Gi"
        requests:
          cpu: "1"
          memory: "1Gi"     
      volumeClaimTemplates:
        - name: data # ref clusterDefinition components.containers.volumeMounts.name
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
  1. Apply this yaml to create cluster
  2. Check the cluster status
    default orclu02 orchestrator Delete Creating 12m
  3. Check cmp status
    tianyue@apeclouds-MacBook-Pro kbcli % k get cmp
    NAME DEFINITION SERVICE-VERSION STATUS AGE
    orclu02-orchestrator orchestrator-raft 3.2.6 Creating 13m

Events:
Type Reason Age From Message


Normal ComponentPhaseTransition 34m (x2 over 34m) component-controller component is Creating
5. See error - only primary role is specified
tianyue@apeclouds-MacBook-Pro kbcli % kbcli cluster describe orclu02
Name: orclu02 Created Time: Nov 04,2024 16:53 UTC+0800
NAMESPACE CLUSTER-DEFINITION VERSION STATUS TERMINATION-POLICY
default Creating Delete

Endpoints:
COMPONENT MODE INTERNAL EXTERNAL
orchestrator ReadWrite orclu02-orchestrator.default.svc.cluster.local:80

Topology:
COMPONENT INSTANCE ROLE STATUS AZ NODE CREATED-TIME
orchestrator orclu02-orchestrator-0 primary Running ap-northeast-1c ip-172-31-7-55.ap-northeast-1.compute.internal/172.31.7.55 Nov 04,2024 16:53 UTC+0800
orchestrator orclu02-orchestrator-1 Running ap-northeast-1c ip-172-31-2-87.ap-northeast-1.compute.internal/172.31.2.87 Nov 04,2024 16:53 UTC+0800
orchestrator orclu02-orchestrator-2 Running ap-northeast-1c ip-172-31-2-87.ap-northeast-1.compute.internal/172.31.2.87 Nov 04,2024 16:53 UTC+0800

Resources Allocation:
COMPONENT DEDICATED CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE-SIZE STORAGE-CLASS
orchestrator false 1 / 1 1Gi / 1Gi data:20Gi kb-default-sc

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.

@tianyue86 tianyue86 added the kind/bug Something isn't working label Nov 4, 2024
@shanshanying
Copy link
Contributor

closed as fixed.

@github-actions github-actions bot added this to the Release 0.9.2 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants