Commit Graph

2 Commits

Author SHA1 Message Date
Utku Ozdemir
c60820f05e
fix: correctly detect installation status for bare-metal machines
Some checks failed
default / default (push) Has been cancelled
default / e2e-backups (push) Has been cancelled
default / e2e-forced-removal (push) Has been cancelled
default / e2e-omni-upgrade (push) Has been cancelled
default / e2e-scaling (push) Has been cancelled
default / e2e-short (push) Has been cancelled
default / e2e-short-secureboot (push) Has been cancelled
default / e2e-templates (push) Has been cancelled
default / e2e-upgrades (push) Has been cancelled
default / e2e-workload-proxy (push) Has been cancelled
We read the block disks on the machine status if there is a system disk to detect if Talos is installed on the machine.
Based on this, we allow or disallow maintenance updates.

This value might be stale when the bare-metal provider is used, as it powers off the machines when they are idle, and this causes their hw information to not be updated. So, the disk might be wiped, but machine status poller might not catch the change in the block devices before it is powered off.

Instead, take the `installed` flag on the infra.MachineStatus resource as the source of truth for the machines managed by the bare metal infra provider. Update the `installed` label based on that.

Change the logic in the frontend for installation detection to use this label instead of checking block devices directly.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2025-06-25 14:57:19 +02:00
Artem Chernyshev
a7fe525ce1
test: test updating from old Omni version to the current
Some checks are pending
default / default (push) Waiting to run
default / e2e-backups (push) Blocked by required conditions
default / e2e-forced-removal (push) Blocked by required conditions
default / e2e-omni-upgrade (push) Blocked by required conditions
default / e2e-scaling (push) Blocked by required conditions
default / e2e-short (push) Blocked by required conditions
default / e2e-short-secureboot (push) Blocked by required conditions
default / e2e-templates (push) Blocked by required conditions
default / e2e-upgrades (push) Blocked by required conditions
default / e2e-workload-proxy (push) Blocked by required conditions
CI will run integration tests from the previous release first, then run
them from the current commit using other set of tests.

Fixes: https://github.com/siderolabs/omni/issues/1132

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2025-06-24 19:24:19 +03:00