Bug 1399894 - Unable to stably view libvirt host lists via avahi with virt-manager
Summary: Unable to stably view libvirt host lists via avahi with virt-manager
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-30 02:37 UTC by Yanqiu Zhang
Modified: 2018-10-22 12:42 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-22 12:42:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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