Bug 1234967
Summary: | yum list installed: UnicodeDecodeError | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Zack Cerza <zcerza> | ||||
Component: | yum | Assignee: | Michal Domonkos <mdomonko> | ||||
Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.1 | CC: | emrakova, james.antill, ksrot, mdomonko, vakulkar, vmukhame, zcerza | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | yum-3.4.3-138.el7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1337054 (view as bug list) | Environment: | |||||
Last Closed: | 2016-11-04 05:28:53 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1295396 | ||||||
Attachments: |
|
Description
Zack Cerza
2015-06-23 15:27:42 UTC
Please provide a fix or workaround for this issue, this is causing lot of automated Ceph test run failures and I am randomly hitting this issue very often. Could you please provide a reproducer? Also the output of the following commands would be helpful: # rpm -qa # yum-config-manager If you don't have yum-config-manager installed, it's provided by yum-utils package. Unfortunately, I don't have a reproducer. Since yum is crashing while trying to print a package name, I don't know which one it's failing on. rpm -qa: http://pastebin.test.redhat.com/292799 yum-config-manager: http://pastebin.test.redhat.com/292801 Maybe it is ceph-debuginfo-0.80.9-255.gd0f9c5f.el7 which is next in the list but I am not able to find this particular rpm. maybe try listing packages one by one for P in `rpm -qa`; do yum info $P || break; done I ran: for P in `rpm -qa`; do echo "CHECKING $P"; yum info $P || break; done It stopped here: CHECKING gpg-pubkey-fd431d51-4ae0493b Loaded plugins: priorities, product-id, subscription-manager Repo rhel-7-server-extras-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Repo rhel-7-server-optional-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Error: No matching Packages to list The ceph-debuginfo package is from one of our Ceph upstream testing repos OK, that didn't work wel.. My point was to find the particular package that is causing the problem. You would be probably able to come up with a better method. What about running
ceph-debuginfo-0.80.9-255.gd0f9c5f.el7
directly?
> The ceph-debuginfo package is from one of our Ceph upstream testing repos
Probably, but as I said, I was not able to find this particular RPM.
Looks like we have our culprit. But none of the repo names in /etc/yum.repos.d/*.repo contain invalid characters. $ yum info ceph-debuginfo-0.80.9-255.gd0f9c5f.el7 Loaded plugins: priorities, product-id, subscription-manager Repo rhel-7-server-extras-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Repo rhel-7-server-optional-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4709113451064542264-key.pem Installed Packages Name : ceph-debuginfo Arch : x86_64 Version : 0.80.9 Release : 255.gd0f9c5f.el7 Size : 1.8 G Repo : installed From repo : ��B Summary : Debug information for package ceph URL : http://ceph.com/ License : GPL-2.0 Description : This package provides debug information for package ceph. : Debug information is useful when developing applications that use : this package or when debugging this package. This is strange. Yum doesn't let me to use repo with strange characters. I have no idea how such repo could be used. Actually, I did a mistake and had typed 'yum info' instead of 'yum list'. I guess that 'yum list ceph-debuginfo-0.80.9-255.gd0f9c5f.el7' results in traceback then. Please list the output of # yum list available --show-duplicates | grep ceph-debuginfo You can probably work around the problem by setting 'from_repo' key to a valid value for ceph-debuginfo: # yumdb set from_repo valid_repo_name ceph-debuginfo (In reply to Karel Srot from comment #11) > This is strange. Yum doesn't let me to use repo with strange characters. I > have no idea how such repo could be used. It's possible that the repo had a valid name, but yumdb data got corrupted for some reason. That workaround would probably help, but for now we're using rpm to remove ceph-debuginfo instead of yum. Even so, yum crashing doesn't seem like a good thing at all. Created attachment 1120167 [details]
patch
PR created upstream: https://github.com/rpm-software-management/yum/pull/4 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, 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://rhn.redhat.com/errata/RHBA-2016-2397.html |