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]expose ops is always in Creating status even though an error occurred #563

Open
tianyue86 opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

Describe the env
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 redis cluster in running status
    default redis-lphhul redis Delete Running 3m37s
  2. expose it
kbcli cluster expose redis-lphhul --auto-approve --force=true                  --type internet --enable true                 --components redis  --namespace default
OpsRequest redis-lphhul-expose-sdkfn created successfully, you can view the progress:
	kbcli cluster describe-ops redis-lphhul-expose-sdkfn -n default
  1. check ops status
kbcli cluster list-ops redis-lphhul --status all  --namespace default
NAME                        NAMESPACE   TYPE     CLUSTER        COMPONENT   STATUS     PROGRESS   CREATED-TIME                 
redis-lphhul-expose-sdkfn   default     Expose   redis-lphhul               Creating   -/-        Feb 14,2025 11:17 UTC+0800

kbcli cluster describe-ops redis-lphhul-expose-sdkfn -n default
Spec:
  Name: redis-lphhul-expose-sdkfn	NameSpace: default	Cluster: redis-lphhul	Type: Expose	

Command: <none>

Last Configuration:

Status:
  Start Time:         Feb 14,2025 11:17 UTC+0800
  Duration:           7m10s
  Status:             Creating
  Progress:           -/-

Conditions:
LAST-TRANSITION-TIME         TYPE                 REASON                     STATUS   MESSAGE                                                                                                 
Feb 14,2025 11:17 UTC+0800   WaitForProgressing   WaitForProgressing         True     wait for the controller to process the OpsRequest: redis-lphhul-expose-sdkfn in Cluster: redis-lphhul   
Feb 14,2025 11:17 UTC+0800   Validated            ValidateOpsRequestPassed   True     OpsRequest: redis-lphhul-expose-sdkfn is validated                                                      
Feb 14,2025 11:17 UTC+0800   Exposing             ExposeStarted              True     Start to expose the services in Cluster: redis-lphhul                                                   

Warning Events: 
TIME                         TYPE      REASON           OBJECT                                 MESSAGE                                                                                                                                                                          
Feb 14,2025 11:23 UTC+0800   Warning   DoActionFailed   OpsRequest/redis-lphhul-expose-sdkfn   Failed to process the operation of OpsRequest: component has roles, at least one of 'roleSelector' or 'podSelector' must be specified, cluster: redis-lphhul, component: redis  

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.

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

2 participants