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.
Description of problem:
Subscription-manager-gui rearranges the /etc/rhsm/rhsm.conf file and deletes any comments within the file.
Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.93.3-1.git.7.ee2f586.fc14.x86_64
subscription-manager-0.93.3-1.git.7.ee2f586.fc14.x86_64
How reproducible:
always
Steps to Reproduce:
1. Install subscription-manager-gui on a linux machine with all required deps.
2. Manually edit the /etc/rhsm/rhsm.conf file, adding comments.
3. Open subscription-manager-gui, and open the 'advanced proxy configuration' section.
4. Close the 'advanced proxy configuration' window.
5. view changes to your /etc/rhsm/rhsm.conf.
Actual results:
The gui editor rearranges all the configurations found in the rhsm.conf file that was installed by the rpm, and then adds a new [default] section. The gui editor also will delete any comments made to the rhsm.conf file.
Expected results:
The layout and contents of the .conf file remain unchanged and any comments/notes remain in the file.
commit 0784ac39b4ed3907c6cf12984d753323fa9ea097
Author: Adrian Likins <alikins>
Date: Fri Dec 10 16:16:38 2010 -0500
use iniparser's backwards compat config parser
New versions of python-rhsm/subscription-manager should fix this. We moved to
a different config parser lib, the new one should persist order and comments.
subscription-manager-gnome-0.93.9-1.git.10.8eadb7a.el6.x86_64
subscription-manager-0.93.9-1.git.10.8eadb7a.el6.x86_64
subscription-manager-firstboot-0.93.9-1.git.10.8eadb7a.el6.x86_64
This is now working as tested in the above release ^
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.
http://rhn.redhat.com/errata/RHEA-2011-0611.html