[Bug 1865037] Re: make the service fail gracefully if unable to load modules
This bug was fixed in the package python-rtslib-fb - 2.1.71-0ubuntu1.1 --- python-rtslib-fb (2.1.71-0ubuntu1.1) focal; urgency=medium * d/python3-rtslib-fb.rtslib-fb-targetctl.service: Add check to skip starting this service when running in a container. (LP: #1865037) -- Utkarsh Gupta Fri, 25 Jun 2021 18:31:16 +0530 ** Changed in: python-rtslib-fb (Ubuntu Focal) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Changed in: python-rtslib-fb (Ubuntu Focal) Assignee: Utkarsh Gupta (utkarsh) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Verified this package for focal. First, create focal container Second, apt-get install python3-rtslib-fb Fails with: dpkg: error processing package python3-rtslib-fb (--configure): installed python3-rtslib-fb package post-installation script subprocess returned error exit status 1 dmesg: read kernel buffer failed: Operation not permitted Errors were encountered while processing: python3-rtslib-fb E: Sub-process /usr/bin/dpkg returned an error code (1) Next, install proposed pocket, apt-get update. sudo apt-get install python3-rtslib-fb completes successfully: ... Unpacking python3-rtslib-fb (2.1.71-0ubuntu1.1) ... Setting up python3-rtslib-fb (2.1.71-0ubuntu1.1) ... Processing triggers for systemd (245.4-4ubuntu3.6) ... ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Hello Christian, or anyone else affected, Accepted python-rtslib-fb into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python- rtslib-fb/2.1.71-0ubuntu1.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-focal. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: python-rtslib-fb (Ubuntu Focal) Status: Confirmed => Fix Committed ** Tags removed: verification-done ** Tags added: verification-needed verification-needed-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Hi Utkarsh - it is indeed more clear. Thanks for the links. I'm deleting the previous patch and providing a new one with updated versioning. ** Patch removed: "Debdiff for focal" https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1865037/+attachment/5506777/+files/lp1865037-focal.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Patch added: "focal patch" https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1865037/+attachment/5507137/+files/lp1865037-focal.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Hi Billy, >From point 4.1 of https://wiki.ubuntu.com/StableReleaseUpdates#Procedure: > The version number does not conflict with any later and future > version in other Ubuntu releases (the security policy document > has a well-working scheme which can be used for SRUs.) And the security policy document reference leads here: https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update_the_packaging Let me know if the versioning is still not clear. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
ah thanks for the tip there Christian (that the version number is wrong). Is this because of where the change lies or ? Wanting to make sure I understand for future patches. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Merge proposal linked: https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/404765 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Just a warning, the debdiff is wrong 2.1.71-0ubuntu2 needs to be 2.1.71-0ubuntu1.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Thanks Utkarsh! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Patch added: "Debdiff for focal" https://bugs.launchpad.net/cloud-archive/+bug/1865037/+attachment/5506777/+files/lp1865037-focal.debdiff ** Changed in: cloud-archive/ussuri Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Hi Billy, Thanks! I'll prep the update in the coming days. ** Changed in: python-rtslib-fb (Ubuntu Focal) Assignee: (unassigned) => Utkarsh Gupta (utkarsh) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
This bug is also a problem on focal. When trying to install in a container, the service fails to start with: invoke-rc.d: initscript rtslib-fb-targetctl, action "start" failed. ● 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 2021-06-24 18:08:27 UTC; 13ms ago Process: 1232 ExecStart=/usr/bin/mkdir -p /etc/rtslib-fb-target (code=exited, status=0/SUCCESS) Process: 1233 ExecStart=/usr/bin/targetctl restore (code=exited, status=1/FAILURE) Main PID: 1233 (code=exited, status=1/FAILURE) Jun 24 18:08:27 closing-anemone target[1233]: File "/usr/bin/targetctl", line 47, in restore Jun 24 18:08:27 closing-anemone target[1233]: errors = RTSRoot().restore_from_file(restore_file=from_file) Jun 24 18:08:27 closing-anemone target[1233]: File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 85, in __init__ Jun 24 18:08:27 closing-anemone target[1233]: modprobe('target_core_mod') Jun 24 18:08:27 closing-anemone target[1233]: File "/usr/lib/python3/dist-packages/rtslib_fb/utils.py", line 428, in modprobe Jun 24 18:08:27 closing-anemone target[1233]: raise RTSLibError(stderrdata) Jun 24 18:08:27 closing-anemone target[1233]: rtslib_fb.utils.RTSLibError: b'modprobe: FATAL: Module target_core_mod not found in directory /lib/modules/5.8.0-55-generic\n' Jun 24 18:08:27 closing-anemone systemd[1]: rtslib-fb-targetctl.service: Main process exited, code=exited, status=1/FAILURE Jun 24 18:08:27 closing-anemone systemd[1]: rtslib-fb-targetctl.service: Failed with result 'exit-code'. Jun 24 18:08:27 closing-anemone systemd[1]: Failed to start Restore LIO kernel target configuration. dpkg: error processing package python3-rtslib-fb (--configure): installed python3-rtslib-fb package post-installation script subprocess returned error exit status 1 Processing triggers for systemd (2dmesg: read kernel buffer failed: Operation not permitted I can confirm that the ConditionVirtualization=!container directive added to the service file addresses the issue. ** Also affects: cloud-archive Importance: Undecided Status: New ** Also affects: cloud-archive/ussuri Importance: Undecided Status: New ** Changed in: cloud-archive Status: New => Triaged ** Changed in: cloud-archive Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-rtslib-fb (Ubuntu Focal) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Also affects: python-rtslib-fb (Ubuntu Focal) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
This bug was fixed in the package python-rtslib-fb - 2.1.73-1ubuntu4.1 --- python-rtslib-fb (2.1.73-1ubuntu4.1) groovy; urgency=medium * Fix service fail on install due to name mismatch and lost mkdir (LP: #1916715) - d/python3-rtslib-fb.rtslib-fb-targetctl.service: add back debianized systemd service file. - d/python3-rtslib-fb.rtslib-fb-targetctl.service: Add check to skip starting this service when running in a container (LP: #1865037). - d/rules: install rtslib-fb-targetctl.service as it was in Focal. -- Utkarsh Gupta Fri, 12 Mar 2021 15:52:34 +0530 ** Changed in: python-rtslib-fb (Ubuntu Groovy) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
...also always remember to note the version number used in testing! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Before - Tried to start and fail in a container root@python-rtslib-fb-lp1865037-groovy:~# systemctl status target.service ● target.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/target.service; disabled; vendor preset: enabled) Active: inactive (dead) root@python-rtslib-fb-lp1865037-groovy:~# systemctl status rtslib-fb-targetctl ● rtslib-fb-targetctl.service - LSB: Start LIO targets Loaded: loaded (/etc/init.d/rtslib-fb-targetctl; generated) Active: active (exited) since Wed 2021-04-28 05:28:43 UTC; 45s ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 38268) Memory: 0B CGroup: /system.slice/rtslib-fb-targetctl.service Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy systemd[1]: Starting LSB: Start LIO targets... Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy rtslib-fb-targetctl[710]: modprobe: FATAL: Module configfs not found in directory /lib/modules/5.4.0-72-generic Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy rtslib-fb-targetctl[704]: Could not load configfs module: exiting! Apr 28 05:28:43 python-rtslib-fb-lp1865037-groovy systemd[1]: Started LSB: Start LIO targets. After: - proper service file (in case one wants to modify) - properly dtecting root@python-rtslib-fb-lp1865037-groovy:~# systemctl status target.service ● target.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/target.service; disabled; vendor preset: enabled) Active: inactive (dead) root@python-rtslib-fb-lp1865037-groovy:~# systemctl status rtslib-fb-targetctl ● rtslib-fb-targetctl.service - Restore LIO kernel target configuration Loaded: loaded (/lib/systemd/system/rtslib-fb-targetctl.service; enabled; vendor preset: enabled) Active: inactive (dead) Apr 28 05:33:29 python-rtslib-fb-lp1865037-groovy systemd[1]: Condition check resulted in Restore LIO kernel target configuration being skipped. => verified ** Tags removed: verification-needed verification-needed-groovy ** Tags added: verification-done verification-done-groovy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Hello Christian, or anyone else affected, Accepted python-rtslib-fb into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python- rtslib-fb/2.1.73-1ubuntu4.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-groovy. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: python-rtslib-fb (Ubuntu Groovy) Status: New => Fix Committed ** Tags added: verification-needed verification-needed-groovy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Description changed: + [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) + 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. - 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 + [Test Plan] + === - That would let the package install, but not start the service (knowing - it would fail). + 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). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Merge proposal linked: https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Also affects: python-rtslib-fb (Ubuntu Groovy) Importance: Undecided Status: New ** No longer affects: python-rtslib-fb (Ubuntu Groovy) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Merge proposal unlinked: https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Merge proposal linked: https://code.launchpad.net/~utkarsh/ubuntu/+source/python-rtslib-fb/+git/python-rtslib-fb/+merge/399576 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
This bug was fixed in the package python-rtslib-fb - 2.1.74-0ubuntu3 --- python-rtslib-fb (2.1.74-0ubuntu3) hirsute; urgency=medium * d/python3-rtslib-fb.rtslib-fb-targetctl.service: Add check to skip starting this service when running in a container (LP: #1865037). -- Chris MacNaughton Fri, 05 Mar 2021 16:26:14 + ** Changed in: python-rtslib-fb (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Bumping to high as the switch in cinder to use this iSCSI stack is now failing autopkgtests - can we get this into the hirsute package please? ** Changed in: python-rtslib-fb (Ubuntu) Importance: Medium => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
** Changed in: python-rtslib-fb (Ubuntu) Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
CURRENT STATUS Targets: - I: ceph-iscsi - II: targetcli-fb Summary for the current state: I: ceph-iscsi [-] MIR ack (if everything else is) I/II: python-configshell-fb [.] MIR ack [.] Security ack - needs DEP8 inclusion Suggesting: - https://salsa.debian.org/linux-blocks-team/python-configshell-fb/-/merge_requests/3/ II: targetcli-fb [.] MIR ack - needs DEP8 and services/sockets fix [.] Security nack->ack - 2 upstream fixes done Suggesting: - https://salsa.debian.org/linux-blocks-team/targetcli-fb/-/merge_requests/8 I/II: python-rtslib-fb [.] MIR ack - needs packaging/lintian fixes [.] Security ack - upstream fix done - Upstream version v2.1.73 incudes the security fix. Suggesting: https://salsa.debian.org/openstack-team/python/python-rtslib-fb/-/merge_requests/2 https://salsa.debian.org/openstack-team/python/python-rtslib-fb/-/merge_requests/3 - Might not need fix for LP: #1865037 (put a comment, waiting Debian) - Highlighted @jamespage in both MR in salsa (hopefully he can help) I: tcmu [.] MIR ack [+] Security ack - but needs dbus fix I: urwid [.] MIR ack [.] Security: ack Only thing missing: tcmu fix and wait changes to be accepted so we can put all those packages on sync (and then do the MIR if everybody is on the same page). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
I have suggest medium sized changes to the package with its latest upstream version update: Suggesting: https://salsa.debian.org/openstack-team/python/python-rtslib-fb/-/merge_requests/2 https://salsa.debian.org/openstack-team/python/python-rtslib-fb/-/merge_requests/3 And service is disabled by default... together with the suggestion for targetcli: Suggesting: - https://salsa.debian.org/linux-blocks-team/targetcli-fb/-/merge_requests/8 Let's see what upstream (Debian) says about those) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1865037] Re: make the service fail gracefully if unable to load modules
Filed upstream as I'd want their input on how to best solve this. => https://github.com/open-iscsi/rtslib-fb/issues/157 FYI: the debian init script is a copy of the one from upstream (which is always dangerous as they can get out of sync, I much prefer copying them in d/rules to stay with upstream - we might include that when suggesting to Debian) Subscribing and assigning Rafael who is driving this for HA. ** Bug watch added: github.com/open-iscsi/rtslib-fb/issues #157 https://github.com/open-iscsi/rtslib-fb/issues/157 ** Changed in: python-rtslib-fb (Ubuntu) Status: New => Triaged ** Changed in: python-rtslib-fb (Ubuntu) Importance: Undecided => Medium ** Changed in: python-rtslib-fb (Ubuntu) Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco) ** Also affects: rtslib-fb via https://github.com/open-iscsi/rtslib-fb/issues/157 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1865037 Title: make the service fail gracefully if unable to load modules To manage notifications about this bug go to: https://bugs.launchpad.net/rtslib-fb/+bug/1865037/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs