Bug 1246022

Summary: Error massage pop up "Unable to connect to libvirt with URI: [none]." continuously when stop libvirtd service
Product: Red Hat Enterprise Linux 7 Reporter: zhoujunqin <juzhou>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: dblechte, fidencio, mzhan, rbalakri, tzheng, xiaodwan
Target Milestone: rc   
Target Release: 7.2   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1285163 (view as bug list) Environment:
Last Closed: 2015-11-19 07:39:19 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1285163    

Description zhoujunqin 2015-07-23 10:27:54 UTC
Description of problem:
When use virt-viewer with option "--wait" connecting to a shutdown guest, then stop libvirtd service on host, error message "Unable to connect to libvirt with URI: [none]" pop up continuously though i click "OK" button.

Version-Release number of selected component (if applicable):
virt-viewer-2.0-5.el7.x86_64
libvirt-1.2.17-2.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Use virt-viewer connect to a shutdown guest.
# virsh domstate rhel6.6 
shut off

# virt-viewer  rhel6.6 --wait

2. Stop libvirtd service on host.
# service libvirtd stop

3. Start libvirtd service on host again.
# service libvirtd start

Actual results:
After step2, There is a dialog pop up:Unable to connect to libvirt with URI: [none].
Terminal showing: "Waiting for libvirt to start" after i click "OK", but it will pop up again and again.

After step3, The dialog window will disappear until i click "OK" again, and virt-viewer showing "Waiting for guest domain to start"

Expected results:
After step2, after i click "OK", dialog will closed.

Additional info:

Comment 2 Fabiano FidĂȘncio 2015-07-23 15:24:16 UTC
This problem is already fixed by the following upstream patches:

1bcd8d0fe6df553f087d11b539a59e128a2a350b
526e882368eb74eb1ed9de5c1c8aefb7b428fb9d
1a619f23835abcc358b84bcead14171361907038
66afac53b6769f079d537cfa130f212286981c93

The expected result is a bit different but I do believe it makes more sense then the proposed one. The result with the patches applied will be no error message at all (only the status messages being changed) and some more info in the debug log.

Comment 8 zhoujunqin 2015-08-10 03:57:14 UTC
Try to verify this bug with new build:
virt-viewer-2.0-6.el7.x86_64
libvirt-1.2.17-3.el7.x86_64

Steps:
1. Use virt-viewer connect to a shutdown guest.
# virsh domstate rhel6.6 
shut off

# virt-viewer  rhel6.6 --wait

2. Stop libvirtd service on host.
# service libvirtd stop

3. Start libvirtd service on host again.
# service libvirtd start

Result now:
Step1 outputs: You can see "Waiting for guest domain to start" in virt-viewer terminal.

Step2 outputs: You can see "Waiting for libvirt to start" in virt-viewer terminal.
There is no error dialogue "Unable to connect to libvirt with URI: [none]" pop up any more

Step3 outputs: You can see "Waiting for guest domain to start" in virt-viewer terminal.

And according to Comment 2, move this bug from ON_QA to VERIFIED.

Comment 10 errata-xmlrpc 2015-11-19 07:39:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2211.html