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:
Something bad was committed in the following build 913:
http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/view/Entitlement/job/subscription-manager_master/913/
It is causing a traceback when attempting to call the CLI subscription-manager over ssh....
[jsefler@jseflerT510 ~]$ ssh root.redhat.com subscription-manager -help
root.redhat.com's password:
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 54, in <module>
from subscription_manager import managercli
File "/usr/share/rhsm/subscription_manager/managercli.py", line 46, in <module>
from subscription_manager.quantity import valid_quantity
File "/usr/share/rhsm/subscription_manager/quantity.py", line 17, in <module>
from subscription_manager.gui.utils import flatten_attributes, allows_multi_entitlement
File "/usr/share/rhsm/subscription_manager/gui/utils.py", line 23, in <module>
import gtk
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display
The probable offence is in one of these commits:
Commit 8239ce2dbfafeb5abb00dfef0951ec03c5c53c8f by Michael Stead
Commit 32614970381e53f323503a82e35683f1031a11eb by Michael Stead
Version-Release number of selected component (if applicable):
subscription-manager-0.96.4-1.git.62.75efb0a.el6.x86_64
python-rhsm-0.96.7-1.git.4.ae2c338.el6.noarch
Verifying Version...
[root@jsefler-onprem-62server ~]# rpm -q subscription-manager
subscription-manager-0.96.4-1.git.63.7bb4765.el6.x86_64
[jsefler@jsefler ~]$ ssh root.redhat.com subscription-manager --help
root.redhat.com's password:
Usage: subscription-manager [options] MODULENAME --help
Primary Modules:
list List subscription and product information for this machine
refresh Pull the latest subscription data from the server
register Register the machine to the server
subscribe Subscribe the registered machine to a specified product
unregister Unregister the machine from the server
unsubscribe Unsubscribe the machine from all or specific subscriptions
Other Modules (Please consult documentation):
clean Remove all local consumer and subscription data without effecting the server
environments Display the environments available for a user
facts Work with the current facts for this machine
identity Display the identity certificate for this machine or request a new one
orgs Display the orgs available for a user
redeem Attempt to redeem a subscription for a preconfigured machine
repos List the repos which this machine is entitled to use
[jsefler@jsefler ~]$
Fixed. Moving to VERIFIED
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.
http://rhn.redhat.com/errata/RHBA-2011-1695.html