volcano-sh / volcano

A Cloud Native Batch System (Project under CNCF)
https://volcano.sh
Apache License 2.0
4.11k stars 949 forks source link

Every pg will record a Unschedulable type event fisrt no matter whether resources are enough and then schedule successfully. #3749

Open liuyuanchun11 opened 2 days ago

liuyuanchun11 commented 2 days ago

Description

  1. duplicated condition update with Unschedulable and Scheduled, just retain one Scheduled is enough.
  2. and add an extended condition to express the Unenqueueable event.
  3. every pg will record a Unschedulable type event fisrt no matter whether resources are enough and then schedule successfully.

Steps to reproduce the issue

  1. Create a vcjob in a cluster with sufficient resources. The vcjob is scheduled normally and is in the running state.
  2. Execute "kubectl describe pg xxx", will see podgroup contains conditions that unschedulable and scheduled. 3.Execute “kubectl get events --sort-by='.metadata.creationTimestamp'”, will see warning event "job xxx unscheduler, reasion:...."

Describe the results you received and expected

expected:

  1. Only one condition is used to describe podgroup scheduling.
  2. No unscheduable warning event occurs in the pod group that is normally scheduled.

What version of Volcano are you using?

v1.9.0

Any other relevant information

No response

JesseStutler commented 2 days ago

I think it's a good issue. /cc @Monokaix

JesseStutler commented 2 days ago

/assign