loginctl attach fails with DVD drive

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

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
    ├─/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
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
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
seat-1
        Sessions: *c3 c2
         Devices:
                  ├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
                  │ drm:card1
                  ├─/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/graphics/fb1
                  │ [MASTER] graphics:fb1 "nouveaufb"
                  ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-11
                  │ 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"
                  ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-12/2-12:1.0/0003:046D:C404.0001/input/input6
                  │ input:input6 "Logitech Trackball"
                  ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/input/input7
                  │ input:input7 "UVC Camera (046d:0990)"
                  ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/video4linux/video0
                  │ video4linux:video0 "UVC Camera (046d:0990)"
                  ├─/sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.2/sound/card1
                  │ sound:card1 "Q9000"
                  └─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2
                    sound:card2 "PCH"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input18
                    │ input:input18 "HDA Intel PCH Front Mic"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input19
                    │ input:input19 "HDA Intel PCH Rear Mic"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input20
                    │ input:input20 "HDA Intel PCH Line"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input21
                    │ input:input21 "HDA Intel PCH Line Out Front"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input22
                    │ input:input22 "HDA Intel PCH Line Out Surround"
                    ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input23
                    │ input:input23 "HDA Intel PCH Line Out CLFE"
                    └─/sys/devices/pci0000:00/0000:00:1b.0/sound/card2/input24
                      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