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

fix: wait for infra machine info to be collected before powering off #810

Conversation

utkuozdemir
Copy link
Member

@utkuozdemir utkuozdemir commented Jan 3, 2025

There were cases when an infra machine was accepted, it was powered off by the infra provider too quickly, before its specs were populated by the MachineStatus poller. This caused additional issues as some other resources like SchematicConfiguration were also never created, blocking cluster creation.

Address this by setting the preferred power state of the infra machine to ON until its status is populated (we check this by checking the secure boot status field).

Additionally, clean up InfraMachineConfig resources (user-managed) when a machine is deleted.

Closes #798.

@utkuozdemir utkuozdemir requested a review from Unix4ever January 3, 2025 12:00
@utkuozdemir utkuozdemir force-pushed the infra-machine-info-collect-before-power-off branch from eb68e52 to 209d18b Compare January 3, 2025 12:10
@utkuozdemir utkuozdemir force-pushed the infra-machine-info-collect-before-power-off branch from 209d18b to 2914976 Compare January 8, 2025 13:18
There were cases when an infra machine was accepted, it was powered off by the infra provider too quickly, before its specs were populated by the `MachineStatus` poller. This caused additional issues as some other resources like `SchematicConfiguration` were also never created, blocking cluster creation.

Address this by setting the preferred power state of the infra machine to ON until its status is populated (we check this by checking the secure boot status field).

Additionally, clean up `InfraMachineConfig` resources (user-managed) when a machine is deleted.

Signed-off-by: Utku Ozdemir <[email protected]>
@utkuozdemir utkuozdemir force-pushed the infra-machine-info-collect-before-power-off branch from 2914976 to 728897a Compare January 8, 2025 15:13
@utkuozdemir
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 728897a into siderolabs:main Jan 8, 2025
22 checks passed
@utkuozdemir utkuozdemir deleted the infra-machine-info-collect-before-power-off branch January 8, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The machine gets powered off before Omni is able to collect it's status
4 participants