Skip to content

MachinePool: MinReadySeconds does not work #8952

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

Closed
sbueringer opened this issue Jul 3, 2023 · 12 comments · Fixed by #9837
Closed

MachinePool: MinReadySeconds does not work #8952

sbueringer opened this issue Jul 3, 2023 · 12 comments · Fixed by #9837
Assignees
Labels
area/machinepool Issues or PRs related to machinepools kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@sbueringer
Copy link
Member

What steps did you take and what happened?

MachinePool has a MinReadySeconds field just like MachineDeployment. In MachinePools however it is not implemented.

What did you expect to happen?

I would expect it to behave as documented:

	// Minimum number of seconds for which a newly created machine instances should
	// be ready.
	// Defaults to 0 (machine instance will be considered available as soon as it
	// is ready)
	// +optional
	MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`

Cluster API version

main

Kubernetes version

No response

Anything else you would like to add?

No response

Label(s) to be applied

/kind bug
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 3, 2023
@sbueringer sbueringer added the area/machinepool Issues or PRs related to machinepools label Jul 3, 2023
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jul 3, 2023
@sbueringer
Copy link
Member Author

sbueringer commented Jul 3, 2023

(cc @CecileRobertMichon, just fyi)

@killianmuldoon
Copy link
Contributor

/triage accepted

Should we add a note to the field for now to communicate that it's not implemented?

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jul 3, 2023
@sbueringer
Copy link
Member Author

Sounds like a good idea!

@enxebre
Copy link
Member

enxebre commented Jul 4, 2023

Related tiny one #8956

@Dhairya-Arora01
Copy link
Contributor

@sbueringer will it be implemented somewhere here

@sbueringer
Copy link
Member Author

sbueringer commented Jul 11, 2023

That is definitely the place where it's "not implemented" today :).

Not sure how it should be implemented, maybe similar to MachineDeployments. I would leave this to folks more familiar with MachinePools, they can probably provide better guidance

(cc @CecileRobertMichon @Jont828)

@Dhairya-Arora01
Copy link
Contributor

hey @CecileRobertMichon @Jont828 should we create a IsNodeAvailable function like here and, then use it and refractor the code a bit in machinepool_controller_noderef.go

@Jont828
Copy link
Contributor

Jont828 commented Jul 21, 2023

@sbueringer I'd need to poke around a bit to see how we could implement this.

@Dhairya-Arora01 Would we be able to just call the IsNodeAvailable in the MachinePool controller? It seems like that function wouldn't be able to tell if the node was coming from a MachinePool or a MachineDeployment.

@Dhairya-Arora01
Copy link
Contributor

Dhairya-Arora01 commented Aug 11, 2023

@Jont828 yes, you are right. We can use IsNodeAvailable in getNodeReferences here
and modify getNodeReferences here
where we pass an additional parameter minReadySeconds which would be used in IsNodeAvailable
Right?
If its the right approach, I'm happy to assign myself

@Jont828
Copy link
Contributor

Jont828 commented Aug 11, 2023

I think that seems reasonable. I'm making changes to the Docker implementation in #8842, so I think you can implement that once it merges. That way, we can test out your changes with Docker MachinePool Machines.

@Dhairya-Arora01
Copy link
Contributor

/assign

@fabriziopandini
Copy link
Member

/priority important-soon

@k8s-ci-robot k8s-ci-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/machinepool Issues or PRs related to machinepools kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants