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

Allow actuator.Exists() to find a host in the unmanaged state #130

Merged
merged 1 commit into from Dec 10, 2020
Merged

Allow actuator.Exists() to find a host in the unmanaged state #130

merged 1 commit into from Dec 10, 2020

Conversation

asalkeld
Copy link

This will enable the assisisted installer host to be linked

This will enable the assisisted installer host to be linked
@asalkeld
Copy link
Author

2020/12/10 01:04:27 Checking if machine covid-assisted-instal-6bztc-worker-0-lghc6 exists.
2020/12/10 01:04:27 Machine covid-assisted-instal-6bztc-worker-0-lghc6 does not have provisioned Host (openshift-worker-1 is unmanaged).

@hardys
Copy link

hardys commented Dec 10, 2020

Thanks @asalkeld - since we're past feature-freeze this will need a bz to land - I think we need some further discussion with @zaneb and @dhellmann though, as although IIRC we added the unmanaged state specifically for this use-case, there was some concern that unless the host is marked externally provisioned, a day-2 action of adding BMC credentials could trigger inspection.

I'm not certain if that will happen if we've already set the status via the annotation? But anyway we probably need to agree the expected provisioning status which will determine whether we need this change or not.

@dhellmann
Copy link

Thanks @asalkeld - since we're past feature-freeze this will need a bz to land - I think we need some further discussion with @zaneb and @dhellmann though, as although IIRC we added the unmanaged state specifically for this use-case, there was some concern that unless the host is marked externally provisioned, a day-2 action of adding BMC credentials could trigger inspection.

I'm not certain if that will happen if we've already set the status via the annotation? But anyway we probably need to agree the expected provisioning status which will determine whether we need this change or not.

Can we tell from looking at the Machine that it was created by the assisted installer? If so, we could check that the host is unmanaged and has externallyProvisioned set. If we can't tell an assisted installer Machine from a regular one, I am concerned that we might end up selecting an unprovisionable host for a real IPI case. Maybe we should use a separate loop, after this loop, to give provisionable hosts priority?

@zaneb
Copy link
Member

zaneb commented Dec 10, 2020

This is fine. It's in Exists() (not chooseHost()), so it's only called to see whether a Host already linked to the Machine still exists and hasn't been deprovisioned.
/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asalkeld, zaneb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 10, 2020
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 6c4442f into openshift:master Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants