ironcore-dev/metal-operator

Server `.status.powerState` is not polled frequently

Closed this issue · 3 comments

To Reproduce
Create ServerClaim that binds to the server, wait for server to deploy, remove ServerClaim and observe that Servers powerState is not updated for a longer time

Maybe we should do a wait.Until before we patch the PowerState of the Server.

Maybe we should do a wait.Until before we patch the PowerState of the Server.

that is actually useful regardless. I will take a look

that is odd, since in the server reconcile we check server.Spec.ServerClaimRef == nil and patch the state to Available. In the next loop the updateServerStatus is called which should check for the powerState.

In the handleAvailableState function we turn off the server. This function however never returns true to be re-queued.