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

Use centos 10 in place of rhel 10 temporarily for rhel10 --platform #1173

Merged
merged 1 commit into from
May 16, 2024

Conversation

rvykydal
Copy link
Contributor

@rvykydal rvykydal commented May 16, 2024

The main reason is making /test-os-variants usable for PRs on tests.
It will affect also daily runs, but actually it will be nice to see results of all tests on centos 10 image. We can switch it back to rhel 10 later by updating the GH workflow.

@rvykydal
Copy link
Contributor Author

/test-os-variants

@rvykydal
Copy link
Contributor Author

rvykydal commented May 16, 2024

The failure of rhel10 os-variant failed because the correct iso was not fetched (or rather the rawhide iso was used):

2024-05-16T07:15:10.7597148Z INFO:libpermian.plugins.kickstart_test(Thread-5):Created url overrides file /tmp/defaults-ai7sji6a with content:
2024-05-16T07:15:10.7598711Z export KSTEST_URL=https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/BaseOS/x86_64/os/
2024-05-16T07:15:10.7600470Z export KSTEST_MODULAR_URL=https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/AppStream/x86_64/os/
2024-05-16T07:15:10.7603613Z INFO:libpermian.plugins.kickstart_test(Thread-5):Using existing kickstart-tests repository /home/github/actions-runner/_work/kickstart-tests/kickstart-tests/kickstart-tests.
2024-05-16T07:15:10.7605510Z INFO:libpermian.plugins.kickstart_test(Thread-5):Fetchig installer boot.iso https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/BaseOS/x86_64/os/images/boot.iso
2024-05-16T07:15:10.7615949Z INFO:libpermian.plugins.kickstart_test(Thread-5):Runner is starting. SUCCESS: 0 FAILED: 0 N/A: 2 (runs: 0 flakes: 0 timed out: 0)
2024-05-16T07:15:10.7618145Z INFO:libpermian.plugins.kickstart_test(Thread-5):Running ['containers/runner/launch', '--scenario', 'run_subset', '--platform', 'rhel10', '--defaults', '/tmp/defaults-ai7sji6a', '--timeout', '0', 'ui_text_interactive', 'ui_graphical_interactive']
2024-05-16T07:15:10.7748712Z INFO:libpermian.plugins.kickstart_test(Thread-5):[runner] INFO: data/images/boot.iso does not exist, downloading current Fedora Rawhide Everything image...

Also the values for substitutions NAME="centos" (@KSTEST_OS_NAME@) in tested kickstart are not those that would be expected for rhel 10, for example here:

if [ "@KSTEST_OS_NAME@" == "rhel" ]; then

+++ NAME='CentOS Stream'
+++ VERSION=10
+++ ID=centos
+++ ID_LIKE='rhel fedora'
+++ VERSION_ID=10
+++ PLATFORM_ID=platform:el10
+++ PRETTY_NAME='CentOS Stream 10'
+++ ANSI_COLOR='0;31'
+++ LOGO=fedora-logo-icon
+++ CPE_NAME=cpe:/o:centos:centos:10
+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://issues.redhat.com/
+++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux 10'
+++ REDHAT_SUPPORT_PRODUCT_VERSION='CentOS Stream'
++ echo centos
+ echo NAME=centos
++ . /tmp/kstest-iso.xWD61BR/os-release
+++ NAME='CentOS Stream'
+++ VERSION=10
+++ ID=centos
+++ ID_LIKE='rhel fedora'
+++ VERSION_ID=10
+++ PLATFORM_ID=platform:el10
+++ PRETTY_NAME='CentOS Stream 10'
+++ ANSI_COLOR='0;31'
+++ LOGO=fedora-logo-icon
+++ CPE_NAME=cpe:/o:centos:centos:10
+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://issues.redhat.com/
+++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux 10'
+++ REDHAT_SUPPORT_PRODUCT_VERSION='CentOS Stream'
++ echo 10
+ echo VERSION=10

@rvykydal rvykydal force-pushed the use-centos10-iso-temporarily branch from 8609da1 to 17e9ebd Compare May 16, 2024 08:08
@rvykydal
Copy link
Contributor Author

/test-os-variants

@rvykydal
Copy link
Contributor Author

The failure of rhel10 os-variant failed because the correct iso was not fetched (or rather the rawhide iso was used):

