Bug 1213299

Summary: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files (2)
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: berrange, crobinso, virt-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: 2015-06-05 23:03:05 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:
Attachments:
Description Flags
screenshot none

Description Marcin Juszkiewicz 2015-04-20 09:41:14 UTC
Created attachment 1016276 [details]
screenshot

Description of problem:

Installed Fedora 22 (Server + Virtualization) on AArch64. Logged remotely via SSH -X and launched virt-manager (as a root).

I got "Could not detect a default hypervisor" information so went to File/Add connection. And that gave me error message and Python traceback:

Error launching connect dialog: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files (2)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 709, in _do_show_connect
    self._get_connect_dialog().show(src.topwin, reset_state)
  File "/usr/share/virt-manager/virtManager/connect.py", line 143, in show
    self.start_browse()
  File "/usr/share/virt-manager/virtManager/connect.py", line 273, in start_browse
    service, domain, flags)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files (2)

When I press OK then connection is created.

Version-Release number of selected component (if applicable):

1.1.0-5.git310f6527.fc22

How reproducible:

always

Steps to Reproduce:
1. install fresh system (Fedora Server + Virtualization)
2. launch virt-manager
3. use "File/Add Connection" menu entry

Actual results:

error with traceback

Expected results:

no error

Additional info:

Comment 1 Cole Robinson 2015-04-20 16:34:13 UTC
Thanks for the report, fixed upstream now:

commit 8aefc012c54c3839a88b386e55ea513508f26f99
Author: Cole Robinson <crobinso>
Date:   Mon Apr 20 12:32:33 2015 -0400

    connect: Fix handling of missing avahi (bz 1213299)

Comment 2 Fedora Update System 2015-05-04 19:41:02 UTC
virt-manager-1.2.0-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/virt-manager-1.2.0-1.fc22

Comment 3 Fedora Update System 2015-05-08 07:42:37 UTC
Package virt-manager-1.2.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-1.2.0-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7640/virt-manager-1.2.0-1.fc22
then log in and leave karma (feedback).