usb-storage tests fail in quantal because udisks is not installed

Bug #1023224 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
New
Undecided
Unassigned

Bug Description

Installed Quantal server 64bit, then installed checkbox-certification-server from the PPA. Noticed after a test run that usb/storage-preinserted failed, even though I had a Key inserted that is accessible.

Turns out the error is due to udisks not being installed:

bladernr@clarence:~$ dpkg -l |grep -i udisks
ii libudisks2-0 1.98.0-2 GObject based library to access udisks2
bladernr@clarence:~$ apt-cache policy udisks
udisks:
  Installed: (none)
  Candidate: 1.0.4-6
  Version table:
     1.0.4-6 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages

Here's the traceback:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    's', (bus_name,), **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.UDisks': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/checkbox/scripts/removable_storage_test", line 305, in <module>
    sys.exit(main())
  File "/usr/share/checkbox/scripts/removable_storage_test", line 205, in main
    test.get_disk_info(args.device)
  File "/usr/share/checkbox/scripts/removable_storage_test", line 75, in get_disk_info
    "/org/freedesktop/UDisks")
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UDisks was not provided by any .service files

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Actually we should use UDisks2 - although I guess the easier way for us might be to install udisks itself, but I think we should go with what Ubuntu uses

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.