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]rabbitmq cmp is always in creating state #8989

Closed
tianyue86 opened this issue Feb 28, 2025 · 6 comments
Closed

[BUG]rabbitmq cmp is always in creating state #8989

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

Comments

@tianyue86
Copy link

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

To Reproduce
Steps to reproduce the behavior:

  1. Create rabbitmq cluster
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: rabbitmq-nacjol
  namespace: default
spec:
  clusterDef: rabbitmq
  topology: clustermode
  terminationPolicy: WipeOut
  componentSpecs:
    - name: rabbitmq
      serviceVersion: 3.12.14
      replicas: 3
      resources:
        requests:
          cpu: 500m
          memory: 0.5Gi
        limits:
          cpu: 500m
          memory: 0.5Gi
      serviceVersion: 3.12.14
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
  1. Check cluster
k get cluster -A
NAMESPACE   NAME                 CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS     AGE
default     rabbitmq-nacjol      rabbitmq             WipeOut              Creating   9m16s

k get pod
rabbitmq-nacjol-rabbitmq-0       1/2     Running     0          2m49s

k get cmp
rabbitmq-nacjol-rabbitmq       rabbitmq-1.0.0-alpha.0               3.12.14           Creating   3m8s

k describe cmp rabbitmq-nacjol-rabbitmq
Events:
  Type    Reason                    Age                    From                  Message
  ----    ------                    ----                   ----                  -------
  Normal  Unknown                   3m19s                  component-controller  the component phase is unknown
  Normal  ComponentPhaseTransition  3m19s (x2 over 3m19s)  component-controller  component is Creating
  Normal  Unavailable               3m19s (x2 over 3m19s)  component-controller  the component phase is Creating
  1. See error
2025-02-28T06:13:11.299Z	ERROR	Reconciler error	{"controller": "configuration", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Configuration", "Configuration": {"name":"rabbitmq-nacjol-rabbitmq","namespace":"default"}, "namespace": "default", "name": "rabbitmq-nacjol-rabbitmq", "reconcileID": "a8d1fdf9-4826-479b-a854-7284b10624bf", "error": "has no Credential object root found when resolving vars"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227
2025-02-28T06:13:11.304Z	INFO	reconcile object *v1.InstanceSet with action CREATE OK	{"controller": "component", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Component", "Component": {"name":"rabbitmq-nacjol-rabbitmq","namespace":"default"}, "namespace": "default", "name": "rabbitmq-nacjol-rabbitmq", "reconcileID": "5eb49a3c-7d06-4347-b0b5-50ad0d2a2681", "component": {"name":"rabbitmq-nacjol-rabbitmq","namespace":"default"}}
2025-02-28T06:13:11.314Z	INFO	ConfigurationReconcile	failed to run configuration reconcile task.	{"controller": "configuration", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "Configuration", "Configuration": {"name":"rabbitmq-nacjol-rabbitmq","namespace":"default"}, "namespace": "default", "name": "rabbitmq-nacjol-rabbitmq", "reconcileID": "63a0d179-b350-43bb-ada2-aca6f382489d", "configuration": {"name":"rabbitmq-nacjol-rabbitmq","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 28, 2025
@shanshanying
Copy link
Contributor

shanshanying commented Feb 28, 2025

Any POD created? If so, please check pod status

The logs says:

reconcile object *v1.InstanceSet with action CREATE OK	

Which means this ERROR is not blocking and ITS created as expected.

@tianyue86
Copy link
Author

tianyue86 commented Feb 28, 2025

one pod is ready, but cmp is always in creating status
k get pod
rabbitmq-nacjol-rabbitmq-0 1/2 Running 0 2m49s

@shanshanying
Copy link
Contributor

please update logs if any. The title is misleading

@tianyue86
Copy link
Author

kblogs228.txt

@shanshanying
Copy link
Contributor

@xuriwuyun PTAL.

@tianyue86 tianyue86 changed the title [BUG]rabbitmq cmp is always in creating state: has no Credential object root found when resolving vars [BUG]rabbitmq cmp is always in creating state Mar 3, 2025
@xuriwuyun
Copy link
Contributor

Image
The cluster SA has been deleted, which causes RabbitMQ to fail during initialization.

@cjc7373 cjc7373 closed this as completed Mar 5, 2025
@github-actions github-actions bot added this to the Release 1.0.0 milestone Mar 5, 2025
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

4 participants