-
Notifications
You must be signed in to change notification settings - Fork 413
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
Add new extension for qemu-kiwi #2376
Conversation
This adds support for a new RHCOS extension called "qemu-kiwi". It will install qemu-kiwi and its dependencies, 8 RPMs with a total size of 20MB when installed. It will allow users to run lightweight virtual machines using QEMU. Signed-off-by: Jens Freimann <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jensfr The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Since this is a new extension addition, added 4.8 label. |
@jensfr: The following tests failed, say
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. |
/hold Before we can ack this PR, we'll need to see a corresponding PR land at https://github.com/openshift/os/blob/master/extensions.yaml for the extension work. |
This adds another extension to the list. The qemu-kiwi extension is added to MCO with this PR openshift/machine-config-operator#2376 qemu-kiwi is a shrunk-down version of the qemu-kvm package with fewer dependencies. 8 rpms and ~20MB in size when installed.
This adds another extension to the list. The qemu-kiwi extension is added to MCO with this PR openshift/machine-config-operator#2376 qemu-kiwi is a shrunk-down version of the qemu-kvm package with fewer dependencies. 8 rpms and ~20MB in size when installed.
This adds qemu-kiwi as another extension to the list. The qemu-kiwi extension is added to MCO with this PR openshift/machine-config-operator#2376 qemu-kiwi is a shrunk-down version of the qemu-kvm package with fewer dependencies. 8 rpms and ~20MB in size when installed
This adds qemu-kiwi as another extension to the list. The qemu-kiwi extension is added to MCO with this PR openshift/machine-config-operator#2376 qemu-kiwi is a shrunk-down version of the qemu-kvm package with fewer dependencies. 8 rpms and ~20MB in size when installed
This adds qemu-kiwi as another extension to the list. qemu-kiwi and its dependencies are in the rhel-8-advanced-virt repository, so we have to add this as well. The qemu-kiwi extension is added to MCO with this PR openshift/machine-config-operator#2376 qemu-kiwi is a shrunk-down version of the qemu-kvm package with fewer dependencies. 8 rpms and ~20MB in size when installed
See: openshift/os#497 for the upstream visible change RHCOS 48.83.202103050218-0 was the first build to include the That build was included in the OCP 4.8.0-0.nightly-2021-03-05-114907 payload Since @jensfr is on paternity leave, going to tag @fidencio for visibility /hold cancel |
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.
As mentioned in the RHCOS PR, openshift/enhancements#366 is still open, so preferably that is merged before the MCO acks the extension.
Deferring to @sinnykumari for final review once we're good on that end
@@ -1101,6 +1101,7 @@ func getSupportedExtensions() map[string][]string { | |||
return map[string][]string{ | |||
"usbguard": {"usbguard"}, | |||
"kernel-devel": {"kernel-devel", "kernel-headers"}, | |||
"qemu-kiwi": {"ipxe-roms-qemu", "libpmem", "pixman", "qemu-kiwi", "qemu-kvm-common", "seabios-bin", "seavgabios-bin", "sgabios-bin"}, |
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.
I think this line isn't formatted properly and is getting caught by the linter
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.
As mentioned in the RHCOS PR, openshift/enhancements#366 is still open, so preferably that is merged before the MCO acks the extension.
openshift/enhancements#366 is gone.
I've opened openshift/enhancements#677 in order to proceed with the work as Jens is out. Regardless, 677 still needs work.
@@ -1101,6 +1101,7 @@ func getSupportedExtensions() map[string][]string { | |||
return map[string][]string{ | |||
"usbguard": {"usbguard"}, | |||
"kernel-devel": {"kernel-devel", "kernel-headers"}, | |||
"qemu-kiwi": {"ipxe-roms-qemu", "libpmem", "pixman", "qemu-kiwi", "qemu-kvm-common", "seabios-bin", "seavgabios-bin", "sgabios-bin"}, |
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.
fidencio@machado /tmp/machine-config-operator $ git diff
diff --git a/pkg/daemon/update.go b/pkg/daemon/update.go
index aa4ab880..f916f161 100644
--- a/pkg/daemon/update.go
+++ b/pkg/daemon/update.go
@@ -1101,7 +1101,7 @@ func getSupportedExtensions() map[string][]string {
return map[string][]string{
"usbguard": {"usbguard"},
"kernel-devel": {"kernel-devel", "kernel-headers"},
- "qemu-kiwi": {"ipxe-roms-qemu", "libpmem", "pixman", "qemu-kiwi", "qemu-kvm-common", "seabios-bin", "seavgabios-bin", "sgabios-bin"},
+ "qemu-kiwi": {"ipxe-roms-qemu", "libpmem", "pixman", "qemu-kiwi", "qemu-kvm-common", "seabios-bin", "seavgabios-bin", "sgabios-bin"},
}
}
Closing this as it is superseded by #2456 |
- What I did
This adds support for a new RHCOS extension called
"qemu-kiwi". It will install qemu-kiwi and its
dependencies, 8 RPMs with a total size of 20MB when installed.
It will allow users to run lightweight virtual machines using QEMU.
- How to verify it
We tested it by building MCO and building a machine-os-content image with the new RPMs included.
oc image extract -a ~/.openshift/pull-secret --path /:/extracted-oscontent quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:ecfac365596289b8474e6a0f0bffea996e04b0bdd1379e8fb4776b8e3ef2af1b
Then we build the image with this Dockerfile:
Create a new release image:
Do an update:
Verify osImage URL points to overridden machine-os-content:
Create a machine config and apply it.
Wait until machine config pool is updated. Then log into one of the nodes and, chroot to host filesystem and check if the qemu-kiwi RPM is installed with
rpm -qa|grep qemu-kiwi
- Description for the changelog
Added support for a new RHCOS extension to install qemu-kiwi.
Signed-off-by: Jens Freimann [email protected]