Bug 469734 - Additional potential tracebacks found by pychecker
Summary: Additional potential tracebacks found by pychecker
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda
Version: 5.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Hans de Goede
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-03 19:18 UTC by Denise Dumas
Modified: 2009-01-20 21:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 21:34:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch fixing: text.py:475: No global (instkey) found (403 bytes, patch)
2008-11-05 15:16 UTC, Hans de Goede
no flags Details | Diff
PAtch fixing: text.py:262: No global (MessageWindow) found (1.74 KB, patch)
2008-11-05 15:17 UTC, Hans de Goede
no flags Details | Diff
Patch fixing: textw/network_text.py:238: Object (ptpaddr) has no attribute (value) (1.63 KB, patch)
2008-11-05 15:18 UTC, Hans de Goede
no flags Details | Diff
Patch fixing: iw/netconfig_dialog.py:*: No class attribute (_handleIPMissing) found (1.85 KB, patch)
2008-11-05 15:19 UTC, Hans de Goede
no flags Details | Diff
PATCH fixing: partedUtils.py:315: No global (device) found (914 bytes, patch)
2008-11-06 08:38 UTC, Hans de Goede
no flags Details | Diff
Patch fixing: network.py:346: No global (anaconda) found (5.11 KB, patch)
2008-11-06 13:59 UTC, Hans de Goede
no flags Details | Diff
Patch fixing: text.py:413: Invalid arguments to (exceptionWindow), got 1, expected 2 (415 bytes, patch)
2008-11-06 21:02 UTC, Hans de Goede
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0164 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2009-01-20 16:05:24 UTC

Description Denise Dumas 2008-11-03 19:18:27 UTC
Description of problem:

These are more problems turned up by pychecker that require more complicated fixes. We plan to fix these through Snap3 and Snap4.

iw/netconfig_dialog.py:176: No class attribute (_handleIPMissing) found
iw/netconfig_dialog.py:193: No class attribute (_handleIPMissing) found
iw/netconfig_dialog.py:201: No class attribute (_handleIPMissing) found
network.py:346: No global (anaconda) found
partedUtils.py:315: No global (device) found
text.py:262: No global (MessageWindow) found
text.py:413: Invalid arguments to (exceptionWindow), got 1, expected 2
textw/network_text.py:238: Object (ptpaddr) has no attribute (value)
textw/network_text.py:239: Object (ptpaddr) has no attribute (value)
text.py:475: No global (instkey) found

So far, fixes available for 

text.py:262: No global (MessageWindow) found
text.py:475: No global (instkey) found

Comment 4 Hans de Goede 2008-11-05 15:13:58 UTC
(In reply to comment #0)
> Description of problem:
> 
> These are more problems turned up by pychecker that require more complicated
> fixes. We plan to fix these through Snap3 and Snap4.
> 
> iw/netconfig_dialog.py:176: No class attribute (_handleIPMissing) found
> iw/netconfig_dialog.py:193: No class attribute (_handleIPMissing) found
> iw/netconfig_dialog.py:201: No class attribute (_handleIPMissing) found

To reproduce the problem caused by this:
Do an ISO based install NOT a net install and then on the partitioning scheme select "advance storage" and then "add iscsi disk", then a network config dialog will be thrown up as iscsi needs network and that hasn't been brought up yet. Choose manual configuration here and then leave the ip-address empty.

> text.py:262: No global (MessageWindow) found

Do a textmode kickstart install with 'autopart --encrypted' in your ks.cfg (without "--passphrase="...") enter 2 different passphrases and press enter

> textw/network_text.py:238: Object (ptpaddr) has no attribute (value)
> textw/network_text.py:239: Object (ptpaddr) has no attribute (value)

Reproducing this requires doing a text based s390 install with a cms conf file which does not specify the ip addresses for the ptp network interface (dcantrell sends his regards).

> text.py:475: No global (instkey) found

If you do a textmode install in the "enter installation key" dialog you see a bunch off grey (background color) boxes, where the product type for which to enter the key should be displayed

Comment 5 Hans de Goede 2008-11-05 15:16:16 UTC
Created attachment 322585 [details]
Patch fixing: text.py:475: No global (instkey) found

Comment 6 Hans de Goede 2008-11-05 15:17:09 UTC
Created attachment 322586 [details]
PAtch fixing: text.py:262: No global (MessageWindow) found

Comment 7 Hans de Goede 2008-11-05 15:18:07 UTC
Created attachment 322587 [details]
Patch fixing: textw/network_text.py:238: Object (ptpaddr) has no attribute (value)

Comment 8 Hans de Goede 2008-11-05 15:19:07 UTC
Created attachment 322588 [details]
Patch fixing: iw/netconfig_dialog.py:*: No class attribute (_handleIPMissing) found

Comment 9 Hans de Goede 2008-11-05 15:20:34 UTC
Here us an updates.img which includes all these patches:
http://people.atrpms.net/~hdegoede/updates.img

Comment 10 Hans de Goede 2008-11-06 08:38:04 UTC
Created attachment 322673 [details]
PATCH fixing: partedUtils.py:315: No global (device) found 

Note the last patch I attached for "partedUtils.py:315: No global (device) found" is not in the initial updates.img I provided and thus has not yet been tested.

Here is an updated updates.img, with this patch included.
http://people.atrpms.net/~hdegoede/updates-partedUtils.py.img

Comment 11 Hans de Goede 2008-11-06 13:59:57 UTC
Created attachment 322715 [details]
Patch fixing: network.py:346: No global (anaconda) found

Note this patch is not in the initial updates.img I provided and thus has not yet been tested.

Here is an updated updates.img, with this patch and the "partedUtils.py:315: No global (device) found" included.
http://people.atrpms.net/~hdegoede/updates-network.py.img

Comment 13 Hans de Goede 2008-11-06 21:02:06 UTC
Created attachment 322786 [details]
Patch fixing: text.py:413: Invalid arguments to (exceptionWindow), got 1, expected 2

Ok, with this patch added to the list all issues pychecker found have been fixed, here is an updates.img including ALL fixes for this bug:
http://people.atrpms.net/~hdegoede/updates-text.py.img

Comment 15 Brock Organ 2008-11-12 20:26:44 UTC
regression tests have completed successfully for all arches except ia64 (an independent infrastructure issue has kept those tests from completing successfully) ... based on the other arches results, we should be ok for the patches in the updates image in comment #13 ...

Comment 16 Hans de Goede 2008-11-12 20:42:31 UTC
All attached patches commited except the 6th attachment, which fixes:
network.py:346: No global (anaconda) found

The fix for this needs to touch quite a few files and it turns out this is in a code path we don't use atm. So we're moving this patch to 5.4 to play it safe.

Comment 20 errata-xmlrpc 2009-01-20 21:34:03 UTC
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/RHBA-2009-0164.html


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