forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently we're taking upcoming RHEL AV contents and semi-manually rebuilding them inside special COPRs so that they can be used on Fedora: this process requires additional work, introduces delays and results in a mix of components that are otherwise not tested together. Using CentOS Stream 8 instead of Fedora eliminates all of these issues: shortly after a new version of QEMU or libvirt is tagged, the corresponding build will automatically show up in CentOS Stream 8 and we will be able to consume it; the selection of packages will also be a lot closer to what Red Hat tests internally, which should result in an overall more solid base to build KubeVirt upon. Using bazeldnf's --nobest option is necessary because CentOS Stream 8 repositories might contain more than one version of each package, and we are not necessarily pinning the very latest one. Note that the image used for some of the tests is still based on Fedora, at least for now: scsi-target-utils is not available in CentOS Stream 8, so we'd have to rewrite the corresponding tests to use an alternative tool such as targetcli. Since this image is used only for tests, I've decided to leave that challenge for another day. Somewhat non-obvious changes: * the test image is now using the Fedora version of qemu-img instead of the same one as the virt-launcher image, which makes things simpler and should still be perfectly fine for our needs; * we no longer need to create some symlinks (namely for iptables and qemu-kvm); * we do, however, need to bring in a slightly custom nsswitch.conf file to disable sssd integration and thus avoid having to include the corresponding packages in the container. Signed-off-by: Andrea Bolognani <[email protected]>
- Loading branch information
1 parent
674ca6e
commit a57ade4
Showing
6 changed files
with
140 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
passwd: files | ||
shadow: files | ||
group: files | ||
hosts: files dns myhostname | ||
services: files | ||
netgroup: | ||
automount: files | ||
aliases: files | ||
ethers: files | ||
gshadow: files | ||
networks: files dns | ||
protocols: files | ||
publickey: files | ||
rpc: files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
passwd: files | ||
shadow: files | ||
group: files | ||
hosts: files dns myhostname | ||
services: files | ||
netgroup: | ||
automount: files | ||
aliases: files | ||
ethers: files | ||
gshadow: files | ||
networks: files dns | ||
protocols: files | ||
publickey: files | ||
rpc: files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
repositories: | ||
- arch: x86_64 | ||
metalink: https://mirrors.fedoraproject.org/metalink?repo=fedora-32&arch=x86_64 | ||
name: 32-x86_64-primary-repo | ||
gpgkey: https://src.fedoraproject.org/rpms/fedora-repos/raw/main/f/RPM-GPG-KEY-fedora-32-primary | ||
baseurl: http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/ | ||
name: centos/stream8-baseos-x86_64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official | ||
- arch: x86_64 | ||
metalink: https://mirrors.fedoraproject.org/metalink?repo=updates-released-f32&arch=x86_64 | ||
name: 32-x86_64-update-repo | ||
gpgkey: https://src.fedoraproject.org/rpms/fedora-repos/raw/main/f/RPM-GPG-KEY-fedora-32-primary | ||
- arch: aarch64 | ||
metalink: https://mirrors.fedoraproject.org/metalink?repo=fedora-32&arch=aarch64 | ||
name: 32-aarch64-primary-repo | ||
gpgkey: https://src.fedoraproject.org/rpms/fedora-repos/raw/main/f/RPM-GPG-KEY-fedora-32-primary | ||
- arch: aarch64 | ||
metalink: https://mirrors.fedoraproject.org/metalink?repo=updates-released-f32&arch=aarch64 | ||
name: 32-aarch64-update-repo | ||
gpgkey: https://src.fedoraproject.org/rpms/fedora-repos/raw/main/f/RPM-GPG-KEY-fedora-32-primary | ||
baseurl: http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/ | ||
name: centos/stream8-appstream-x86_64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official | ||
- arch: x86_64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/libvirt-7.0.0-12.el8/fedora-32-x86_64/ | ||
name: kubevirt/libvirt-copr-x86_64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/libvirt-7.0.0-12.el8/pubkey.gpg | ||
baseurl: http://mirror.centos.org/centos/8-stream/virt/x86_64/advancedvirt-common/ | ||
name: centos/stream8-advancedvirt-x86_64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization | ||
- arch: x86_64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/qemu-5.2.0-15.el8/fedora-32-x86_64/ | ||
name: kubevirt/qemu-copr-x86_64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/qemu-5.2.0-15.el8/pubkey.gpg | ||
- arch: x86_64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/seabios-1.14.0-1.el8/fedora-32-x86_64/ | ||
name: kubevirt/seabios-copr-x86_64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/seabios-1.14.0-1.el8/pubkey.gpg | ||
baseurl: http://mirror.centos.org/centos/8-stream/PowerTools/x86_64/os/ | ||
name: centos/stream8-powertools-x86_64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official | ||
- arch: aarch64 | ||
baseurl: http://mirror.centos.org/centos/8-stream/BaseOS/aarch64/os/ | ||
name: centos/stream8-baseos-aarch64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official | ||
- arch: aarch64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/libvirt-7.0.0-12.el8/fedora-32-aarch64/ | ||
name: kubevirt/libvirt-copr-aarch64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/libvirt-7.0.0-12.el8/pubkey.gpg | ||
baseurl: http://mirror.centos.org/centos/8-stream/AppStream/aarch64/os/ | ||
name: centos/stream8-appstream-aarch64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official | ||
- arch: aarch64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/qemu-5.2.0-15.el8/fedora-32-aarch64/ | ||
name: kubevirt/qemu-copr-aarch64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/qemu-5.2.0-15.el8/pubkey.gpg | ||
baseurl: http://mirror.centos.org/centos/8-stream/virt/aarch64/advancedvirt-common/ | ||
name: centos/stream8-advancedvirt-aarch64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization | ||
- arch: aarch64 | ||
baseurl: https://download.copr.fedorainfracloud.org/results/@kubevirt/seabios-1.14.0-1.el8/fedora-32-aarch64/ | ||
name: kubevirt/seabios-copr-aarch64 | ||
gpgkey: https://download.copr.fedorainfracloud.org/results/@kubevirt/seabios-1.14.0-1.el8/pubkey.gpg | ||
baseurl: http://mirror.centos.org/centos/8-stream/PowerTools/aarch64/os/ | ||
name: centos/stream8-powertools-aarch64 | ||
gpgkey: https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official |