Laptop does not suspend when using open-iscsi

Bug #1851232 reported by Sander Sander
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

When logged into an iSCSI node (iscsiadm -m -node -l) my laptop won't suspend to ram anymore.

"dmesg -T" after such a failed suspend gives

[Mo Nov 4 13:22:54 2019] Suspending console(s) (use no_console_suspend to debug)
[Mo Nov 4 13:22:54 2019] sd 3:0:0:1: [sdb] Synchronizing SCSI cache
[Mo Nov 4 13:22:54 2019] sd 3:0:0:1: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_TRANSPORT_FAILFAST driverbyte=DRIVER_OK
[Mo Nov 4 13:22:54 2019] dpm_run_callback(): scsi_bus_suspend+0x0/0x20 returns -5
[Mo Nov 4 13:22:54 2019] PM: Device 3:0:0:1 failed to suspend async: error -5
[Mo Nov 4 13:22:54 2019] PM: Some devices failed to suspend, or early wake event detected

Here sdb is a device I connected to using open-iscsi. The partition on it is also mounted.

When I open the lid again, the login screen will usually show up, though I had cases where the system would completely hang, the screen would stay black and I had to reboot the whole thing.

"lsb_release -rd" gives

Description: Ubuntu 18.04.3 LTS
Release: 18.04

"apt-cache policy open-iscsi" gives

open-iscsi:
  Installed: 2.0.874-5ubuntu2.7
  Candidate: 2.0.874-5ubuntu2.7

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: open-iscsi 2.0.874-5ubuntu2.7
ProcVersionSignature: Ubuntu 4.15.0-66.75-generic 4.15.18
Uname: Linux 4.15.0-66-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 4 13:05:46 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2018-01-18 (655 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
SourcePackage: open-iscsi
UpgradeStatus: Upgraded to bionic on 2018-12-07 (331 days ago)
modified.conffile..etc.iscsi.iscsid.conf: [inaccessible: [Errno 13] Permission denied: '/etc/iscsi/iscsid.conf']

Revision history for this message
Sander Sander (sanderjunk) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in open-iscsi (Ubuntu):
status: New → Confirmed
Revision history for this message
Petr Melnikov (melnikovpetr) wrote :
Download full text (5.9 KiB)

i have the same issue...
===========================================================================================
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:66
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:73
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:74
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:81
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:71
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:65
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) event1 - Power Button: device removed
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (**) Option "fd" "31"
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) event17 - Laptop_Integrated_Webcam_HD: In: device removed
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (**) Option "fd" "49"
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (**) Option "fd" "48"
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) event4 - AT Translated Set 2 keyboard: device removed
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (**) Option "fd" "44"
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) event7 - AlpsPS/2 ALPS GlidePoint: device removed
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (**) Option "fd" "49"
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) event5 - Microsoft Microsoft Wireless Optical Mouse® 1.00 Consumer Control: device removed
mar 05 21:18:09 dell-ubuntu20 kernel: rfkill: input handler enabled
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:70
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:67
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:72
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:66
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got resume for 13:73
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:74
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:81
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:71
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:65
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:68
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 13:69
mar 05 21:18:09 dell-ubuntu20 /usr/lib/gdm3/gdm-x-session[2494]: (II) systemd-logind: got pause for 226:0
mar 05 21:18:09 dell...

Read more...

Revision history for this message
Petr Melnikov (melnikovpetr) wrote :

open-iscsi 2.0.874-7.1ubuntu6.1 amd64 [installed]

-Version-
Kernel : Linux 5.8.0-44-generic (x86_64)
Version : #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021
C Library : GNU C Library / (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
Distribution : Ubuntu 20.04.2 LTS

========================

in my case -- my iscsi target goes sleep by inactivity (i mean a physical hard-drive).
so it probably doesn't have enough time to wake up - between suspending started and getting some response from the target

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thank you for taking the time to file a bug report.

I just tried to connect to an iscsi target from my Ubuntu Focal workstation and I was not able to suspend and then wake up my system, as both of you described. Your analyses seems right, the iscsi target might be delaying the whole process.

I am marking this bug as Triaged and I am going to subscribe ubuntu-server for further investigation.

Changed in open-iscsi (Ubuntu):
status: Confirmed → Triaged
description: updated
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

[Commenting here so that the bug doesn't get expired; this still needs to be looked at!]

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

A good thing to try is to use Hirsute or Impish, which has a different upstream version than Focal, and see if the behave is the same. In case the bug is fixed in a newer version we could bisect and try to find the needed patch.

Revision history for this message
bra (bra) wrote :

Still persists with Impish.

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.