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

NO-JIRA: tests/replace-rt-kernel: fix and improve #1506

Merged
merged 2 commits into from
May 10, 2024

Commits on May 10, 2024

  1. denylist: drop ext.config.rpm-ostree.replace-rt-kernel

    This should work on SCOS now.
    jlebon committed May 10, 2024
    Configuration menu
    Copy the full SHA
    671d525 View commit details
    Browse the repository at this point in the history
  2. tests/replace-rt-kernel: fix and improve

    It's a bit odd to have this test pull the `c9s.repo` yum repo from the
    master branch of openshift/os. We don't want to be in a situation where
    a change in master breaks older branches.
    
    But also, `c9s.repo` could at any point in time refer to either the
    latest compose output or the official mirrors. But we always want to
    use the official mirrors for this test since that has multiple package
    versions and we need to be able to select a kernel version which is not
    equal to ours.
    
    We could curl the official `centos.repo` file (and actually, in the
    SCOS case, it's already in the image), but that file doesn't include
    additional repos like `rt` and `nfv` which we need for our test.
    
    Instead, just bake the config into the test data. That way we don't need
    to curl anything at all, and the repo definition is naturally bound to
    the test and can be modified together atomically.
    
    A few additional changes:
    1. only do all the repo preparations stuff on the first boot
    2. add logic to pick a kernel that's different from the one we're on if
       we're already CentOS-based (this fixes openshift#1383)
    3. add a stub for c10s for when we're ready
    
    Closes: openshift#1383
    jlebon committed May 10, 2024
    Configuration menu
    Copy the full SHA
    15c7bf9 View commit details
    Browse the repository at this point in the history