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

feat: properly handle powered off machines in the UI and machine classes #800

Merged

Conversation

Unix4ever
Copy link
Member

Introduce the new label omni.sidero.dev/ready-to-use, which is now used in the UI when creating/scaling a cluster and in the machine set scaling controller instead of omni.sidero.dev/connected.

The machine status controller was changed to add the ready to use label when the machine is created by the bare metal infra provider. Then the controller looks on the state of the InfraMachineStatus resource and sets omni.sidero.dev/ready-to-use label when the ReadyToUse flag is true in the InfraMachineStatus.

If the machine is managed by the bare metal infra provider and is not a part of a cluster we no longer
set omni.sidero.dev/disconnected label. It is used only in the UI. We still remove connected label when the machine gets disconnected from Omni.

Update the MachineStatus resource to also include power state of the machine. Then display it in the UI for the machines list.

Introduce POWERING_ON stage in the cluster machine status. Although it doesn't cover the power on stage fully. It will show powering on only for a short period until the bare metal provider issues the power on. We can improve that in the follow-up PR when we start tracking powering on stage more precisely.

The new UI:
Screenshot 2024-12-20 at 22 12 22

Fixes: #774

@Unix4ever Unix4ever force-pushed the support-bare-metal-powered-off-machines branch from 3d2d3a9 to 59c4145 Compare December 20, 2024 15:14
Introduce the new label `omni.sidero.dev/ready-to-use`, which is now
used in the UI when creating/scaling a cluster and in the machine set
scaling controller instead of `omni.sidero.dev/connected`.

The machine status controller was changed to add the ready to use label
when the machine is created by the bare metal infra provider.
Then the controller looks on the state of the `InfraMachineStatus`
resource and sets `omni.sidero.dev/ready-to-use` label when the
`ReadyToUse` flag is true in the `InfraMachineStatus`.

If the machine is managed by the bare metal infra provider and is not a
part of a cluster we no longer
set `omni.sidero.dev/disconnected` label. It is used only in the UI.
We still remove `connected` label when the machine gets disconnected
from Omni.

Update the `MachineStatus` resource to also include power state of the
machine. Then display it in the UI for the machines list.

Introduce `POWERING_ON` stage in the cluster machine status. Although it
doesn't cover the power on stage fully. It will show powering on only
for a short period until the bare metal provider issues the power on.
We can improve that in the follow-up PR when we start tracking powering
on stage more precisely.

Fixes: siderolabs#774

Signed-off-by: Artem Chernyshev <[email protected]>
@Unix4ever Unix4ever force-pushed the support-bare-metal-powered-off-machines branch from 59c4145 to 34dd2ae Compare December 20, 2024 15:20
@utkuozdemir
Copy link
Member

🆒

Copy link
Member Author

@Unix4ever Unix4ever left a comment

Choose a reason for hiding this comment

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

/m

@Unix4ever
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 34dd2ae into siderolabs:main Dec 20, 2024
21 checks passed
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.

UI: display powered off machines as powered off, not disconnected, allow adding them to clusters
3 participants