-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow the discovery of Servers
which are in the powered On
state.
#109
Conversation
ed8b987
to
726960a
Compare
Currently we are not running the discovery of `Servers` which are already powered `On`. A new flag (`--enforce-first-boot`) has been introduced to enforce the discovery of already powered on `Servers`. The default of this flag is set to `false`. Additionally if we encounter a `Server` with `.spec.power==""` in the initial state, we mutate the `Server` spec to macht the detected `PowerState` in the `Servers` status. Co-authored-by: Hardik Dodiya <[email protected]>
726960a
to
5ad409c
Compare
server.Status.State = metalv1alpha1.ServerStateAvailable | ||
})).Should(Succeed()) | ||
|
||
By("Ensuring that the Server has the correct claim ref") | ||
Eventually(Object(&server)).Should(SatisfyAll( | ||
HaveField("Spec.ServerClaimRef.Name", claim.Name), | ||
Eventually(Object(server)).Should(SatisfyAll( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@defo89 that was the reason for the sporadic test failures which we encountered. Eventually .spec.ServerClaimRef.Name
was set but if not the test ran into a nil
pointer deref.
11fffff
to
1657543
Compare
1657543
to
f0bf450
Compare
06669d2
to
4e0df6a
Compare
The sporadic issues in the controller suite seems to be fixed now. But there seems to be still an issue in the registry and agent tests. Somehow it looks like the registry server can't be started as (maybe) the port can't be allocated. 🤔 |
1935714
to
f85307e
Compare
f85307e
to
227d47d
Compare
Proposed Changes
Currently we are not running the discovery of
Servers
which are already poweredOn
. A new flag (--enforce-first-boot
) has been introduced to enforce the discovery of already powered onServers
. The default of this flag is set tofalse
.Additionally if we encounter a
Server
with.spec.power == ""
in the initial state, we mutate theServer
spec to match the detectedPowerState
in theServers
status.Also some sporadic test failures where addressed.
Fixes #103 #108