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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Add BootstrapFailedMachineError error #10360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcbenjemaa
Copy link
Member

@mcbenjemaa mcbenjemaa commented Apr 2, 2024

What this PR does / why we need it:

In some infra providers, we need more configuration to provision a cluster.
For example, cloud-init config and control plane endpoint.

Since there are no validations for those configs, the Bootstrap (cloud-init) may fail due to misconfiguration, and we need to figure out why.

Having a new machine error reason will give clear idea what's happening to users

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/area machine

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 2, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign enxebre for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 do-not-merge/needs-area PR is missing an area label size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 2, 2024
@mcbenjemaa
Copy link
Member Author

/area machine

@k8s-ci-robot k8s-ci-robot added area/machine Issues or PRs related to machine lifecycle management and removed do-not-merge/needs-area PR is missing an area label labels Apr 2, 2024
@mcbenjemaa
Copy link
Member Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Apr 2, 2024
// indicates a state that must be fixed before progress can be made.
//
// Example: the ControlPlaneEndpoint is wrong.
BootstrapFailedMachineError MachineStatusError = "BootstrapFailed"
Copy link
Member

@sbueringer sbueringer Apr 4, 2024

Choose a reason for hiding this comment

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

How do we make sure that users don't confuse this with that the bootstrap provider failed?

(edited)

@enxebre
Copy link
Member

enxebre commented May 31, 2024

@mcbenjemaa this would be very useful. These kind of errors though might happen after the iaas considers an instance started, in which case they are not surfaced/exposed in any immediate consumable way. Can you articulate an example of how such a failure would be detected and bubble up here?

To make sure we approach this holistically and come up with the most valuable approach, we might want to start by writing down some failure scenarios and how they would be surfaced.
FWIW see previous related efforts #2554

@mcbenjemaa
Copy link
Member Author

I'm Using CAPI provider for Proxmox,
And I need a way of detecting if the bootstrap fails.

With Proxmox im calling the API to check the status of cloud-init.

And based on that, will mark a machine as Bootstrap Failed,
So the user knows that it's failing due to the bootstrap data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/machine Issues or PRs related to machine lifecycle management cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants