Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1246

convert2rhel downloads multiple subscription-manager-rhsm-certificates causing package conflict

XMLWordPrintable

    • Critical
    • False
    • False
    • Hide

      None

      Show
      None
    • 2023-R4
    • Testable

      When convert2rhel proceeds, it downloads the subscription-manager and its dependencies from

      https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/Packages/s/

      Seems like there is some recent modification(21 Nov 2023) to repo as a result we now have two subscription-manager-rhsm-certificates packages of different version.

      Both the version packages are downloaded under /usr/share/convert2rhel/subscription-manager/

      Now when packages under /usr/share/convert2rhel/subscription-manager/   are installed  subscription-manager-rhsm-certificates of different version conflict with each other, resulting in conversion failure.

      Current workaround:

      Manually install latest subscription-manager-rhsm-certificates-1.28.36-3.el8_8.x86_64.rpm version

      Action required:

      Remove subscription-manager-rhsm-certificates-20220623-1.el8.noarch.rpm package from  https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/Packages/s/ 

       

      Here are the logs from my test system:

       

      [2023-11-21T21:15:55-0500] TASK - [Convert: Subscription Manager - Install packages] *****************
      Downloading requested packages
      [2023-11-21T21:15:55-0500] DEBUG - Contents of /usr/share/convert2rhel/subscription-manager directory before RHEL rhsm packages download:
      [2023-11-21T21:15:55-0500] DEBUG - Downloading the subscription-manager-rhsm-certificates package.
      [2023-11-21T21:15:55-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 subscription-manager-rhsm-certificates'
      Successfully downloaded the subscription-manager-rhsm-certificates package.
      [2023-11-21T21:16:03-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/subscription-manager-rhsm-certificates-1.28.36-3.el8_8.x86_64.rpm
      [2023-11-21T21:16:03-0500] DEBUG - Downloading the subscription-manager package.
      [2023-11-21T21:16:03-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 subscription-manager'
      Successfully downloaded the subscription-manager package.
      [2023-11-21T21:16:06-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/subscription-manager-1.28.40-1.el8_9.x86_64.rpm
      [2023-11-21T21:16:06-0500] DEBUG - Downloading the python3-cloud-what package.
      [2023-11-21T21:16:06-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 python3-cloud-what'
      Successfully downloaded the python3-cloud-what package.
      [2023-11-21T21:16:09-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/python3-cloud-what-1.28.40-1.el8_9.x86_64.rpm
      [2023-11-21T21:16:09-0500] DEBUG - Downloading the dnf-plugin-subscription-manager package.
      [2023-11-21T21:16:09-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 dnf-plugin-subscription-manager'
      Successfully downloaded the dnf-plugin-subscription-manager package.
      [2023-11-21T21:16:12-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/dnf-plugin-subscription-manager-1.28.40-1.el8_9.x86_64.rpm
      [2023-11-21T21:16:12-0500] DEBUG - Downloading the python3-subscription-manager-rhsm package.
      [2023-11-21T21:16:12-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 python3-subscription-manager-rhsm'
      Successfully downloaded the python3-subscription-manager-rhsm package.
      [2023-11-21T21:16:15-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/python3-subscription-manager-rhsm-1.28.40-1.el8_9.x86_64.rpm
      [2023-11-21T21:16:15-0500] DEBUG - Downloading the python3-syspurpose package.
      [2023-11-21T21:16:15-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 python3-syspurpose'
      Successfully downloaded the python3-syspurpose package.
      [2023-11-21T21:16:18-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/python3-syspurpose-1.28.40-1.el8_9.x86_64.rpm
      [2023-11-21T21:16:18-0500] DEBUG - Downloading the json-c.x86_64 package.
      [2023-11-21T21:16:18-0500] DEBUG - Calling command 'yumdownloader -v --destdir=/usr/share/convert2rhel/subscription-manager --setopt=reposdir=/var/lib/convert2rhel/rhsm --releasever=8.8 --setopt=module_platform_id=platform:el8 json-c.x86_64'
      Successfully downloaded the json-c.x86_64 package.
      [2023-11-21T21:16:20-0500] DEBUG - Path of the downloaded package: /usr/share/convert2rhel/subscription-manager/json-c-0.13.1-3.el8.x86_64.rpm
      [2023-11-21T21:16:20-0500] DEBUG - Contents of /usr/share/convert2rhel/subscription-manager directory after RHEL rhsm packages download:
      subscription-manager-rhsm-certificates-20220623-1.el8.noarch.rpm    <<====    
      subscription-manager-rhsm-certificates-1.28.36-3.el8_8.x86_64.rpm   <<====    
      subscription-manager-1.28.40-1.el8_9.x86_64.rpm
      python3-cloud-what-1.28.40-1.el8_9.x86_64.rpm
      dnf-plugin-subscription-manager-1.28.40-1.el8_9.x86_64.rpm
      python3-subscription-manager-rhsm-1.28.40-1.el8_9.x86_64.rpm
      python3-syspurpose-1.28.40-1.el8_9.x86_64.rpm
      json-c-0.13.1-3.el8.x86_64.rpm
      
      Error: 
       Problem: cannot install both subscription-manager-rhsm-certificates-1.28.36-3.el8_8.x86_64 and subscription-manager-rhsm-certificates-20220623-1.el8.noarch
        - conflicting requests
      (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
      CRITICAL - Failed to install subscription-manager packages. See the above yum output for details.
      

       

       

              mbocek@redhat.com Michal Bocek
              rhn-support-prjagtap Pradeep Jagtap
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: