oamg / leapp-repository

Leapp repositories containing actors for the Leapp framework (https://github.com/oamg/leapp). Currently provides leapp repositories for in-place upgrades of RHEL systems.
Apache License 2.0
52 stars 146 forks source link

repomapping: Add RHEL7 ELS repos #1198

Closed matejmatuska closed 6 months ago

matejmatuska commented 6 months ago

RHEL-21891

BEFORE MERGE: Make sure this is merged together with https://github.com/oamg/schema-test/pull/14 and also the repomap.json is merged internally.

github-actions[bot] commented 6 months ago

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable. If you want to request a review or rebuild a package in copr, you can use following commands as a comment:

Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build. If you need a different version of leapp, e.g. from PR#42, use /packit test oamg/leapp#42 Note that first time contributors cannot run tests automatically - they will be started by a reviewer.

It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported, beaker-minimal and kernel-rt, both can be used to be run on all upgrade paths or just a couple of specific ones. To launch on-demand tests with packit:

See other labels for particular jobs defined in the .packit.yaml file.

Please open ticket in case you experience technical problem with the CI. (RH internal only)

Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra.

matejmatuska commented 6 months ago

Tested on a RHEL7 machine with ELS subscription, with the following repos enabled (OAMG COPR repo left out and sensitive data cut out):

# yum repolist -v
Repo-id      : rhel-7-server-els-rpms/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support (RPMs)
--- 8< ---

Repo-id      : rhel-7-server-extras-rpms/x86_64
Repo-name    : Red Hat Enterprise Linux 7 Server - Extras (RPMs)
--- 8< ---

After running leapp preupgrade the repos are mapped to rhel8 GA repos, as expected

# ./leapp-inspector messages --type TargetRepositories
######################################################################
                          PRODUCED MESSAGES
######################################################################
Stamp: 2024-04-15T16:01:33.601493Z
Actor: setuptargetrepos
Phase: FactsCollection
Type: TargetRepositories
Message_data:
{
    "custom_repos": [],
    "rhel_repos": [
        {
            "repoid": "rhel-8-for-x86_64-appstream-rpms"
        },
        {
            "repoid": "rhel-8-for-x86_64-baseos-rpms"
        }
    ]
}
######################################################################

Repomapping contains the ELS repoids:

# ./leapp-inspector messages --type RepositoriesMapping | grep els
            "channel": "els",
            "repoid": "rhel-7-for-system-z-els-rpms",
            "channel": "els",
            "repoid": "rhel-7-server-els-rpms",
            "channel": "els",
            "repoid": "rhel-7-for-system-z-els-optional-rpms",
            "channel": "els",
            "repoid": "rhel-7-server-els-optional-rpms",
            "channel": "els",
            "repoid": "rhel-sap-for-rhel-7-for-system-z-els-rpms",
            "channel": "els",
            "repoid": "rhel-sap-for-rhel-7-server-els-rpms",
            "channel": "els",
            "repoid": "rhel-sap-hana-for-rhel-7-server-els-rpms",
            "channel": "els",
            "repoid": "rhel-ha-for-rhel-7-server-els-rpms",
pirat89 commented 6 months ago

Postponing the testing for monday. But lgtm otherwise, including changes in schema.

pirat89 commented 6 months ago

Discussed with @vojtechsokol, merging would negatively affect RUT. Postponing the merging by 1-2d.