Bug 2218287

Summary: Conversion fails with "tuple(pkg.rsplit(".")) ValueError: too many values to unpack (expected 2)"
Product: Red Hat Enterprise Linux 8 Reporter: Jesús Pérez Martínez <jeperez>
Component: convert2rhelAssignee: Michal Bocek <mbocek>
Status: CLOSED ERRATA QA Contact: Upgrades and Supportability <upgrades-and-supportability>
Severity: medium Docs Contact: Miriam Portman <mportman>
Priority: medium    
Version: 8.5CC: ceric, ddiblik, egustavs, jcastran
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-20 07:44:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Eric Gustavsson 2023-07-04 11:58:58 UTC
Thanks for reporting! It's being fixed upstream pending downstream release
https://github.com/oamg/convert2rhel/pull/855

Comment 2 Eric Gustavsson 2023-07-05 14:08:24 UTC
More details

Customers are running into the issue where traceback says too many values to unpack. This has to do with dots in the package name

```
(ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION.UNEXPECTED_ERROR: Unhandled exception was caught: too many values to unpack (expected 2)
Please file a bug at https://issues.redhat.com/ to have this fixed or
    a specific error message added.
Traceback: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/convert2rhel/actions/__init__.py", line 393, in run  action.run()
  File "/usr/lib/python3.6/site-packages/convert2rhel/actions/pre_ponr_changes/transaction.py", line 46, in run  validate_transaction=True,
  File "/usr/lib/python3.6/site-packages/convert2rhel/pkgmanager/handlers/dnf/__init__.py", line 210, in run_transaction  self._perform_operations()
  File "/usr/lib/python3.6/site-packages/convert2rhel/pkgmanager/handlers/dnf/__init__.py", line 123, in _perform_operations name, arch = tuple(pkg.rsplit("."))
ValueError: too many values to unpack (expected 2)
```

For example, these two packages would cause the above traceback to occur on el8 conversions
- python3.11-3.11.2-2.el8.x86_64 
- java-1.8.0-openjdk-headless-1.8.0.372.b07-4.el8.x86_64

Comment 8 errata-xmlrpc 2023-07-20 07:44:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (convert2rhel bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:4231