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]asmysql-orc cluster created failed with build error #8930

Closed
tianyue86 opened this issue Feb 14, 2025 · 2 comments
Closed

[BUG]asmysql-orc cluster created failed with build error #8930

tianyue86 opened this issue Feb 14, 2025 · 2 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

tianyue86 commented Feb 14, 2025

Describe the bug
Kubernetes: v1.31.1-aliyun.1
KubeBlocks: 1.0.0-beta.28
kbcli: 1.0.0-beta.13

To Reproduce
Steps to reproduce the behavior:

  1. Create orc cluster first
    default orcm-evhxjd orchestrator WipeOut Running 20m
  2. Create asmysql-orc cluster
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: asmysql-evhxjd
  namespace: default
spec:
  clusterDef: mysql
  topology: orc
  terminationPolicy: Delete
  componentSpecs:
    - name: mysql
      serviceVersion: 5.7.44
      
      disableExporter: true
      replicas: 2
      resources:
        limits:
          cpu: 500m
          memory: 0.5Gi
        requests:
          cpu: 500m
          memory: 0.5Gi
      volumeClaimTemplates:
        - name: data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
      serviceRefs:
      - name: orchestrator
        namespace: default
        clusterServiceSelector:
          cluster: orcm-evhxjd
          service:
            component: orchestrator
            service: orchestrator
            port: orc-http
  1. check asmysql cluster status
NAMESPACE   NAME                         CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS     AGE
default     asmysql-evhxjd               mysql                Delete               Creating   19m

k get cmp|grep asmysql-evhxjd.  ==>no status
NAME                                  DEFINITION                       SERVICE-VERSION   STATUS     AGE
asmysql-evhxjd-mysql                  mysql-orc-5.7-1.0.0-alpha.0      5.7.44                       22m
  1. See error
    2025-02-14T08:04:19.277Z INFO build error: requeue after: 1s as: build synthesized component for asmysql-evhxjd-mysql failed: build kb-agent container failed: only one exec image is allowed in lifecycle actions {"controller": "component", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Component", "Component": {"name":"asmysql-evhxjd-mysql","namespace":"default"}, "namespace": "default", "name": "asmysql-evhxjd-mysql", "reconcileID": "1d7faad8-5d1a-4849-a296-b53cf4e77695", "component": {"name":"asmysql-evhxjd-mysql","namespace":"default"}}

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 Feb 14, 2025
@tianyue86 tianyue86 added this to the Release 1.0.0 milestone Feb 14, 2025
@hanguobiao
Copy link

Please update to the latest code on the Main branch and give it a try.

@tianyue86
Copy link
Author

After adding the following part in cluster yaml and changing serviceVersion to 8.0.xx, the cluster can be created successfully.
credential:
component: orchestrator
name: orchestrator

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

2 participants