summaryrefslogtreecommitdiffstats
path: root/exception.py
Commit message (Collapse)AuthorAgeFilesLines
* Import the logging stuff (#515564).Chris Lumens2009-08-051-0/+3
|
* Adapt exception.py to using python-meh.Chris Lumens2009-07-291-611/+77
| | | | | | | | This involves getting rid of most of the real code out of this file, adding a minimal subclass of the ExceptionHandler class to do the copying and pdb setup anaconda needs, and calling the install method from within anaconda. We also need to no longer call handleException from elsewhere in anaconda. That method no longer exists.
* Lots of small grammar and wording changes.Peter Jones2009-07-131-14/+15
| | | | Just auditing the world for clarity, don't mind me.
* Include yum.log in anacdump.txt too.Radek Vykydal2009-06-241-0/+1
| | | | | | Also decrease yum debug log detail. Related commit introducing yum.log is 96999a5ba329b41bf555ab945a4749755b97c974.
* Include the contents of /proc/cmdline in exception reportsJeremy Katz2009-06-161-1/+2
| | | | | | Include /proc/cmdline in exception dumps so that we can see what arguments people are trying to pass without having to ask every single time.
* Remove locals containing "passphrase" or "password" from exns (#503442).Chris Lumens2009-06-011-0/+7
|
* Make the save-to-bugzilla dupe detection smarter.Chris Lumens2009-05-261-1/+1
| | | | | | | | | | | | | | This fixes two problems with how we determine tracebacks are the same based on filename comparisons: (1) Comparisons between python files on i386 and x86-64 tracebacks fail because /usr/lib and /usr/lib64 are different, even though the files themselves are the same. (2) Comparisons between python files on the running system and in /tmp/updates fail obviously. This is a little less concerning to fail on, but since the lines of code are likely to change in an updates.img, duplicates should still work properly.
* Prevent sensitive information in kickstart files from ending up in tracebacks.Chris Lumens2009-04-011-3/+1
| | | | | | | The __str__ method on a KickstartParser will cause the whole object to be printed out as a kickstart file. This means we have no chance to exclude certain sensitive pieces of information. It would be better for us to not see the ksdata at all than to see passwords.
* Lots of little updates to make things use the new storage module.David Lehman2009-02-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exception.py: - Remove unused partedUtils import. - Collect things from storage, not partitions. gui.py: - exceptionDisks is in storage now, not diskset. installclasses/rhel.py: installclasses/fedora.py: - setDefaultPartitioning take storage arg, not partitions. iw/autopart_type.py: - Find things in storage, not partitions. iw/bootloader_main_gui.py: iw/osbootwidget.py: - Remove unused partedUtils import. - Find fsset in storage now. - Use storage, not diskset, for iterating over disks/partitions. iw/lvm_dialog_gui.py: - Fix several typos from the original storage update. iw/partition_gui.py: - Find unusedMDMembers in storage, not partitions. iw/partitionui_helpers_gui.py: - Use StorageDevice.minSize,maxSize for resize limits. - Update doUIRAIDLVMChecks to use new storage module. packages.py: - Use new storage module to list vgs for selinux hack. storage/__init__.py: - Fix FSSet.createSwapFile so it creates the file on the correct device. storage/iscsi.py: - Use new storage module to identify iscsi disks. textw/partition_text.py: textw/upgrade_text.py: - Initial update to use new storage module. yuminstall.py: - Use storage module to find space for upgrade transaction. - Use storage module to locate protected partitions to mount in doPreInstall.
* Updates to make existing code use the new storage module.David Lehman2009-02-231-1/+1
|
* filer.login raises an exception with it can't login, not returns None (#486454).Chris Lumens2009-02-191-1/+3
|
* File the basic traceback as the first comment instead of a generic message.Chris Lumens2009-02-161-1/+1
|
* Remove partedUtils.sniffFilesystemType()David Cantrell2009-02-121-1/+1
| | | | This function is just a pass-through for isys.readFSType().
* Log everything from execWithRedirect or execWithCapture (#467690).Chris Lumens2009-01-071-0/+1
|
* Don't dump encryption passphrases.David Lehman2008-12-081-0/+2
|
* Write anacdump.txt upon receipt of SIGUSR2 (from clumens).David Lehman2008-12-081-1/+4
| | | | | This is the patch Chris posted, modified to use inspect.stack to generate the traceback.
* Use stacks instead of tracebacks in traceback handlers.David Lehman2008-12-081-10/+32
| | | | | | | | | | This allows us to generate traceback-like stacks on demand using inspect.stack(). stack() returns a list of tuples representing the stack frames at the time of invocation. A traceback object can be converted to a list of these tuples by calling inspect.getinnerframes(tb). NOTE: the stack() function returns the frames in the opposite order of a traceback's.
* Don't dump private class members (those with leading "__")David Lehman2008-11-121-0/+3
|
* Check that the platform and product are also correct (#469367).Chris Lumens2008-10-311-2/+1
|
* Search for the hash in the whiteboard, not as the entire whiteboard.Chris Lumens2008-10-291-1/+1
| | | | | | This is useful because the status_whiteboard can be used for other things - like NEEDSRETESTING. Our old search doesn't take this into account and will therefore fail to find dupes if the whiteboard contains something else.
* Make sure the productVersion given by .treeinfo exists in bugzilla (#468657).Chris Lumens2008-10-281-1/+2
| | | | | | | | | | Prerelease version of Fedora sometimes get version numbers in .treeinfo or .buildstamp like 10-Beta. However, this version does not exist in bugzilla so we get an error trying to save the bug. This could also happen in respins. So, grab a list of all the versions that are valid for the product out of bugzilla and make sure productVersion exists. If not, either use the develVersion from the installclass or just use the last one out of the the list.
* Set the filename on the traceback when we upload it (wwoods).Chris Lumens2008-09-191-2/+2
|
* Catch errors from using the wrong bugzilla field and display them.Chris Lumens2008-09-101-1/+1
|
* rep_platform has been renamed to platform.Chris Lumens2008-09-101-1/+1
|
* Fix saving to remote hosts (#461500).Chris Lumens2008-09-081-1/+1
|
* short_desc is now summary.Chris Lumens2008-09-081-1/+1
|
* Use print() as a function.Peter Jones2008-09-081-2/+2
|
* Remove references to /tmp/netinfoDavid Cantrell2008-08-271-1/+1
|
* Bring up the network before saving a bug via scp.Chris Lumens2008-08-131-0/+7
|
* Add the match type so we don't find all bugs.Chris Lumens2008-08-131-0/+1
|
* Fix various tracebacks in filing bugs direct to bugzilla.Chris Lumens2008-07-231-11/+11
|
* If there's no network, attempt to bring it up before filing a bug.Chris Lumens2008-07-221-0/+7
|
* Support an abstract bug filing layer.Chris Lumens2008-07-221-40/+53
| | | | | | | | Different products and distributions could support completely different bug filing system (or none at all, for that matter) so support an abstraction that allows us to use multiple kinds of bug files. We still need to commit that abstraction somewhere and also make sure we allow full customization through the product.img.
* Add support for saving via scp back in.Chris Lumens2008-07-221-0/+86
|
* Add support for filing tracebacks directly into bugzilla.Chris Lumens2008-07-221-28/+108
| | | | | | | | | | | | | | This patch adds support for save to bugzilla, using the python-bugzilla module. We get the bugzilla URL from product.bugUrl and require the user to already have a valid account with that bugzilla instance. That should cut down on potential abuse. To cut down on the number of possible duplicates, we hash the file name, function name, and line of each frame in the traceback and store that hash in the bug itself. Before filing a new bug, we query for any bugs containing that hash value. If found, we simply add the traceback as a new attachment and put the user on the CC list. If not found, we create a new bug. Either way, the user is encouraged to visit their bug and make a more meaningful comment.
* Add a class that represents anaconda exception dumps.Chris Lumens2008-07-221-159/+170
| | | | | | | The purpose of this class is to package up the Python representation of a traceback along with some methods for doing all the dumping and mangling that we need to do. In particular, now there's fewer values to pass around to the various functions in the exn saving dialogs.
* Remove the code to save exceptions over scp.Chris Lumens2008-07-221-70/+0
|
* Fix a traceback when trying to save exceptiona via scp.Chris Lumens2008-07-161-1/+2
|
* Add the .treeinfo file into the exception report.Chris Lumens2008-06-211-1/+2
|
* Move enableNetwork into the interface. Bring network up for scp.Chris Lumens2008-06-191-2/+5
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-8/+12
| | | | * po/sk.po: Typo fix.
* Add support for saving the exception to a local directory for live installsJeremy Katz2008-03-271-0/+17
| | | | | | | If you're doing a live install, you often won't have removable media inserted but you _can_ just save the exception somewhere and then report it. So let's take advantage of that. Not implemented for text mode as text-mode live installs aren't that relevant
* Save resize output to a file (/tmp/resize.out) so that it's more usefulJeremy Katz2008-03-271-1/+1
| | | | | This way, we can shove it into our exception dumps and also it'll be easier for people to look at and attach if they hit problems with the resizing code
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-3/+3
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-9/+16
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Tweak save-exception-to-disk algorithm.Bill Nottingham2007-12-071-10/+16
| | | | | First try mounting as whatever fs is on the disk/partition. If it's blank, or mounting a vfat partition fails, format as vfat.
* Don't create the exception device - just use the device as passed in.Bill Nottingham2007-12-071-9/+3
|
* Remove the release notes code entirely.Chris Lumens2007-12-051-1/+0
|
* fix references to point to the device we created earlierBill Nottingham2007-11-301-2/+2
|
* in test mode, return success when copying anacdump.txtBill Nottingham2007-11-301-1/+1
|