Re: [PATCH] virt-manager: Use avahi to poll for local servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 18, 2008 at 11:28:18AM -0400, Cole Robinson wrote:
> The attached patch adds support for avahi polling
> to the virt-manager 'Open Connection' dialog.
> libvirtd advertises itself via avahi so we get the
> hard stuff for free :). To test this you will need
> to make sure Multicast DNS (mDNS, port 5353 udp) is
> open on your machine.
> 
> I had a few more screenshots but fedorapeople isn't
> responding. The basic flow is: 'Open Conn' defaults
> to selecting a local connection, so the 'browse'
> checkbox and list are inactive. If a remote conn
> type is selected, the 'browse' checkbox and 
> 'hostname' field become active, but we don't
> immediately default to actually browsing the
> network. Once the 'browse' checkbox is clicked the
> list becomes active and starts asynchronously
> populating. When an entry in the list is selected
> its hostname (or IP address if the hostname wasn't
> resolved) is placed in the "hostname" field.

If the avahi daemon isn't running virt-manager isn't toohappy.
We probably need to make sure we fallback & disable this mDNS
stuff when avahi fails

Traceback (most recent call last):
  File "/home/berrange/src/xen/virt-manager--devel/src/virtManager/engine.py", line 183, in _do_show_connect
    self.show_connect()
  File "/home/berrange/src/xen/virt-manager--devel/src/virtManager/engine.py", line 248, in show_connect
    self.windowConnect = vmmConnect(self.get_config(), self)
  File "/home/berrange/src/xen/virt-manager--devel/src/virtManager/connect.py", line 91, in __init__
    self.server = dbus.Interface(self.bus.get_object("org.freedesktop.Avahi", "/")
  File "/usr/lib/python2.5/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.5/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.5/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files


Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux