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 693709 - firstboot -r with installed subscription-manager-firstboot produces traceback
Summary: firstboot -r with installed subscription-manager-firstboot produces traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Adrian Likins
QA Contact: John Sefler
URL:
Whiteboard: ef676e1b7f8600df5311b77b28173e4a2cff0...
: 707822 (view as bug list)
Depends On:
Blocks: 568421 695788 702988 712128
TreeView+ depends on / blocked
 
Reported: 2011-04-05 11:51 UTC by Jiri Kastner
Modified: 2018-11-26 19:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, running the firstboot utility with the "-r" option while the subscription-manager-firstboot utility was already installed caused the firstboot utility to terminate with a traceback; it also failed to display a message stating that the computer was already registered with Red Hat Network. This bug has been fixed, the firstboot utility now displays the warning message properly and no tracebacks are issued in the described scenario.
Clone Of:
: 695788 (view as bug list)
Environment:
Last Closed: 2011-12-06 17:13:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.29 KB, text/plain)
2011-05-27 10:38 UTC, Red Hat Case Diagnostics
no flags Details
File: backtrace (2.29 KB, text/plain)
2011-06-02 22:10 UTC, Red Hat Case Diagnostics
no flags Details
bzfix (143.88 KB, image/png)
2011-06-08 14:00 UTC, J.C. Molet
no flags Details
File: backtrace (2.29 KB, text/plain)
2011-06-10 02:17 UTC, Red Hat Case Diagnostics
no flags Details
File: backtrace (2.29 KB, text/plain)
2011-06-19 18:41 UTC, Red Hat Case Diagnostics
no flags Details
File: backtrace (2.29 KB, text/plain)
2011-06-19 18:42 UTC, Red Hat Case Diagnostics
no flags Details
File: backtrace (2.29 KB, text/plain)
2011-06-21 02:14 UTC, Red Hat Case Diagnostics
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Legacy) 57530 0 None None None Never
Red Hat Product Errata RHBA-2011:1695 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2011-12-06 01:23:29 UTC

Description Jiri Kastner 2011-04-05 11:51:36 UTC
Description of problem:
firstboot -r with installed subscription-manager-firstboot produces traceback (see bellow)

Version-Release number of selected component (if applicable):
firstboot-1.110.10-1.el6.i686
subscription-manager-firstboot-0.95.5-1.el6
rhn-setup-gnome-1.0.0-60.el6

How reproducible:


Steps to Reproduce:
1. install rhel6.1 server (select Desktop profile)
2. run firstboot, register to hosted, satellite.
3. go through rest of firstboot steps
4. run firstboot -r
5. ends with traceback (see bellow)
6. yum remove subscription-manager-firstboot
7. run firstboot -r
8. 
  
Actual results:
firstboot 1.110.10 exception report
Traceback (most recent call last):
  File "/usr/sbin/firstboot", line 192, in <module>
    config.moduleList = loadModules(config.moduleDir, config.mode)
  File "/usr/lib/python2.6/site-packages/firstboot/loader.py", line 140, in loadModules
    obj.loadModules(mode=mode)
  File "/usr/lib/python2.6/site-packages/firstboot/moduleset.py", line 111, in loadModules
    self.moduleList = loadModules(self.path, mode)
  File "/usr/lib/python2.6/site-packages/firstboot/loader.py", line 101, in loadModules
    obj = loaded.moduleClass()
  File "/usr/share/rhn/up2date_client/firstboot/rhsm_subscriptions.py", line 23, in __init__
    managergui.MainWindow.__init__(self)
  File "/usr/share/rhsm/gui/managergui.py", line 261, in __init__
    self._check_rhn_classic()
  File "/usr/share/rhsm/gui/managergui.py", line 421, in _check_rhn_classic
    self._get_window())
  File "/usr/share/rhn/up2date_client/firstboot/rhsm_subscriptions.py", line 54, in _get_window
    return self.vbox.get_parent_window().get_user_data()
AttributeError: 'NoneType' object has no attribute 'get_parent_window'

Local variables in innermost frame:
self: <rhsm_subscriptions.moduleClass object at 0x886154c>


Config instance, containing members:
frontend: None
moduleDir: /usr/share/firstboot/modules/
needInterface: True
themeDir: /usr/share/firstboot/themes/RHEL
mode: 1
interface: Interface instance, containing members:
  interface._screenshotDir: /root/firstboot-screenshots
  interface._control: Control instance, containing members:
    interface._control.currentPage: 0
    interface._control.moduleList: []
    interface._control.history: []
  interface.testing: False
  interface._x_size: 3120
  interface._controlStack: [Already dumped (Control instance)
]
  interface._screenshotIndex: 0
  interface.autoscreenshot: False
  interface._y_size: 1050
defaultThemeDir: /usr/share/firstboot/themes/default/
moduleList: None


Expected results:
'firstboot -r' starts also with subscription-manager-firstboot installed

Additional info:

Comment 2 RHEL Program Management 2011-04-05 12:03:27 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 5 Adrian Likins 2011-04-08 14:42:54 UTC
Fixed in master (but not merged to 6.1 branch yet) in:


commit e3ccb4b6658f59ecc33b024ad462ed0f693d346e
Author: Adrian Likins <alikins>
Date:   Wed Apr 6 16:35:05 2011 -0400

    693709: fix bug showing the "you are registered to rhn" dialog
    
    .__get_window was calling the subclass method, which was pointing
    at a window which isn't created yet in firstboot (createScreen
    creates it)

Comment 7 Adrian Likins 2011-04-13 19:40:14 UTC
Incorrectly moved to modified (patch not pushed to rhel6 branch because of lack of blocker status)

Comment 11 Andrius Benokraitis 2011-05-26 17:39:22 UTC
*** Bug 707822 has been marked as a duplicate of this bug. ***

Comment 13 Red Hat Case Diagnostics 2011-05-27 10:38:36 UTC
Created attachment 501278 [details]
File: backtrace

Comment 16 Red Hat Case Diagnostics 2011-06-02 22:10:32 UTC
Created attachment 502666 [details]
File: backtrace

Comment 18 Adrian Likins 2011-06-07 19:32:39 UTC
commit 2e737233862bd50c1bf95aca7bc90f85014fe40d
Author: Adrian Likins <alikins>
Date:   Wed Apr 6 16:35:05 2011 -0400

    693709: fix bug showing the "you are registered to rhn" dialog
    
    .__get_window was calling the subclass method, which was pointing
    at a window which isn't created yet in firstboot (createScreen
    creates it)


(in RHEL6 branch)

Comment 19 J.C. Molet 2011-06-08 14:00:00 UTC
Created attachment 503705 [details]
bzfix

Tested with release candidate of rhsm:

subscription-manager-0.95.14-1.git.4.11aa664.el6.x86_64
subscription-manager-firstboot-0.95.14-1.git.4.11aa664.el6.x86_64
subscription-manager-gnome-0.95.14-1.git.4.11aa664.el6.x86_64


firstboot -r now opens normally with the "you are registered to rhn" warning properly (see screenshot).

firstboot does not create any additional tracebacks or warning messages.

Marking this VERIFIED.

Comment 22 Red Hat Case Diagnostics 2011-06-10 02:17:37 UTC
Created attachment 504005 [details]
File: backtrace

Comment 25 Red Hat Case Diagnostics 2011-06-19 18:41:43 UTC
Created attachment 505496 [details]
File: backtrace

Comment 27 Red Hat Case Diagnostics 2011-06-19 18:42:08 UTC
Created attachment 505498 [details]
File: backtrace

Comment 30 Red Hat Case Diagnostics 2011-06-21 02:14:50 UTC
Created attachment 505731 [details]
File: backtrace

Comment 32 Tomas Capek 2011-06-24 08:53:42 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, running the firstboot utility with the "-r" option while the subscription-manager-firstboot utility was already installed caused the firstboot utility to terminate with a traceback; it also failed to display a message stating that the computer was already registered with Red Hat Network. This bug has been fixed, the firstboot utility now displays the warning message properly and no tracebacks are issued in the described scenario.

Comment 35 errata-xmlrpc 2011-12-06 17:13:31 UTC
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


Note You need to log in before you can comment on or make changes to this bug.