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]apecloud-mysql: ops-request-controller component mysql call switchover action and check role label failed #8796

Open
tianyue86 opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Milestone

Comments

@tianyue86
Copy link

Describe the env
Kubernetes: v1.31.1-aliyun.1
KubeBlocks: 1.0.0-beta.22
kbcli: 1.0.0-beta.9

To Reproduce
Steps to reproduce the behavior:

  1. Create apecloud-mysql cluster with yaml below
    myproxy.yaml.txt

  2. Switchover

kbcli cluster promote scale-mjyogv --auto-approve --force=true                  --component mysql  --namespace default
OpsRequest scale-mjyogv-switchover-wntlq created successfully, you can view the progress:
   kbcli cluster describe-ops scale-mjyogv-switchover-wntlq -n default
  1. list ops
kbcli cluster list-ops scale-mjyogv --status all  --namespace default
NAME                            NAMESPACE   TYPE         CLUSTER        COMPONENT   STATUS    PROGRESS   CREATED-TIME                 
scale-mjyogv-switchover-wntlq   default     Switchover   scale-mjyogv   mysql       Running   0/1        Jan 13,2025 15:28 UTC+0800
  1. describe ops
k describe opsrequest scale-mjyogv-switchover-wntlq
Events:
  Type     Reason                    Age                From                    Message
  ----     ------                    ----               ----                    -------
  Normal   WaitForProgressing        78s (x2 over 78s)  ops-request-controller  wait for the controller to process the OpsRequest: scale-mjyogv-switchover-wntlq in Cluster: scale-mjyogv
  Normal   ValidateOpsRequestPassed  78s                ops-request-controller  OpsRequest: scale-mjyogv-switchover-wntlq is validated
  Normal   SwitchoverStarted         78s                ops-request-controller  {"mysql":{"componentName":"mysql","instanceName":"*","OldPrimary":"scale-mjyogv-mysql-1","Cluster":"scale-mjyogv"}}
  Warning  Failed                    78s                ops-request-controller  component mysql call switchover action and check role label failed: action: switchover, error: exit code: 1: failed: action failed

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 Jan 13, 2025
@tianyue86 tianyue86 added this to the Release 1.0.0 milestone Jan 13, 2025
@github-actions github-actions bot modified the milestones: Release 1.0.0, Release 0.9.3 Jan 14, 2025
@tianyue86 tianyue86 added the severity/major Great chance user will encounter the same problem label Jan 17, 2025
@xuriwuyun
Copy link
Contributor

Image
The ops do not seem to be functioning correctly.

@xuriwuyun xuriwuyun assigned wangyelei and unassigned xuriwuyun Jan 17, 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 severity/major Great chance user will encounter the same problem
Projects
None yet
Development

No branches or pull requests

3 participants