Bug 2218287 - Conversion fails with "tuple(pkg.rsplit(".")) ValueError: too many values to unpack (expected 2)"
Summary: Conversion fails with "tuple(pkg.rsplit(".")) ValueError: too many values to ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: convert2rhel
Version: 8.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Bocek
QA Contact: Upgrades and Supportability
Miriam Portman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-28 15:01 UTC by Jesús Pérez Martínez
Modified: 2023-07-20 07:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-20 07:44:09 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oamg convert2rhel pull 855 0 None open [RHELC-1061] Allow package names with periods 2023-07-04 11:59:16 UTC
Red Hat Issue Tracker RHELC-1062 0 None None None 2023-06-28 15:04:29 UTC
Red Hat Issue Tracker RHELPLAN-161121 0 None None None 2023-06-28 15:04:32 UTC
Red Hat Knowledge Base (Solution) 7023511 0 None None None 2023-07-06 12:37:09 UTC
Red Hat Product Errata RHBA-2023:4231 0 None None None 2023-07-20 07:44:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.