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: | convert2rhel | Assignee: | 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.5 | CC: | 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
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 Verified by automated testsuite for PR merge CI pipeline as well as the regression testsuite with brew build 1.3.2 Oracle Linux 8 latest logs: http://artifacts.osci.redhat.com/testing-farm/dcf0f86b-6829-4ea5-9563-0ba39c5a3adc/work-non-destructive71u9fosv/plans/tier0/non-destructive/execute/data/guest/default-0/tests/integration/tier0/non-destructive/single-yum-transaction-validation/validating_packages_with_in_name_period-49/output.txt CentOS-8-latest logs: http://artifacts.osci.redhat.com/testing-farm/a5f61451-0cd2-440e-bb00-66bebc5368c7/work-non-destructivedqt2cw4e/plans/tier0/non-destructive/execute/data/guest/default-0/tests/integration/tier0/non-destructive/single-yum-transaction-validation/validating_packages_with_in_name_period-49/output.txt 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 |