Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299750 Details for
Bug 439850
Every install, libvirt error messages are shown on virt-install
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch copied from upstream.
virtinst-0.300.2-handle-libvirt-errors.patch (text/plain), 1.55 KB, created by
Bryan Mason
on 2008-03-31 18:51:00 UTC
(
hide
)
Description:
Proposed patch copied from upstream.
Filename:
MIME Type:
Creator:
Bryan Mason
Created:
2008-03-31 18:51:00 UTC
Size:
1.55 KB
patch
obsolete
># HG changeset patch ># User "Cole Robinson <crobinso@redhat.com>" ># Date Fri Feb 22 13:40:59 2008 -0500 ># Node ID dc3dd659f7df09ca9496fa63b1a73d07eeba4573 ># parent: 549bd0ef2ef7931789c4ff4f601d2efa1152c5ae >Use libvirt error handlers and custom exception handler. > >The libvirt error handler will ignore all error messages, as these errors >should be raised as exceptions anyways and dealt with that way. This prevents >a deliberately ignored exception from still dumping a libvirt error >to the console (such as during domain create when we would us lookupByName >to ensure there wasn't a domain name conflict). > >--- a/virtinst/cli.py Tue Feb 19 16:37:13 2008 -0500 >+++ b/virtinst/cli.py Fri Feb 22 13:40:59 2008 -0500 >@@ -65,6 +65,22 @@ def setupLogging(appname, debug=False): > else: > streamHandler.setLevel(logging.ERROR) > rootLogger.addHandler(streamHandler) >+ >+ # Register libvirt handler >+ def libvirt_callback(ctx, err): >+ if err[3] != libvirt.VIR_ERR_ERROR: >+ # Don't log libvirt errors: global error handler will do that >+ logging.warn("Non-error from libvirt: '%s'" % err[2]) >+ libvirt.registerErrorHandler(f=libvirt_callback, ctx=None) >+ >+ # Register python error handler to log exceptions >+ def exception_log(type, val, tb): >+ import traceback >+ str = traceback.format_exception(type, val, tb) >+ logging.exception("".join(str)) >+ sys.__excepthook__(type, val, tb) >+ sys.excepthook = exception_log >+ > > def getConnection(connect): > if connect is None or connect.lower()[0:3] == "xen": >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 439850
: 299750