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

Bug 2087213: Don't require pre-provisioning image for live ISO provisioning #231

Merged

Conversation

zaneb
Copy link
Member

@zaneb zaneb commented Jun 23, 2022

The live-iso provisioning method does not require IPA to be booted on
the server, so don't fail if there is no PreprovisioningImage available.

(cherry picked from commit 8577aac)

The live-iso provisioning method does not require IPA to be booted on
the server, so don't fail if there is no PreprovisioningImage available.

(cherry picked from commit 8577aac)
@openshift-ci openshift-ci bot added bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jun 23, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

@zaneb: This pull request references Bugzilla bug 2087213, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @chadcrum

In response to this:

Bug 2087213: Don't require pre-provisioning image for live ISO provisioning

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2022
If we are not cleaning the node then there is no need to have a
preprovisioning image available for deprovisioning.

(cherry picked from commit 78c95f8)
return
}
} else {
if data.AutomatedCleaningMode == metal3v1alpha1.CleaningModeDisabled {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?
The cleaning mode is disabled in the converged flow as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I'm still not clear on what we're expecting to happen if we deprovision a host with cleaning disabled. If it doesn't involve trying to boot the image then this is OK, but if it does then there is no way for us to really fix this bug without re-enabling reconciliation of PreprovisioningImages with the InfraEnv label.
I could change this so it only applies when cleaning is disabled and the image is a live ISO, but it's not clear to me that that makes any difference. Perhaps @dtantsur can provide more info.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When cleaning is disabled, deprovisioning only involves bookkeeping like detaching ISOs and clearing caches, so it's fine.

This logic is correct since we need to support the case of cleaning enabled.

@openshift-ci
Copy link

openshift-ci bot commented Jun 23, 2022

@zaneb: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dtantsur
Copy link
Member

/lgtm

Works in my testing.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2022
@openshift-ci openshift-ci bot merged commit 22b522c into openshift:master Jun 24, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 24, 2022

@zaneb: All pull requests linked via external trackers have merged:

Bugzilla bug 2087213 has been moved to the MODIFIED state.

In response to this:

Bug 2087213: Don't require pre-provisioning image for live ISO provisioning

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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

3 participants