Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-50829

KeyError: '9' during Leapp preupgrade check_ipa_server from RHEL 9.5 to RHEL 10.0 beta

    • Yes
    • None
    • 2
    • rhel-sst-idm-ipa
    • ssg_idm
    • 3
    • False
    • Hide

      None

      Show
      None
    • No
    • 2024-Q3-Alpha-S3, 2024-Q3-Alpha-S4
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

      During the RHEL-9.5 to RHEL10.0 Leapp preupgrade process, the check_ipa_server crashes due to a KeyError 9

      Please provide the package NVR for which bug is seen:

      leapp-0.17.0-100.20240723100221102816.master.23.gfcd13bc.el9.noarch 
      leapp-deps-0.17.0-100.20240723100221102816.master.23.gfcd13bc.el9.noarch leapp-upgrade-el9toel10-0.20.0-100.20240724073902470405.master.92.g998b774d.el9.noarch 
      leapp-upgrade-el9toel10-deps-0.20.0-100.20240724073902470405.master.92.g998b774d.el9.noarch
      
      

      leapp preupgrade --enablerepo rhel-10.0-BaseOS --enablerepo rhel-10.0-AppStream

      Actual results:

      [pytest_multihost.host.Host.master.cmd4] DEBUG ====> * check_mount_options
      [pytest_multihost.host.Host.master.cmd4] DEBUG         Check for mount options preventing the upgrade.
      [pytest_multihost.host.Host.master.cmd4] DEBUG ====> * check_ipa_server
      [pytest_multihost.host.Host.master.cmd4] DEBUG         Check for ipa-server and inhibit upgrade
      [pytest_multihost.host.Host.master.cmd4] DEBUG Process Process-316:
      [pytest_multihost.host.Host.master.cmd4] DEBUG Traceback (most recent call last):
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/usr/lib64/python3.9/multiprocessing/process.py", line 315, in _bootstrap
      [pytest_multihost.host.Host.master.cmd4] DEBUG     self.run()
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/usr/lib64/python3.9/multiprocessing/process.py", line 108, in run
      [pytest_multihost.host.Host.master.cmd4] DEBUG     self._target(*self._args, **self._kwargs)
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/usr/lib/python3.9/site-packages/leapp/repository/actor_definition.py", line 75, in _do_run
      [pytest_multihost.host.Host.master.cmd4] DEBUG     actor_instance.run(*args, **kwargs)
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/usr/lib/python3.9/site-packages/leapp/actors/__init__.py", line 296, in run
      [pytest_multihost.host.Host.master.cmd4] DEBUG     self.process(*args)
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/etc/leapp/repos.d/system_upgrade/common/actors/checkipaserver/actor.py", line 24, in process
      [pytest_multihost.host.Host.master.cmd4] DEBUG     ipa_inhibit_upgrade(ipainfo)
      [pytest_multihost.host.Host.master.cmd4] DEBUG   File "/etc/leapp/repos.d/system_upgrade/common/actors/checkipaserver/libraries/checkipaserver.py", line 30, in ipa_inhibit_upgrade
      [pytest_multihost.host.Host.master.cmd4] DEBUG     url=MIGRATION_GUIDES[get_source_major_version()],
      [pytest_multihost.host.Host.master.cmd4] DEBUG KeyError: '9'
       

      Expected results:

      The check_ipa_server actor should not crash and should handle the upgrade process correctly.

              frenaud@redhat.com Florence Renaud
              mvarun@redhat.com Varun Mylaraiah
              Florence Renaud Florence Renaud
              IPA QE Bot IPA QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: