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

leapp crashes when executed on a system with unsupported version

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-upgrades
    • 12
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      leapp crashes when executed on a system version which does not have any paths defined in upgrade_paths.json. Note this does not happen for RHEL, because there are "fallback" paths defined (source version is just the major version) and on Centos because the upgrade paths cover all versions.  But it is reproducible on Alma Linux. The underlying issue however still should be fixed.

      The error:

      Traceback (most recent call last):
        File "/usr/bin/leapp", line 33, in <module>
          sys.exit(load_entry_point('leapp==0.20.0', 'console_scripts', 'leapp')())
        File "/usr/lib/python3.9/site-packages/leapp/cli/__init__.py", line 51, in main
          cli.command.execute('leapp version {}'.format(VERSION))
        File "/usr/lib/python3.9/site-packages/leapp/utils/clicmd.py", line 111, in execute
          args.func(args)
        File "/usr/lib/python3.9/site-packages/leapp/utils/clicmd.py", line 133, in called
          self.target(args)
        File "/usr/lib/python3.9/site-packages/leapp/cli/commands/upgrade/breadcrumbs.py", line 166, in wrapper
          return f(*args, breadcrumbs=breadcrumbs, **kwargs)
        File "/usr/lib/python3.9/site-packages/leapp/cli/commands/upgrade/__init__.py", line 81, in upgrade
          configuration = util.prepare_configuration(args)
        File "/usr/lib/python3.9/site-packages/leapp/cli/commands/upgrade/util.py", line 258, in prepare_configuration
          os.environ['LEAPP_UPGRADE_PATH_TARGET_RELEASE'] = target_version
        File "/usr/lib64/python3.9/os.py", line 684, in __setitem__
          value = self.encodevalue(value)
        File "/usr/lib64/python3.9/os.py", line 756, in encode
          raise TypeError("str expected, not %s" % type(value).__name__)
      TypeError: str expected, not NoneType

              leapp-notifications leapp-notifications
              rh-ee-mmatuska Matej Matuska
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: