Bug 1031207

Summary: --reconnect option not useful if you are disconnected by another client
Product: [Community] Virtualization Tools Reporter: Jonathon Jongsma <jjongsma>
Component: virt-viewerAssignee: Daniel Berrangé <berrange>
Status: CLOSED CANTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-21 15:13:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jonathon Jongsma 2013-11-15 21:54:30 UTC
If you start virt-viewer with the --reconnect option, and then get disconnected because another client attached to the same guest, virt-viewer will switch to the black screen that says "Waiting for guest domain to re-start"

It stays that way forever, even though the guest domain did not actually shut down.  Virt-viewer won't attempt to re-connect until the guest actually does shut down and restart again.

It would be nice if virt-viewer could discriminate between a disconnect that was caused by the guest shutting down and those that are not.  In the latter case, it could offer a 'Click here to try to reconnect now' option.

Comment 1 Jonathon Jongsma 2013-11-15 21:56:06 UTC
come to think of it, it would be nice if this 'click here to reconnect' behavior was standard for all non-shutdown disconnections, even if the --reconnect option was not specified.

Comment 2 Daniel Berrangé 2019-03-21 15:13:44 UTC
Virt-viewer doesn't have the knowledge to implemented the requested behaviour. It has no way of knowing why it got disconnected from the server.