Activity log for bug #1865037

Date Who What changed Old value New value Message
2020-02-27 14:11:54 Christian Ehrhardt  bug added bug
2020-02-27 14:16:39 Christian Ehrhardt  summary make the init script fail gracefully if unable to load modules make the service fail gracefully if unable to load modules
2020-02-27 14:27:36 Christian Ehrhardt  bug watch added https://github.com/open-iscsi/rtslib-fb/issues/157
2020-02-27 14:28:01 Christian Ehrhardt  bug added subscriber Rafael David Tinoco
2020-02-27 14:28:04 Christian Ehrhardt  python-rtslib-fb (Ubuntu): status New Triaged
2020-02-27 14:28:06 Christian Ehrhardt  python-rtslib-fb (Ubuntu): importance Undecided Medium
2020-02-27 14:28:10 Christian Ehrhardt  python-rtslib-fb (Ubuntu): assignee Rafael David Tinoco (rafaeldtinoco)
2020-02-27 14:28:15 Christian Ehrhardt  bug added subscriber Ubuntu Server
2020-02-27 14:29:35 Christian Ehrhardt  bug task added rtslib-fb
2020-10-24 15:45:10 Rafael David Tinoco python-rtslib-fb (Ubuntu): assignee Rafael David Tinoco (rafaeldtinoco)
2020-10-24 15:45:18 Rafael David Tinoco bug added subscriber Ubuntu Storage Interest
2021-03-05 13:51:38 James Page python-rtslib-fb (Ubuntu): importance Medium High
2021-03-06 00:05:41 Launchpad Janitor python-rtslib-fb (Ubuntu): status Triaged Fix Released
2021-03-12 11:12:02 Launchpad Janitor merge proposal linked https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576
2021-03-15 08:54:51 Utkarsh Gupta merge proposal unlinked https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576
2021-03-15 10:05:37 Christian Ehrhardt  nominated for series Ubuntu Groovy
2021-03-15 10:05:37 Christian Ehrhardt  bug task added python-rtslib-fb (Ubuntu Groovy)
2021-03-15 10:06:52 Christian Ehrhardt  bug task deleted python-rtslib-fb (Ubuntu Groovy)
2021-03-15 10:15:07 Utkarsh Gupta merge proposal linked https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576
2021-03-15 10:22:49 Utkarsh Gupta description The LIO interfaces is inherently tied to the kernel. That makes the service fail on e.g. a container install: See "systemctl status rtslib-fb-targetctl.service" and "journalctl -xe" for details. root@f:~# systemctl status rtslib-fb-targetctl.service ● rtslib-fb-targetctl.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/rtslib-fb-targetctl.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2020-02-27 14:10:35 UTC; 3s ago Process: 23831 ExecStart=/usr/bin/mkdir -p /etc/rtslib-fb-target (code=exited, status=0/SUCCESS) Process: 23832 ExecStart=/usr/bin/targetctl restore (code=exited, status=1/FAILURE) Main PID: 23832 (code=exited, status=1/FAILURE) Feb 27 14:10:35 f target[23832]: File "/usr/bin/targetctl", line 47, in restore Feb 27 14:10:35 f target[23832]: errors = RTSRoot().restore_from_file(restore_file=from_file) Feb 27 14:10:35 f target[23832]: File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 85, in __init__ Feb 27 14:10:35 f target[23832]: modprobe('target_core_mod') Feb 27 14:10:35 f target[23832]: File "/usr/lib/python3/dist-packages/rtslib_fb/utils.py", line 428, in modprobe Feb 27 14:10:35 f target[23832]: raise RTSLibError(stderrdata) Feb 27 14:10:35 f target[23832]: rtslib_fb.utils.RTSLibError: b"modprobe: ERROR: ../libkmod/libkmod.c:611 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.0-40-generic/modu> Feb 27 14:10:35 f systemd[1]: rtslib-fb-targetctl.service: Main process exited, code=exited, status=1/FAILURE Feb 27 14:10:35 f systemd[1]: rtslib-fb-targetctl.service: Failed with result 'exit-code'. Feb 27 14:10:35 f systemd[1]: Failed to start Restore LIO kernel target configuration. It is ok that this doesn't work in a container, but it also breaks the package installation status which should be avoided. Until a more fine grained detection is developed that could be as easy as adding: ConditionVirtualization=!container That would let the package install, but not start the service (knowing it would fail). [Impact] ======== The LIO interfaces is inherently tied to the kernel. That makes the service fail on e.g. a container install: See "systemctl status rtslib-fb-targetctl.service" and "journalctl -xe" for details. root@f:~# systemctl status rtslib-fb-targetctl.service ● rtslib-fb-targetctl.service - Restore LIO kernel target configuration      Loaded: loaded (/lib/systemd/system/rtslib-fb-targetctl.service; disabled; vendor preset: enabled)      Active: failed (Result: exit-code) since Thu 2020-02-27 14:10:35 UTC; 3s ago     Process: 23831 ExecStart=/usr/bin/mkdir -p /etc/rtslib-fb-target (code=exited, status=0/SUCCESS)     Process: 23832 ExecStart=/usr/bin/targetctl restore (code=exited, status=1/FAILURE)    Main PID: 23832 (code=exited, status=1/FAILURE) Feb 27 14:10:35 f target[23832]: File "/usr/bin/targetctl", line 47, in restore Feb 27 14:10:35 f target[23832]: errors = RTSRoot().restore_from_file(restore_file=from_file) Feb 27 14:10:35 f target[23832]: File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 85, in __init__ Feb 27 14:10:35 f target[23832]: modprobe('target_core_mod') Feb 27 14:10:35 f target[23832]: File "/usr/lib/python3/dist-packages/rtslib_fb/utils.py", line 428, in modprobe Feb 27 14:10:35 f target[23832]: raise RTSLibError(stderrdata) Feb 27 14:10:35 f target[23832]: rtslib_fb.utils.RTSLibError: b"modprobe: ERROR: ../libkmod/libkmod.c:611 kmod_search_moddep() could not open moddep file '/lib/modules/5.3.0-40-generic/modu> Feb 27 14:10:35 f systemd[1]: rtslib-fb-targetctl.service: Main process exited, code=exited, status=1/FAILURE Feb 27 14:10:35 f systemd[1]: rtslib-fb-targetctl.service: Failed with result 'exit-code'. Feb 27 14:10:35 f systemd[1]: Failed to start Restore LIO kernel target configuration. It is ok that this doesn't work in a container, but it also breaks the package installation status which should be avoided. [Test Plan] =========== To reproduce this bug, simply do the following: $ lxc launch ubuntu-daily:groovy python-rtslib-fb-lp1865037-groovy $ lxc shell python-rtslib-fb-lp1865037-groovy # apt update && apt upgrade # reboot # apt install python3-rtslib-fb ...and this should fail to install. To make sure that this bug is indeed fixed, install the patched version of this package and that should install fine. [Where problems could occur] ============================ This is a workaround since there doesn't seem to be a in-container use case. But in case there is one, then that'd fail to work, so we might better find a better solution for this in the long term. The disccusion has been initiated upstream (cf: https://github.com/open-iscsi/rtslib-fb/issues/157) and probably we'll wait for upstream to state some in-container use case(s).
2021-03-23 17:37:52 Brian Murray python-rtslib-fb (Ubuntu Groovy): status New Fix Committed
2021-03-23 17:37:54 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2021-03-23 17:37:56 Brian Murray bug added subscriber SRU Verification
2021-03-23 17:38:03 Brian Murray tags verification-needed verification-needed-groovy
2021-04-28 05:38:34 Christian Ehrhardt  tags verification-needed verification-needed-groovy verification-done verification-done-groovy
2021-05-06 08:38:25 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2021-05-06 08:38:31 Launchpad Janitor python-rtslib-fb (Ubuntu Groovy): status Fix Committed Fix Released
2021-06-24 18:50:16 Billy Olsen nominated for series Ubuntu Focal
2021-06-24 18:50:16 Billy Olsen bug task added python-rtslib-fb (Ubuntu Focal)
2021-06-24 18:50:30 Launchpad Janitor python-rtslib-fb (Ubuntu Focal): status New Confirmed
2021-06-24 18:56:34 Billy Olsen bug task added cloud-archive
2021-06-24 18:56:48 Billy Olsen nominated for series cloud-archive/ussuri
2021-06-24 18:56:48 Billy Olsen bug task added cloud-archive/ussuri
2021-06-24 18:57:00 Billy Olsen cloud-archive: status New Triaged
2021-06-24 18:57:05 Billy Olsen cloud-archive: importance Undecided High
2021-06-24 19:01:31 Utkarsh Gupta bug added subscriber Utkarsh Gupta
2021-06-24 19:02:31 Utkarsh Gupta python-rtslib-fb (Ubuntu Focal): assignee Utkarsh Gupta (utkarsh)
2021-06-24 19:11:51 Billy Olsen attachment added Debdiff for focal https://bugs.launchpad.net/cloud-archive/+bug/1865037/+attachment/5506777/+files/lp1865037-focal.debdiff
2021-06-24 19:12:03 Billy Olsen cloud-archive/ussuri: status New Triaged
2021-06-25 13:05:15 Launchpad Janitor merge proposal linked https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/404765
2021-06-25 21:37:38 Billy Olsen attachment removed Debdiff for focal https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1865037/+attachment/5506777/+files/lp1865037-focal.debdiff
2021-06-25 21:38:10 Billy Olsen attachment added focal patch https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1865037/+attachment/5507137/+files/lp1865037-focal.debdiff
2021-07-06 21:54:19 Brian Murray python-rtslib-fb (Ubuntu Focal): status Confirmed Fix Committed
2021-07-06 21:54:22 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2021-07-06 21:54:28 Brian Murray tags verification-done verification-done-groovy verification-done-groovy verification-needed verification-needed-focal
2021-07-07 00:01:15 Billy Olsen tags verification-done-groovy verification-needed verification-needed-focal verification-done verification-done-focal verification-done-groovy
2021-07-07 06:36:24 Christian Ehrhardt  python-rtslib-fb (Ubuntu Focal): assignee Utkarsh Gupta (utkarsh)
2021-07-14 12:15:21 Corey Bryant cloud-archive/ussuri: status Triaged Fix Committed
2021-07-14 12:15:23 Corey Bryant tags verification-done verification-done-focal verification-done-groovy verification-done verification-done-focal verification-done-groovy verification-ussuri-needed
2021-07-15 17:30:37 Launchpad Janitor python-rtslib-fb (Ubuntu Focal): status Fix Committed Fix Released
2022-07-07 18:44:28 Corey Bryant cloud-archive/ussuri: status Fix Committed Fix Released
2023-05-23 10:31:29 Bug Watch Updater rtslib-fb: status Unknown New