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.

Bug 1060917

Summary: subscription-manager-firstboot is throwing a Traceback
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Carter Kozak <ckozak>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney, ckozak, dlah, fsharath
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 09:34:44 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: 863175    

Description John Sefler 2014-02-03 22:13:45 UTC
Description of problem:
firstboot will not display
The following traceback is written to stderr when I run firstboot....

INFO:firstboot.loader:loading module rhsm_login
DEBUG:rhsm-app.subscription_manager.identity:Loading consumer info from identity certificates.
DEBUG:rhsm.profile:Loading current RPM profile.
INFO:rhsm.connection:Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
INFO:rhsm.connection:Connection Built: host: jsefler-f14-candlepin.usersys.redhat.com, port: 8443, handler: /candlepin
DEBUG:rhsm.connection:ContectConnection
DEBUG:rhsm-app.subscription_manager.certdirectory:Installed product IDs: ['99000', '37060']
DEBUG:rhsm-app.subscription_manager.cert_sorter:Unregistered, skipping server compliance check.
DEBUG:rhsm-app.subscription_manager.plugins:Not loading "dbus_event.DbusEventPlugin" plugin as it is disabled
DEBUG:rhsm-app.subscription_manager.plugins:<class 'dbus_event.DbusEventPlugin'> was disabled via it's config: plugin_key: dbus_event.DbusEventPlugin
config file: /etc/rhsm/pluginconf.d/dbus_event.DbusEventPlugin.conf
[main]
enabled=0

DEBUG:rhsm-app.subscription_manager.plugins:loaded plugin modules: [<module 'all_slots_test' from '/usr/share/rhsm-plugins/all_slots_test.pyc'>, <module 'auto_attach_test' from '/usr/share/rhsm-plugins/auto_attach_test.pyc'>, <module 'dbus_event' from '/usr/share/rhsm-plugins/dbus_event.pyc'>, <module 'facts_collection_test' from '/usr/share/rhsm-plugins/facts_collection_test.pyc'>, <module 'product_id_install_test' from '/usr/share/rhsm-plugins/product_id_install_test.pyc'>, <module 'register_consumer_test1' from '/usr/share/rhsm-plugins/register_consumer_test1.pyc'>, <module 'register_consumer_test2' from '/usr/share/rhsm-plugins/register_consumer_test2.pyc'>, <module 'subscribe_test' from '/usr/share/rhsm-plugins/subscribe_test.pyc'>]
DEBUG:rhsm-app.subscription_manager.plugins:loaded plugins: {'register_consumer_test2.RegisterConsumerTestPlugin': <register_consumer_test2.RegisterConsumerTestPlugin object at 0x2276f50>, 'subscribe_test.SubscribeTestPlugin': <subscribe_test.SubscribeTestPlugin object at 0x2238450>, 'all_slots_test.AllSlotsTestPlugin': <all_slots_test.AllSlotsTestPlugin object at 0x21761d0>, 'product_id_install_test.ProductIdInstallTestPlugin': <product_id_install_test.ProductIdInstallTestPlugin object at 0x22765d0>, 'auto_attach_test.AutoAttachTestPlugin': <auto_attach_test.AutoAttachTestPlugin object at 0x2176890>, 'register_consumer_test1.RegisterConsumerTestPlugin': <register_consumer_test1.RegisterConsumerTestPlugin object at 0x2276a90>, 'facts_collection_test.FactsCollectionTestPlugin': <facts_collection_test.FactsCollectionTestPlugin object at 0x2276110>}
DEBUG:rhsm-app.rhsm_login:Distribution: ('Red Hat Enterprise Linux Server', '7.0', 'Maipo', 'beta')
DEBUG:rhsm-app.rhsm_login:Running standalone firstboot: True
INFO:root:Setting size to 1280x1024
Error in sys.excepthook:
Traceback (most recent call last):
  File "/sbin/firstboot", line 96, in <lambda>
    config)
  File "/sbin/firstboot", line 56, in exception_handler
    dump_obj = meh.dump.ExceptionDump((type, value, tb), meh_conf)
  File "/usr/lib/python2.7/site-packages/meh/dump.py", line 49, in __init__
    if inspect.istraceback(exc_info.stack):
AttributeError: 'tuple' object has no attribute 'stack'

Original exception was:
Traceback (most recent call last):
  File "/sbin/firstboot", line 166, in <module>
    reboot_required = config.interface.run()
  File "/usr/lib/python2.7/site-packages/firstboot/interface.py", line 459, in run
    self.displayModule()
  File "/usr/lib/python2.7/site-packages/firstboot/interface.py", line 367, in displayModule
    currentModule.initializeUI()
  File "/usr/share/firstboot/modules/rhsm_login.py", line 375, in initializeUI
    self.show()
  File "/usr/share/rhsm/subscription_manager/gui/registergui.py", line 161, in show
    self._set_initial_screen()
  File "/usr/share/firstboot/modules/rhsm_login.py", line 251, in _set_initial_screen
    self._set_screen(registergui.INFO_PAGE)
  File "/usr/share/rhsm/subscription_manager/gui/registergui.py", line 185, in _set_screen
    self.register_dialog.set_title(_("System Registration"))
AttributeError: 'gtk.VBox' object has no attribute 'set_title'



Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -qa | grep subscription-manager
subscription-manager-1.10.12-1.el7.x86_64
subscription-manager-gui-1.10.12-1.el7.x86_64
subscription-manager-firstboot-1.10.12-1.el7.x86_64


How reproducible:


Steps to Reproduce:
1. rm -f /etc/sysconfig/firstboot
2. firstboot



Actual results:
Traceback above with no display for firstboot

Expected results:


Additional info:

Comment 1 Carter Kozak 2014-02-03 22:27:13 UTC
commit 84ebdbb978093b8a5ee6d6baa9361fd13ec70d58
Author: ckozak <ckozak>
Date:   Mon Feb 3 17:19:33 2014 -0500

    1060917: catch exception thrown in firstboot

Comment 5 Sharath Dwaral 2014-02-04 15:01:11 UTC
Version:

# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.2-1
subscription-manager: 1.10.13-1.el7
python-rhsm: 1.10.12-1.el7

Verification:

Firstboot is loading without any problems and subscriptiom-manager module is rendering as expected.

VERIFIED

Comment 7 Ludek Smid 2014-06-13 09:34:44 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.