loginctl attach fails with DVD drive

Bug #1407399 reported by Schlomo Schapiro
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)

Bug Description

Using Ubuntu 14.10 in a multiseat setup I cannot assing the DVD drive to the secondary seat:

root@host:~# COLUMNS=300 loginctl seat-status seat0 | grep host
root@host:~# loginctl attach seat-1 /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0 /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/scsi_generic/sg1
Failed to issue method call: Invalid argument

Assigning USB devices and graphics cards and and sound cards works fine.

System and package info:

root@host:~# lsb_release -rd
Description: Ubuntu 14.10
Release: 14.10
root@host:~# apt-cache policy systemd
  Installed: 208-8ubuntu8.1
  Candidate: 208-8ubuntu8.1
  Version table:
 *** 208-8ubuntu8.1 0
        500 http://de.archive.ubuntu.com/ubuntu/ utopic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     208-8ubuntu8 0
        500 http://de.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
root@host:~# uname -a
Linux brho 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

seat-1 exists and has lots of other stuff attached:
root@host:~# loginctl seat-status seat-1
        Sessions: *c3 c2
                  │ drm:card1
                  │ [MASTER] graphics:fb1 "nouveaufb"
                  │ usb:2-11
                  │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-11/2-11.1
                  │ │ usb:2-11.1
                  │ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-11/2-11.1/2-11.1:1.0/0003:03F0:0024.0003/input/input15
                  │ │ input:input15 "CHICONY HP Basic USB Keyboard"
                  │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-11/2-11.2/2-11.2:1.0/0003:04A5:7008.0004/input/input16
                  │ │ input:input16 "NOVATEK USB MULTIMEDIA KEYBOARD"
                  │ └─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-11/2-11.2/2-11.2:1.1/0003:04A5:7008.0005/input/input17
                  │ input:input17 "NOVATEK USB MULTIMEDIA KEYBOARD"
                  │ input:input6 "Logitech Trackball"
                  │ input:input7 "UVC Camera (046d:0990)"
                  │ video4linux:video0 "UVC Camera (046d:0990)"
                  │ sound:card1 "Q9000"
                    sound:card2 "PCH"
                    │ input:input18 "HDA Intel PCH Front Mic"
                    │ input:input19 "HDA Intel PCH Rear Mic"
                    │ input:input20 "HDA Intel PCH Line"
                    │ input:input21 "HDA Intel PCH Line Out Front"
                    │ input:input22 "HDA Intel PCH Line Out Surround"
                    │ input:input23 "HDA Intel PCH Line Out CLFE"
                      input:input24 "HDA Intel PCH Front Headphone"

Revision history for this message
Martin Pitt (pitti) wrote :

Does it only fail on sg1 (which is a raw SCSI device), or /sr0 (the actual CD-ROM) too? Would you mind running the loginctl call through "strace -fvvs1024 -o /tmp/trace loginctl ..." and attach /tmp/trace here? This should give me a better idea what it's stumbling over. Thanks!

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Schlomo Schapiro (sschapiro) wrote : Re: [Bug 1407399] Re: loginctl attach fails with DVD drive
  • strace.txt Edit (111.5 KiB, text/plain; charset=US-ASCII; name="strace.txt")

​It fails both with a single argument (sr0 or sg1) or with both.

Attached is the strace​

Martin Pitt (pitti)
Changed in systemd (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Dan Streetman (ddstreet)
Changed in systemd (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments