[virt-tools-list] Bug: The name org.freedesktop.Avahi was not provided by any .service files

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Mon Dec 22 16:16:34 UTC 2014


On Fri, 2014-12-19 at 15:08 +0100, Joakim Tjernlund wrote:
> See Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=532328
> for details.
> 
>  Jocke

Trying again, this time with the above bug included:

virt-manager-1.1.0, File->Add Connection gives me:

Error launching connect dialogue: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 714, 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)
GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files

You only get this if no avahi installed and have dev-libs/dbus-glib installed

This quick patch fixes it:
--- virtManager/connect.py.org	2014-12-11 22:22:24.738608689 +0100
+++ virtManager/connect.py	2014-12-11 22:10:51.617237749 +0100
@@ -95,7 +95,10 @@
             self.avahiserver = Gio.DBusProxy.new_sync(self.dbus, 0, None,
                                     "org.freedesktop.Avahi", "/",
                                     "org.freedesktop.Avahi.Server", None)
+            self.avahiserver.GetVersionString()
+            logging.debug("self.avahiserver=%s", self.avahiserver)
         except Exception, e:
+            self.avahiserver = None
             logging.debug("Couldn't contact avahi: %s", str(e))
 
         self.reset_state()




More information about the virt-tools-list mailing list