Server `.status.powerState` is not polled frequently
Closed this issue · 3 comments
defo89 commented
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
afritzler commented
Maybe we should do a wait.Until
before we patch the PowerState
of the Server
.
defo89 commented
Maybe we should do a
wait.Until
before we patch thePowerState
of theServer
.
that is actually useful regardless. I will take a look
stefanhipfel commented
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.