Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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, fgustavs, jcastran
Target Milestone: rcFlags: pm-rhel: mirror+
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 Freya 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 Freya 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