2024-05-16T07:15:10.7597148Z INFO:libpermian.plugins.kickstart_test(Thread-5):Created url overrides file /tmp/defaults-ai7sji6a with content:
2024-05-16T07:15:10.7598711Z export KSTEST_URL=https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/BaseOS/x86_64/os/
2024-05-16T07:15:10.7600470Z export KSTEST_MODULAR_URL=https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/AppStream/x86_64/os/
2024-05-16T07:15:10.7603613Z INFO:libpermian.plugins.kickstart_test(Thread-5):Using existing kickstart-tests repository /home/github/actions-runner/_work/kickstart-tests/kickstart-tests/kickstart-tests.
2024-05-16T07:15:10.7605510Z INFO:libpermian.plugins.kickstart_test(Thread-5):Fetchig installer boot.iso https://composes.stream.centos.org/stream-10/development/latest-CentOS-Stream/compose/BaseOS/x86_64/os/images/boot.iso
2024-05-16T07:15:10.7615949Z INFO:libpermian.plugins.kickstart_test(Thread-5):Runner is starting. SUCCESS: 0 FAILED: 0 N/A: 2 (runs: 0 flakes: 0 timed out: 0)
2024-05-16T07:15:10.7618145Z INFO:libpermian.plugins.kickstart_test(Thread-5):Running ['containers/runner/launch', '--scenario', 'run_subset', '--platform', 'rhel10', '--defaults', '/tmp/defaults-ai7sji6a', '--timeout', '0', 'ui_text_interactive', 'ui_graphical_interactive']
2024-05-16T07:15:10.7748712Z INFO:libpermian.plugins.kickstart_test(Thread-5):[runner] INFO: data/images/boot.iso does not exist, downloading current Fedora Rawhide Everything image...

This was caused by https missing here: https://github.com/rhinstaller/permian/blob/14b4f7dc2701110f8d8e49fd50e1b861d11b46f5/libpermian/plugins/kickstart_test/__init__.py#L308
Using http instead.

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!. :)

I'm thinking that ideally we should use Cent OS stream across the board in our CI infra. I would even suggest that if some differences are problematic (eq. Connect to Red HAt spoke not enabled) we might as well build our own "RHEL 10 like" isos from CentOS stream repos. That should also make it quicker to address any breakage with a hot fix.

@rvykydal
Copy link
Contributor Author

rvykydal commented May 16, 2024

Also the values for substitutions NAME="centos" (@KSTEST_OS_NAME@) in tested kickstart are not those that would be expected for rhel 10, for example here:

if [ "@KSTEST_OS_NAME@" == "rhel" ]; then

+++ NAME='CentOS Stream'
+++ VERSION=10
+++ ID=centos
+++ ID_LIKE='rhel fedora'
+++ VERSION_ID=10
+++ PLATFORM_ID=platform:el10
+++ PRETTY_NAME='CentOS Stream 10'
+++ ANSI_COLOR='0;31'
+++ LOGO=fedora-logo-icon
+++ CPE_NAME=cpe:/o:centos:centos:10
+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://issues.redhat.com/
+++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux 10'
+++ REDHAT_SUPPORT_PRODUCT_VERSION='CentOS Stream'
++ echo centos
+ echo NAME=centos
++ . /tmp/kstest-iso.xWD61BR/os-release
+++ NAME='CentOS Stream'
+++ VERSION=10
+++ ID=centos
+++ ID_LIKE='rhel fedora'
+++ VERSION_ID=10
+++ PLATFORM_ID=platform:el10
+++ PRETTY_NAME='CentOS Stream 10'
+++ ANSI_COLOR='0;31'
+++ LOGO=fedora-logo-icon
+++ CPE_NAME=cpe:/o:centos:centos:10
+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://issues.redhat.com/
+++ REDHAT_SUPPORT_PRODUCT='Red Hat Enterprise Linux 10'
+++ REDHAT_SUPPORT_PRODUCT_VERSION='CentOS Stream'
++ echo 10
+ echo VERSION=10

The tests (roughly) that could be affected (definitely not all):

[rvykydal@prnot4 ~/work/git/rvykydal/kickstart-tests (use-centos10-iso-temporarily)]$ grep OS_NAME *.ks.in
anaconda-conf.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ || \
anaconda-conf.ks.in:   is_rhel9 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
anaconda-modules.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ || \
anaconda-modules.ks.in:   is_rhel9 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
autopart-nohome.ks.in:if [ "@KSTEST_OS_NAME@" == "fedora" ]; then
autopart-nohome.ks.in:if [ "@KSTEST_OS_NAME@" == "fedora" ]; then
bindtomac-bridge-2devs-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bindtomac-bridge-2devs-pre.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bindtomac-bridge-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bond-ks-initramfs.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bond-ks-initramfs.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bridge-2devs-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bridge-2devs.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bridge-2devs-pre.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bridge-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
bridge-no-bootopts-net.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
default-fstype.ks.in:if [ "@KSTEST_OS_NAME@" == "rhel" ] || grep -qi '^variant=server' /.buildstamp; then
dns.ks.in:if [ "@KSTEST_OS_NAME@" == "rhel" ]; then
network-addr-gen-mode.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-dhcpall-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-dhcpall-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-dhcpall-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-dhcpall-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-httpks.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-httpks.ks.in:    if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-autoconnections-httpks.ks.in:    if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-device-mac.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
network-options-pre.ks.in:if [ "@KSTEST_OS_NAME@" == "rhel" ]; then
repo-install.ks.in:if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ || \
repo-install.ks.in:   is_rhel9 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
reqpart.ks.in:if [ "@KSTEST_OS_NAME@" == "rhel" ] || grep -qi '^variant=server' /.buildstamp; then

We should replace these conditions and functions with platform(@KSTEST_OS_NAME@ @KSTEST_OS_VERSION@) function that would be also consistent with our fragments solution.

@rvykydal rvykydal merged commit 470818c into rhinstaller:master May 16, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants