Bug 979535 - RFE: virt-manager should automatically re-connect to libvirt when it's restarted
Summary: RFE: virt-manager should automatically re-connect to libvirt when it's restarted
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: rawhide
Hardware: All
OS: All
unspecified
low
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-28 18:27 UTC by Adam Williamson
Modified: 2013-08-31 17:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-31 17:09:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2013-06-28 18:27:11 UTC
Due to #979533, I have to do 'systemctl restart libvirtd.service' rather often. If virt-manager is running when I do this, it throws an error dialog and makes me click through it and then manually re-connect to libvirt. It'd be kinda shiny if it was a bit smarter about handling this, and when libvirt goes away briefly then comes back, just reconnected automatically?

Comment 1 Cole Robinson 2013-08-31 17:09:43 UTC
We've had a couple requests for this in the past. While on the surface it seems simple, it would actually be a total pain in the ass.

In the simple case of the local libvirtd service being restarted, we could probably hook into systemd and get an event for more info. So if the user did a service restartd, just immediately reopen the connection and we could try to go on our way... kind of. The problem is that reconnecting to libvirt means that we need to repoll everything and update the backing state behind the scenes, which virt-manager just isn't wired to handle

So the best we could do without a large effort would be to close everything associated with the connection, drop you back to the manager window, but initiate the reconnection from there. Which only saves a couple clicks. And we couldn't handle it gracefully in the face of a libvirtd crash, or libvirtd being restarted on a remote host.

If someone showed up with a patch to implement this in a sustainable way I'd be happy to apply it, but as is I don't see it being worth the effort given the limited resources we have.


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