infra.leapp
                                
                                 infra.leapp copied to clipboard
                                
                                    infra.leapp copied to clipboard
                            
                            
                            
                        analysis fails with Repository rhel-7-server-extras-rpms not found
When I ran the infra.leapp.analysis, it fails with below error
Repository rhel-7-server-extras-rpms not found
when I ran the subscription-manager enable repo manually, then it works.
subscription-manager repos --enable rhel-7-server-extras-rpms
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
found the issue, can we add baseurl and serverurl parameter to below ?
- name: analysis-leapp | Register to leapp activation key
community.general.redhat_subscription:
state: present
activationkey: "{{ satellite_activation_key_leapp }}"
org_id: "{{ satellite_organization }}"
force_register: true
notify: Register to pre leapp activation key
when:
- leapp_upgrade_type == 'satellite'
- satellite_organization is defined
- satellite_activation_key_leapp is defined
 
can we add a parameter rhsm_baseurl in above ?
@swapdisk, @heatmiser, @jeffmcutter thoughts?
Trying to understand... What is the scenario where a satellite registration with an activation key requires a base url?
actually it seems to be working after I changed the leapp_upgrade_type to cdn.
is it possible to reopen this ?
yes it is @akshat87
we need base url in registration since satellite is our internal satellite.
Hi @akshat87,
I'm still trying to understand why this would be necessary. Satellite by it's nature is internal and not open to the public. The same is true of my own Satellite and other Satellites I have encountered, yet they do not require the base_url to be specified. Since you are able to enable the repository, the system is successfully registered.
Is this the task that fails? https://github.com/redhat-cop/infra.leapp/blob/main/roles/analysis/tasks/analysis-leapp.yml#L20
Can you run subscription-manager repos before attempting an upgrade, then after it fails, run the same again?  Can you show the full error message.  The contents of /etc/yum.repos.d/redhat.repo on the system to be upgraded might also be useful.  Feel free to change names/addresses etc. for security sake.
Thanks, -Jeff
if I keep the upgrade type as "satellite" then it runs below lines but when we register the satellite we run subscription-manager register --org=yyy --activationkey="{{ activation_key }}" --force --serverurl=https://xxx --baseurl=https://xxx/pulp/repos where xxx is the satelite dns name.
- name: analysis-leapp | Register to leapp activation key
community.general.redhat_subscription:
state: present
activationkey: "{{ satellite_activation_key_leapp }}"
org_id: "{{ satellite_organization }}"
force_register: true
notify: Register to pre leapp activation key
when:
- leapp_upgrade_type == 'satellite'
- satellite_organization is defined
- satellite_activation_key_leapp is defined
 
