Bug 1399894

Summary: Unable to stably view libvirt host lists via avahi with virt-manager
Product: Red Hat Enterprise Linux 7 Reporter: Yanqiu Zhang <yanqzhan>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: crobinso, dyuan, fjin, juzhou, mzhan, tzheng, xiaodwan, yafu, yanqzhan, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-22 12:42:21 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 Yanqiu Zhang 2016-11-30 02:37:28 UTC
Description of problem:
Unable to stably view libvirt host lists via avahi with virt-manager

Version-Release number of selected component (if applicable):
libvirt-2.0.0-10.el7_3.2.x86_64
virt-manager-1.4.0-2.el7.noarch

How reproducible:
Above 90%

Steps to Reproduce:
1.Make sure firewall allows mDNS
# system-config-firewall (use #firewall-config instead if FirewallD is active)
Tick mDNS in pop-up firewall config windows

2.Config a remote server in the same subnet:
2.1 Edit /etc/libvirt/libvirtd.conf
mdns_adv = 1
mdns_name = "Virtualization Host first-Demo"
2.2 Edit /etc/nsswitch.conf
hosts: hostname
2.3 Restart service
# systemctl restart avahi-daemon
# systemctl restart libvirtd

3.Config another server, called "Virtualization Host second-Demo".

4.Check above virtual hostname on Client host
4.1 In virt-manager, click "File"-> "Add Connection",
Select hypervisor as "QEMU/KVM", Tick "Connect to remote host", Method as "SSH", Username as "root"
4.2 Check "hostname" dropdown list

5.Stop and start virt-manager again, check the "hostname" dropdown list to see different results.

6.Using avahi-discover instead:
#avahi-discover
In the popup window, both "Virtualization Host first-Demo" and "Virtualization Host second-Demo" are always shown under the item "Virtual Machine Manager", clearly and stably.


Actual results:
Step 4&5: In virt-manager, cannot show libvirt hosts stably:
Sometimes can show both, sometimes show none(the dropdown button disabled), also sometimes show only one.

Expected results:
In virt-manager, should show all libvirt hosts in "hostname" dropdown list every time. Just as step6 avahi-discover displayed.

Comment 4 Cole Robinson 2018-10-22 12:42:21 UTC
Thanks for the report. I removed avahi support in upstream virt-manager in the 2.0.0 release. It's a minor convenience feature that in practice no one really seems to use. So I don't think it's worth devoting RHEL7 resources to fixing it when the code is gone upstream