Red Hat Bugzilla – Bug 444581
yum should write: "missing file systemid" instead of traceback
Last modified: 2009-09-02 07:22:42 EDT
Description of problem:
when system is registered to rhn, and file
"/etc/sysconfig/rhn/systemid" is deleted or moved, yum has traceback
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. register system to rhn
2. mv /etc/sysconfig/rhn/systemid /etc/sysconfig/rhn/systemid.BAK
3. yum repolist
TypeError: cannot marshal None unless allow_none is enabled
it should write error "missing file", or re-register
No more traceback: the accurate message is displaying now:
This system may not be a registered to RHN. SystemId could not be acquired.
RHN support will be disabled.
Checked on: RHEL5.4-Server-20090715.0
Archs: i386, x86_64, ia64, s390x
As original reproducer, `yum repolist` works as expected - comment #4, marking as VERIFIED, but openning new bug 514467.
Release note added. If any revisions are required, please set the
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.
/etc/sysconfig/rhn/systemid stores the identity of a system registered
with the Red Hat Network. Previously, yum-rhn-plugin did not allow for
situations where this file was missing, so would cause yum to crash when
it could not find the file. If the systemid file is missing, the plugin
now warns the user that the SystemID could not be acquired and that the
system might not be registered on the Red Hat Network.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.