here is the output of subscription-manager repos, I have removed some of the details for security purposes.
subscription-manager repos +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-server-rhscl-7-rpms Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/rhscl/1/os Enabled: 0
Repo ID: rhel-7-server-dotnet-rpms Repo Name: dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/dotnet/1/os Enabled: 0
Repo ID: rhel-7-server-satellite-client-6-rpms Repo Name: Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/7Server/$basearch/sat-client/6/os Enabled: 0
Repo ID: rhel-7-server-optional-rpms Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/optional/os Enabled: 0
Repo ID: rhel-7-server-rhceph-3-tools-rpms Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/7Server/$basearch/rhceph-tools/3/os Enabled: 0
Repo ID: rhel-7-server-rpms Repo Name: Red Hat Enterprise Linux 7 Server (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/os Enabled: 1
Repo ID: rh-gluster-3-client-for-rhel-7-server-rpms Repo Name: Red Hat Storage Native Client for RHEL 7 (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/rhs-client/os Enabled: 0
Repo ID: rhel-7-server-rhceph-4-tools-rpms Repo Name: Red Hat Ceph Storage Tools 4 for Red Hat Enterprise Linux 7 Server (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/7Server/$basearch/rhceph-tools/4/os Enabled: 0
Repo ID: rhel-7-server-supplementary-rpms Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/$releasever/$basearch/supplementary/os Enabled: 0
Repo ID: rhel-7-server-extras-rpms Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs) Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/7Server/$basearch/extras/os Enabled: 1
Repo ID: rhel-7-server-ansible-2.9-rpms Repo Name: Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server Repo URL: https://xxxx/pulp/repos/yyyy/PROD/zzzz/content/dist/rhel/server/ 7/7Server/$basearch/ansible/2.9/os Enabled: 0
"Can you run subscription-manager repos before attempting an upgrade, then after it fails, run the same again?"
Is that before or after? I see rhel-7-server-extras-rpm is enabled.
Before
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/rhscl/1/os
Enabled:   0
Repo ID:   rhel-7-server-dotnet-rpms
Repo Name: dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/dotnet/1/os
Enabled:   0
Repo ID:   rhel-7-server-satellite-client-6-rpms
Repo Name: Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/sat-client/6/os
Enabled:   0
Repo ID:   yyyy_Microsoft_7Server_x86_64
Repo Name: 7Server x86_64
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/custom/Microsoft/7Server_x
           86_64
Enabled:   1
Repo ID:   rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/optional/os
Enabled:   0
Repo ID:   rhel-7-server-rhceph-3-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/rhceph-tools/3/os
Enabled:   0
Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/os
Enabled:   1
Repo ID:   rh-gluster-3-client-for-rhel-7-server-rpms
Repo Name: Red Hat Storage Native Client for RHEL 7 (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/rhs-client/os
Enabled:   0
Repo ID:   rhel-7-server-rhceph-4-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 4 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/rhceph-tools/4/os
Enabled:   1
Repo ID:   rhel-7-server-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/supplementary/os
Enabled:   0
Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/extras/os
Enabled:   0
Repo ID:   rhel-7-server-ansible-2.9-rpms
Repo Name: Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/ansible/2.9/os
Enabled:   0
After
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/rhscl/1/os
Enabled:   0
Repo ID:   rhel-7-server-dotnet-rpms
Repo Name: dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/dotnet/1/os
Enabled:   0
Repo ID:   rhel-7-server-satellite-client-6-rpms
Repo Name: Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/sat-client/6/os
Enabled:   0
Repo ID:   rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/optional/os
Enabled:   0
Repo ID:   rhel-7-server-rhceph-3-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/rhceph-tools/3/os
Enabled:   0
Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/os
Enabled:   1
Repo ID:   rh-gluster-3-client-for-rhel-7-server-rpms
Repo Name: Red Hat Storage Native Client for RHEL 7 (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/rhs-client/os
Enabled:   0
Repo ID:   rhel-7-server-rhceph-4-tools-rpms
Repo Name: Red Hat Ceph Storage Tools 4 for Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/rhceph-tools/4/os
Enabled:   0
Repo ID:   rhel-7-server-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /$releasever/$basearch/supplementary/os
Enabled:   0
Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/extras/os
Enabled:   0
Repo ID:   rhel-7-server-ansible-2.9-rpms
Repo Name: Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://xxxx/pulp/repos/yyyy/DEV/zzzz/content/dist/rhel/server/7
           /7Server/$basearch/ansible/2.9/os
Enabled:   0
but I don't see it in the yum repolist
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-
              : manager
repo id                                          repo name                                                     status
epel/x86_64                                      Extra Packages for Enterprise Linux 7 - x86_64                13,798
packages-microsoft-com-prod                      packages-microsoft-com-prod                                    1,726
rhel-7-server-rpms/7Server/x86_64                Red Hat Enterprise Linux 7 Server (RPMs)                      34,337
repolist: 49,861
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager
In the before state, can you try:
yum repolist --enablerepo rhel-7-server-extras-rpms
yum install --enablerepo rhel-7-server-extras-rpms leapp-upgrade
here is the output
yum repolist --enablerepo rhel-7-server-extras-rpms Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager its-dco_Microsoft_7Server_x86_64 | 2.0 kB 00:00:00
packages-microsoft-com-prod | 1.5 kB 00:00:00
rhel-7-server-extras-rpms | 3.4 kB 00:00:00
rhel-7-server-rhceph-4-tools-rpms | 3.8 kB 00:00:00
Not using downloaded rhel-7-server-rhceph-4-tools-rpms/repomd.xml because it is older than what we have: Current : Wed Apr 19 20:42:19 2023 Downloaded: Thu Sep 22 07:47:27 2022 rhel-7-server-rpms | 3.5 kB 00:00:00
(1/3): rhel-7-server-extras-rpms/x86_64/updateinfo | 260 kB 00:00:00
(2/3): rhel-7-server-extras-rpms/x86_64/group | 124 B 00:00:00
(3/3): rhel-7-server-extras-rpms/x86_64/primary_db | 636 kB 00:00:00
repo id repo name status its-dco_Microsoft_7Server_x86_64 7Server x86_64 1,720 packages-microsoft-com-prod packages-microsoft-com-prod 1,726 rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (RPMs) 1,476 rhel-7-server-rhceph-4-tools-rpms/x86_64 Red Hat Ceph Storage Tools 4 for Red Hat Enterprise Linux 7 Server (RPMs) 471 rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 34,337 repolist: 39,730 Uploading Enabled Repositories Report Loaded plugins: langpacks, product-id, subscription-manager
yum install --enablerepo rhel-7-server-extras-rpms leapp-upgrade Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager its-dco_Microsoft_7Server_x86_64 | 2.0 kB 00:00:00
Resolving Dependencies --> Running transaction check ---> Package leapp-upgrade-el7toel8.noarch 0:0.19.0-1.el7_9 will be installed --> Processing Dependency: leapp-repository-dependencies = 9 for package: leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch --> Processing Dependency: leapp-framework >= 5.0 for package: leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch --> Processing Dependency: leapp for package: leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch --> Processing Dependency: python2-leapp for package: leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch --> Running transaction check ---> Package leapp.noarch 0:0.16.0-1.el7_9 will be installed ---> Package leapp-upgrade-el7toel8-deps.noarch 0:0.19.0-1.el7_9 will be installed --> Processing Dependency: dnf >= 4 for package: leapp-upgrade-el7toel8-deps-0.19.0-1.el7_9.noarch ---> Package python2-leapp.noarch 0:0.16.0-1.el7_9 will be installed --> Processing Dependency: leapp-framework-dependencies = 5 for package: python2-leapp-0.16.0-1.el7_9.noarch --> Running transaction check ---> Package dnf.noarch 0:4.0.9.2-2.el7_9 will be installed --> Processing Dependency: python2-dnf = 4.0.9.2-2.el7_9 for package: dnf-4.0.9.2-2.el7_9.noarch ---> Package leapp-deps.noarch 0:0.16.0-1.el7_9 will be installed --> Running transaction check ---> Package python2-dnf.noarch 0:4.0.9.2-2.el7_9 will be installed --> Processing Dependency: dnf-data = 4.0.9.2-2.el7_9 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: libmodulemd >= 1.4.0 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: python2-hawkey >= 0.22.5 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: python2-libcomps >= 0.1.8 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: python2-libdnf >= 0.22.5 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: python-enum34 for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Processing Dependency: python2-libdnf for package: python2-dnf-4.0.9.2-2.el7_9.noarch --> Running transaction check ---> Package dnf-data.noarch 0:4.0.9.2-2.el7_9 will be installed ---> Package libmodulemd.x86_64 0:1.6.3-1.el7 will be installed ---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed ---> Package python2-hawkey.x86_64 0:0.22.5-2.el7_9 will be installed --> Processing Dependency: libdnf(x86-64) = 0.22.5-2.el7_9 for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: libsolv.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: libsolvext.so.0(SOLV_1.0)(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: libdnf.so.2()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: librepo.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: librhsm.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: libsolv.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 --> Processing Dependency: libsolvext.so.0()(64bit) for package: python2-hawkey-0.22.5-2.el7_9.x86_64 ---> Package python2-libcomps.x86_64 0:0.1.8-14.el7 will be installed --> Processing Dependency: libcomps(x86-64) = 0.1.8-14.el7 for package: python2-libcomps-0.1.8-14.el7.x86_64 --> Processing Dependency: libcomps.so.0.1.6()(64bit) for package: python2-libcomps-0.1.8-14.el7.x86_64 ---> Package python2-libdnf.x86_64 0:0.22.5-2.el7_9 will be installed --> Running transaction check ---> Package libcomps.x86_64 0:0.1.8-14.el7 will be installed ---> Package libdnf.x86_64 0:0.22.5-2.el7_9 will be installed ---> Package librepo.x86_64 0:1.8.1-8.el7_9 will be installed ---> Package librhsm.x86_64 0:0.0.3-3.el7_9 will be installed ---> Package libsolv.x86_64 0:0.6.34-4.el7 will be installed --> Finished Dependency ResolutionDependencies Resolved
================================================================================================================================================================================================================================================================ Package Arch Version Repository Size
Installing: leapp-upgrade-el7toel8 noarch 0.19.0-1.el7_9 rhel-7-server-extras-rpms 1.1 M Installing for dependencies: dnf noarch 4.0.9.2-2.el7_9 rhel-7-server-extras-rpms 357 k dnf-data noarch 4.0.9.2-2.el7_9 rhel-7-server-extras-rpms 51 k leapp noarch 0.16.0-1.el7_9 rhel-7-server-extras-rpms 29 k leapp-deps noarch 0.16.0-1.el7_9 rhel-7-server-extras-rpms 11 k leapp-upgrade-el7toel8-deps noarch 0.19.0-1.el7_9 rhel-7-server-extras-rpms 32 k libcomps x86_64 0.1.8-14.el7 rhel-7-server-extras-rpms 75 k libdnf x86_64 0.22.5-2.el7_9 rhel-7-server-extras-rpms 536 k libmodulemd x86_64 1.6.3-1.el7 rhel-7-server-extras-rpms 153 k librepo x86_64 1.8.1-8.el7_9 rhel-7-server-rpms 82 k librhsm x86_64 0.0.3-3.el7_9 rhel-7-server-extras-rpms 28 k libsolv x86_64 0.6.34-4.el7 rhel-7-server-rpms 329 k python-enum34 noarch 1.0.4-1.el7 rhel-7-server-rpms 52 k python2-dnf noarch 4.0.9.2-2.el7_9 rhel-7-server-extras-rpms 414 k python2-hawkey x86_64 0.22.5-2.el7_9 rhel-7-server-extras-rpms 71 k python2-leapp noarch 0.16.0-1.el7_9 rhel-7-server-extras-rpms 177 k python2-libcomps x86_64 0.1.8-14.el7 rhel-7-server-extras-rpms 47 k python2-libdnf x86_64 0.22.5-2.el7_9 rhel-7-server-extras-rpms 611 k
Transaction Summary
Install 1 Package (+17 Dependent packages)
Total download size: 4.1 M Installed size: 21 M Is this ok [y/d/N]: y Downloading packages: (1/18): dnf-4.0.9.2-2.el7_9.noarch.rpm | 357 kB 00:00:00
(2/18): dnf-data-4.0.9.2-2.el7_9.noarch.rpm | 51 kB 00:00:00
(3/18): leapp-0.16.0-1.el7_9.noarch.rpm | 29 kB 00:00:00
(4/18): leapp-deps-0.16.0-1.el7_9.noarch.rpm | 11 kB 00:00:00
(5/18): leapp-upgrade-el7toel8-deps-0.19.0-1.el7_9.noarch.rpm | 32 kB 00:00:00
(6/18): leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch.rpm | 1.1 MB 00:00:00
(7/18): libcomps-0.1.8-14.el7.x86_64.rpm | 75 kB 00:00:00
(8/18): libmodulemd-1.6.3-1.el7.x86_64.rpm | 153 kB 00:00:00
(9/18): libdnf-0.22.5-2.el7_9.x86_64.rpm | 536 kB 00:00:00
(10/18): librhsm-0.0.3-3.el7_9.x86_64.rpm | 28 kB 00:00:00
(11/18): librepo-1.8.1-8.el7_9.x86_64.rpm | 82 kB 00:00:00
(12/18): python-enum34-1.0.4-1.el7.noarch.rpm | 52 kB 00:00:00
(13/18): libsolv-0.6.34-4.el7.x86_64.rpm | 329 kB 00:00:00
(14/18): python2-dnf-4.0.9.2-2.el7_9.noarch.rpm | 414 kB 00:00:00
(15/18): python2-hawkey-0.22.5-2.el7_9.x86_64.rpm | 71 kB 00:00:00
(16/18): python2-leapp-0.16.0-1.el7_9.noarch.rpm | 177 kB 00:00:00
(17/18): python2-libcomps-0.1.8-14.el7.x86_64.rpm | 47 kB 00:00:00
(18/18): python2-libdnf-0.22.5-2.el7_9.x86_64.rpm | 611 kB 00:00:00Total 3.6 MB/s | 4.1 MB 00:00:01
Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : libmodulemd-1.6.3-1.el7.x86_64 1/18 Installing : libsolv-0.6.34-4.el7.x86_64 2/18 Installing : librhsm-0.0.3-3.el7_9.x86_64 3/18 Installing : librepo-1.8.1-8.el7_9.x86_64 4/18 Installing : libdnf-0.22.5-2.el7_9.x86_64 5/18 Installing : python2-libdnf-0.22.5-2.el7_9.x86_64 6/18 Installing : python2-hawkey-0.22.5-2.el7_9.x86_64 7/18 Installing : leapp-deps-0.16.0-1.el7_9.noarch 8/18 Installing : python2-leapp-0.16.0-1.el7_9.noarch 9/18 Installing : libcomps-0.1.8-14.el7.x86_64 10/18 Installing : python2-libcomps-0.1.8-14.el7.x86_64 11/18 Installing : python-enum34-1.0.4-1.el7.noarch 12/18 Installing : dnf-data-4.0.9.2-2.el7_9.noarch 13/18 Installing : python2-dnf-4.0.9.2-2.el7_9.noarch 14/18 Installing : dnf-4.0.9.2-2.el7_9.noarch 15/18 Installing : leapp-upgrade-el7toel8-deps-0.19.0-1.el7_9.noarch 16/18 Installing : leapp-0.16.0-1.el7_9.noarch 17/18 Installing : leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch 18/18 Uploading Package Profile Loaded plugins: langpacks, product-id, subscription-manager Loaded plugins: langpacks, product-id, subscription-manager Verifying : leapp-upgrade-el7toel8-deps-0.19.0-1.el7_9.noarch 1/18 Verifying : python2-libcomps-0.1.8-14.el7.x86_64 2/18 Verifying : dnf-4.0.9.2-2.el7_9.noarch 3/18 Verifying : librepo-1.8.1-8.el7_9.x86_64 4/18 Verifying : leapp-0.16.0-1.el7_9.noarch 5/18 Verifying : librhsm-0.0.3-3.el7_9.x86_64 6/18 Verifying : libmodulemd-1.6.3-1.el7.x86_64 7/18 Verifying : python2-leapp-0.16.0-1.el7_9.noarch 8/18 Verifying : leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch 9/18 Verifying : dnf-data-4.0.9.2-2.el7_9.noarch 10/18 Verifying : libdnf-0.22.5-2.el7_9.x86_64 11/18 Verifying : python-enum34-1.0.4-1.el7.noarch 12/18 Verifying : python2-dnf-4.0.9.2-2.el7_9.noarch 13/18 Verifying : libcomps-0.1.8-14.el7.x86_64 14/18 Verifying : python2-hawkey-0.22.5-2.el7_9.x86_64 15/18 Verifying : libsolv-0.6.34-4.el7.x86_64 16/18 Verifying : leapp-deps-0.16.0-1.el7_9.noarch 17/18 Verifying : python2-libdnf-0.22.5-2.el7_9.x86_64 18/18Installed: leapp-upgrade-el7toel8.noarch 0:0.19.0-1.el7_9
Dependency Installed: dnf.noarch 0:4.0.9.2-2.el7_9 dnf-data.noarch 0:4.0.9.2-2.el7_9 leapp.noarch 0:0.16.0-1.el7_9 leapp-deps.noarch 0:0.16.0-1.el7_9 leapp-upgrade-el7toel8-deps.noarch 0:0.19.0-1.el7_9 libcomps.x86_64 0:0.1.8-14.el7
libdnf.x86_64 0:0.22.5-2.el7_9 libmodulemd.x86_64 0:1.6.3-1.el7 librepo.x86_64 0:1.8.1-8.el7_9 librhsm.x86_64 0:0.0.3-3.el7_9 libsolv.x86_64 0:0.6.34-4.el7 python-enum34.noarch 0:1.0.4-1.el7
python2-dnf.noarch 0:4.0.9.2-2.el7_9 python2-hawkey.x86_64 0:0.22.5-2.el7_9 python2-leapp.noarch 0:0.16.0-1.el7_9 python2-libcomps.x86_64 0:0.1.8-14.el7 python2-libdnf.x86_64 0:0.22.5-2.el7_9Complete! Uploading Enabled Repositories Report Loaded plugins: langpacks, product-id, subscription-manager
Is that using the same activation key as is used for satellite_activation_key_leapp?
If so, can you revert the leapp install and try running the analysis playbook?
If not, can you revert the leapp install, register to the same activation key as satellite_activation_key_leapp, and try to manually install with yum again?
when we run the analysis playbook with , it gives error "Repository rhel-7-server-extras-rpms not found".
Its because analysis playbook force register without baseurl param. when we register a VM, we use below command
subscription-manager register --org=xxxx --activationkey="{{ activation_key }}" --force --serverurl=https://yyyyy --baseurl=https://yyyyy/pulp/repos
but playbook doesn't use baseurl option in registration task.
name: analysis-leapp | Register to leapp activation key community.general.redhat_subscription: state: present activationkey: "{{ satellite_activation_key_leapp }}" org_id: "{{ satellite_organization }}" force_register: true notify: Register to pre leapp activation key when: leapp_upgrade_type == 'satellite' satellite_organization is defined satellite_activation_key_leapp is defined
Hi @akshat87,
I don't understand why you would need to provide serverurl and baseurl. katello-ca-cert should take care of that. Do you know why? If yes, can you please explain why. If not, let's run one more test:
- Revert system to pre-leapp state.
- SSH to the system and run the below using your leapp activation_key, not including serverurl and baseurl.
subscription-manager register --org=xxxx --activationkey="{{ activation_key }}" --force
- Try to install the leapp packages using:
yum install --enablerepo rhel-7-server-extras-rpms leapp-upgrade
- Provide output of 1-3.
Thanks, -Jeff
Is that using the same activation key as is used for satellite_activation_key_leapp?
If so, can you revert the leapp install and try running the analysis playbook?
If not, can you revert the leapp install, register to the same activation key as satellite_activation_key_leapp, and try to manually install with yum again?
@akshat87 - Did you answer the first question? Did you execute the respective test?
As katello-ca-cert is deprecated, I tried to duplicate the issue using Global Registration, but I'm unable to still.
What does your subscription-manager config show. Can you run the following and share?
# subscription-manager config | egrep " hostname =| baseurl ="
   hostname = satcap1.localdomain.local
   baseurl = https://satcap1.localdomain.local/pulp/content
it shows below
# subscription-manager config | egrep " hostname =| baseurl ="
   hostname = rhn-satellite.tools.xxxx.xxxx.on.ca
   baseurl = https://rhn-satellite.tools.xxx.xxx.on.ca/pulp/repos
If it's already saved them as shown there, why do you need to pass them to subscription manager again?
because when we run playbook for type = satelite it forcefully registers again and removes the hostname and baseurl.
name: analysis-leapp | Register to leapp activation key community.general.redhat_subscription: state: present activationkey: "{{ satellite_activation_key_leapp }}" org_id: "{{ satellite_organization }}" force_register: true notify: Register to pre leapp activation key when: leapp_upgrade_type == 'satellite' satellite_organization is defined satellite_activation_key_leapp is defined
What version of Satellite are you using?
Is this still an issue?
Did this ever get solved? If so, what is the fix. I am having the same issue and using Red Hat Satellite 6.15. The upgrade type is satellite
Hi @bstaten,
No, it hasn't as we've not been able to replicate it. Seems now we have 2 people with the issue though. I am also on Sat 6.15 now. I was wondering if it's a Global Registration issue vs. katello-ca-cert package so I tried using Global Registration and I'm still not able to replicate. I still don't understand what the difference is.
That being said, if I create a release of infra.leapp in my own namespace on Galaxy (jeffmcutter) that includes the serverurl and baseurl parameters with a default to omit for those who don't need them, can one or both (@akshat87) of you test it to confirm it resolves the problem before I do a pull request of the same?
Thanks, -Jeff