[LEAPP] leapp preupgrade throws traceback error 'IndexError: list index out of range' when using RHEL DVD ISO on AWS
Issue
- During leapp preupgrade/upgrade, below error is shown:
No matches found for the following disable plugin patterns: subscription-manager
Traceback (most recent call last):
File \"/usr/bin/dnf\", line 62, in <module>
main.user_main(sys.argv[1:], exit_code=True)
File \"/usr/lib/python3.9/site-packages/dnf/cli/main.py\", line 201, in user_main
errcode = main(args)
File \"/usr/lib/python3.9/site-packages/dnf/cli/main.py\", line 67, in main
return _main(base, args, cli_class, option_parser_class)
File \"/usr/lib/python3.9/site-packages/dnf/cli/main.py\", line 102, in _main
cli.configure(list(map(ucd, args)), option_parser())
File \"/usr/lib/python3.9/site-packages/dnf/cli/cli.py\", line 883, in configure
self.command.configure()
File \"/usr/lib/python3.9/site-packages/dnf-plugins/rhel_upgrade.py\", line 150, in configure
aws_region = self._read_aws_region(repo)
File \"/usr/lib/python3.9/site-packages/dnf-plugins/rhel_upgrade.py\", line 81, in _read_aws_region
region = repo.baseurl[0].split('.', 2)[1]
IndexError: list index out of range
", "hint": "If there was a problem reaching remote content (see stderr output) and proxy is configured in the YUM/DNF configuration file, the proxy configuration is likely causing this error. Make sure the proxy is properly configured in /etc/dnf/dnf.conf. It's also possible the proxy settings in the DNF configuration file are incompatible with the target system. A compatible configuration can be placed in /etc/leapp/files/dnf.conf which, if present, it will be used during some parts of the upgrade instead of original /etc/dnf/dnf.conf. In such case the configuration will also be applied to the target system. Note that /etc/dnf/dnf.conf needs to be still configured correctly for your current system to pass the early phases of the upgradeprocess."}"
Environment
- Red Hat Enterprise Linux 7.9 -> 8.10
- leapp-0.17.0-2.el7_9
- leapp-rhui-aws-1.0.13-1.el7
- Red Hat Enterprise Linux 8.10 -> 9.x
- leapp-0.18.0.1.el8_10
- leapp-rhui-aws-1.0.13-1.el8
- AWS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.