[udev regression] Opening LUKS device fails

Bug #1404143 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Since yesterday, udisks2's Luks tests (https://jenkins.qa.ubuntu.com/job/vivid-adt-udisks2/?) fail:

======================================================================
ERROR: test_0_create_teardown (__main__.Luks)
LUKS create/teardown
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src/tests/integration-test", line 1141, in test_0_create_teardown
    'label': GLib.Variant('s', 'treasure')}))
  File "src/tests/integration-test", line 314, in fs_create
    block.call_format_sync(type, options, None)
GLib.Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error opening LUKS device: Command-line `cryptsetup luksOpen ""/dev/sda"" luks-669be693-dc38-499c-911b-19df1540f70c' exited with non-zero exit status 1: device-mapper: reload ioctl on failed: Invalid argument
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-18309 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-18309 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-18309 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-18309 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-18309 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-18309 failed: No such device or address
 (0)

This test also fails locally for me. This still worked on Dec 18 on my system.

Simple reproducer:

sudo modprobe scsi_debug
gdbus call -y -d org.freedesktop.UDisks2 -o /org/freedesktop/UDisks2/block_devices/sdb -m org.freedesktop.UDisks2.Block.Format 'ext2' '{"encrypt.passphrase": <"foo">}'

Martin Pitt (pitti)
Changed in udisks2 (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
milestone: none → ubuntu-15.01
description: updated
tags: added: qa-daily-testing regression-release vivid
Revision history for this message
Martin Pitt (pitti) wrote : Re: Opening LUKS device fails

Reproducer without udisks2:

sudo modprobe scsi_debug
echo foo | sudo cryptsetup luksFormat /dev/sdb
echo foo | sudo cryptsetup luksOpen /dev/sdb l

summary: - Creating LUKS device fails
+ Opening LUKS device fails
affects: udisks2 (Ubuntu) → cryptsetup (Ubuntu)
Changed in cryptsetup (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Revision history for this message
Martin Pitt (pitti) wrote :

Regression introduced in https://launchpad.net/ubuntu/+source/systemd/218-2ubuntu3 . Downgrading the udev binary package to 218-2ubuntu2 fixes this.

affects: cryptsetup (Ubuntu) → systemd (Ubuntu)
Changed in systemd (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
summary: - Opening LUKS device fails
+ [udev regression] Opening LUKS device fails
Martin Pitt (pitti)
Changed in systemd (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in systemd (Ubuntu):
status: Fix Committed → Fix Released
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.