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

Support deploy_iso in addition to deploy_kernel/ramdisk #907

Merged
merged 2 commits into from
Jun 11, 2021

Conversation

dtantsur
Copy link
Member

@dtantsur dtantsur commented Jun 2, 2021

Redfish virtual media supports pre-generated ISO ramdisks in addition
to a kernel/initramfs pair. Other drivers will catch up as well once
https://storyboard.openstack.org/#!/story/2008880 is fixed.

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 2, 2021
@dtantsur
Copy link
Member Author

dtantsur commented Jun 2, 2021

/test-integration

pkg/provisioner/ironic/ironic.go Outdated Show resolved Hide resolved
pkg/provisioner/ironic/ironic.go Show resolved Hide resolved
@zaneb
Copy link
Member

zaneb commented Jun 8, 2021

Q: do we expect the ISO-only option to work with all drivers (in the foreseeable future), or just virtualmedia ones?

@dtantsur
Copy link
Member Author

dtantsur commented Jun 9, 2021

Q: do we expect the ISO-only option to work with all drivers (in the foreseeable future), or just virtualmedia ones?

Only virtual media for the foreseeable future. So we'll need to keep kernel/ramdisk support for machines that don't have virtual media.

Redfish virtual media supports pre-generated ISO ramdisks in addition
to a kernel/initramfs pair. Other drivers will catch up as well once
https://storyboard.openstack.org/#!/story/2008880 is fixed.
@metal3-io-bot metal3-io-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 9, 2021
@dtantsur
Copy link
Member Author

dtantsur commented Jun 9, 2021

/test-integration

@hardys
Copy link
Member

hardys commented Jun 10, 2021

Q: do we expect the ISO-only option to work with all drivers (in the foreseeable future), or just virtualmedia ones?

Only virtual media for the foreseeable future. So we'll need to keep kernel/ramdisk support for machines that don't have virtual media.

But to clarify - Ironic does support iPXE boot of the ISO image, we just know that doesn't currently work with the iso images we're working with?

I got reports of someone trying to boot a RHEL ISO with format: live-iso and (non-virtualmedia) redfish BMC URL, that failed at the dracut stage (similar to FCOS IIRC), so I don't think there's anything at the metal3 or Ironic layer which prevents potentially PXE booting an iso in future, if/when we figure out how to make that work?

@dtantsur
Copy link
Member Author

Ironic does support iPXE boot of the ISO image, we just know that doesn't currently work with the iso images we're working with?

Ironic supports iPXE live ISO boot. We're not planning on supporting booting IPA ISOs via iPXE at the moment.

Copy link
Member

@andfasano andfasano left a comment

Choose a reason for hiding this comment

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

/lgtm

}
})
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Nice, definitely clearer now, thanks!

(I understand that the fact that this part was into an init() block didn't help for testing, hope sooner or later we will refactor it)

Copy link
Member

Choose a reason for hiding this comment

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

Moved this to the top of my list: #914

return errors.New("Either DEPLOY_KERNEL_URL and DEPLOY_RAMDISK_URL or DEPLOY_ISO_URL must be set")
}
if (deployKernelURL == "" && deployRamdiskURL != "") || (deployKernelURL != "" && deployRamdiskURL == "") {
return errors.New("DEPLOY_KERNEL_URL and DEPLOY_RAMDISK_URL can only be set together")
Copy link
Member

Choose a reason for hiding this comment

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

Ok, my personal inclination would be to specify exactly which expected vars were not set (without forcing the user to look at the current container configuration, especially useful when you have just the logs), but it's anyhow an improvement and don't consider it blocking

pkg/provisioner/ironic/ironic.go Show resolved Hide resolved
@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 10, 2021
@zaneb
Copy link
Member

zaneb commented Jun 11, 2021

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andfasano, elfosardo, 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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 11, 2021
@metal3-io-bot metal3-io-bot merged commit 1c9e637 into metal3-io:master Jun 11, 2021
hardys pushed a commit to hardys/metal3-dev-env that referenced this pull request Nov 2, 2021
This allows local testing of the BMO functionality added via
metal3-io/baremetal-operator#907
hardys pushed a commit to hardys/metal3-dev-env that referenced this pull request Nov 2, 2021
This allows local testing of the BMO functionality added via
metal3-io/baremetal-operator#907
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants