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

Coscheduling: remove podgroup.scheduled #574

Merged
merged 5 commits into from
Jul 1, 2023

Conversation

Gekko0114
Copy link
Member

@Gekko0114 Gekko0114 commented Apr 10, 2023

What type of PR is this?

/kind bug
/kind cleanup

Optionally add one or more of the following kinds if applicable:
/kind api-change

What this PR does / why we need it:

The removal of the PostBind function for PodGroups has caused the PodGroupStatus.Scheduled field to no longer update and remain at 0.

I have removed the field PodGroupStatus.Scheduled as it is no longer required. Additionally, I have also removed unnecessary statuses from the PodGroupPhase.

Which issue(s) this PR fixes:

Fixes #562 , #578

Special notes for your reviewer:

Thank you for reviewing this PR.
Please let me know if I have made any mistakes or if there are any improvements that could be made.
Your comments and feedback are appreciated.

Does this PR introduce a user-facing change?

Remove podGroupStatus.Scheduled.
Remove two podGroupPhase (podGroupPreScheduling and podGroupScheduled)

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 10, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @Gekko0114. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 10, 2023
@Huang-Wei
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 10, 2023
@Huang-Wei
Copy link
Contributor

/assign @zwpaper

@zwpaper
Copy link
Member

zwpaper commented Apr 15, 2023

hi @Gekko0114, thanks for raising the PR, but I have reconsidered the scheduling status flow and found that there may be something we need to discuss before deleting the phases.

  1. there are some cases making the PodGroup partially running, like some pods in the group failed and were rescheduling, then the PodGroup should be in a Scheduling status
  2. in the case like 1., we have a running count less than expected, and would get some scheduling counts, so, the scheduled number could mean something?
  3. we should be fine to drop the PostBind related, but I will raise an issue to discuss the schedule flow before deleting the status

cc @Huang-Wei WDYT?

@zwpaper
Copy link
Member

zwpaper commented Apr 15, 2023

#578
created a issue

cc @Huang-Wei

@Gekko0114
Copy link
Member Author

Gekko0114 commented Apr 15, 2023

@zwpaper
Sure. Let's discuss this topic on the issue #578 . Thanks,

@Gekko0114
Copy link
Member Author

@zwpaper, @denkensk
Based on the discussion, I've updated this PR.
Could you take a look?

@Gekko0114
Copy link
Member Author

@zwpaper, @denkensk
Could you take a look?

@zwpaper
Copy link
Member

zwpaper commented May 29, 2023

Sorry for the delay, but I was swamped whose days both personal and work, it may take some more time to be accessible, I will try to find some time to have a look at this recently

@Gekko0114
Copy link
Member Author

No problem, thank you so much.

Copy link
Member

@zwpaper zwpaper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @Gekko0114, I have done the review, the PR is great, and only some small nit.

I will test the logic locally and then we will be good

pkg/controllers/podgroup_controller_test.go Outdated Show resolved Hide resolved
pkg/controllers/podgroup_controller_test.go Show resolved Hide resolved
pkg/controllers/podgroup_controller_test.go Show resolved Hide resolved
@Gekko0114
Copy link
Member Author

Hi @zwpaper,

Thanks for your review! I've fixed it. Could you have a look?

@zwpaper
Copy link
Member

zwpaper commented Jun 28, 2023

Hi, @Gekko0114 really sorry for taking so long, I am back to Open Source finally.

I have test the scheduler locally, and with one more tiny request,

please also remove the postBind in README so that users can follow the readme to start the scheduler without meeting error:
https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/pkg/coscheduling/README.md?plain=1#L78-L80

and then we would be good to go!

@Gekko0114
Copy link
Member Author

Hi @zwpaper,

Thanks for your comment! I missed README. I've fixed it

@zwpaper
Copy link
Member

zwpaper commented Jun 29, 2023

/lgtm

/assign @Huang-Wei @denkensk

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 29, 2023
Copy link
Contributor

@Huang-Wei Huang-Wei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. just one nit on the diagram text.

And could you detail the changes in release-notes? (as the changes involved removal of two phases and one field in status)

/hold

kep/42-podgroup-coscheduling/README.md Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 29, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 30, 2023
@Gekko0114
Copy link
Member Author

@Huang-Wei ,

Thanks for your comments! I fixed it. Could you have a look again?

@Huang-Wei
Copy link
Contributor

/lgtm
/approve
/label tide/merge-method-squash

Thanks @Gekko0114 !

@k8s-ci-robot k8s-ci-robot added tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jun 30, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Gekko0114, Huang-Wei

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 30, 2023
@Gekko0114
Copy link
Member Author

Hi @Huang-Wei
Thanks!
This PR has hold tag.
Could you remove it if it's ok?

@Huang-Wei
Copy link
Contributor

Ah sure.

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit 6ef6f63 into kubernetes-sigs:master Jul 1, 2023
@Gekko0114 Gekko0114 deleted the podgroup branch July 1, 2023 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/bug Categorizes issue or PR as related to a bug. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PodGroupStatus.Scheduled is not updated due to the removal of PostBind
5 participants