[Bug 1916715] Re: fails on install due to systemd-service/sysv-service mismatch and lack of mkdir
Brian Murray
1916715 at bugs.launchpad.net
Tue Mar 23 17:38:31 UTC 2021
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: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-groovy
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-rtslib-fb in Ubuntu.
https://bugs.launchpad.net/bugs/1916715
Title:
fails on install due to systemd-service/sysv-service mismatch and lack
of mkdir
Status in python-rtslib-fb package in Ubuntu:
Fix Released
Status in python-rtslib-fb source package in Groovy:
Fix Committed
Bug description:
[Impact]
========
The python3-rtslib-fb package fails to install.
On install:
Setting up python3-rtslib-fb (2.1.74-0ubuntu1) ...
Job for rtslib-fb-targetctl.service failed because the control process exited with error code.
See "systemctl status rtslib-fb-targetctl.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rtslib-fb-targetctl, action "start" failed.
[0;1;31m●[0m rtslib-fb-targetctl.service - LSB: Start LIO targets
Loaded: loaded (]8;;file://autopkgtest/etc/init.d/rtslib-fb-targetctl/etc/init.d/rtslib-fb-targetctl]8;;; generated)
Active: [0;1;31mfailed[0m (Result: exit-code) since Tue 2021-02-23 18:03:16 UTC; 10ms ago
Docs: ]8;;man:systemd-sysv-generator(8)man:systemd-sysv-generator(8)]8;;
Process: 3296 ExecStart=/etc/init.d/rtslib-fb-targetctl start [0;1;31m(code=exited, status=1/FAILURE)[0m
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: errors = RTSRoot().restore_from_file(restore_file=from_file)
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 88, in __init__
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: self._set_dbroot()
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 182, in _set_dbroot
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: raise RTSLibError("Cannot set dbroot to {}. Please check if this directory exists."
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3308]: rtslib_fb.utils.RTSLibError: Cannot set dbroot to /etc/rtslib-fb-target. Please check if this directory exists.
Feb 23 18:03:16 autopkgtest rtslib-fb-targetctl[3296]: ...fail!
Feb 23 18:03:16 autopkgtest systemd[1]: [0;1;39m[0;1;31m[0;1;39mrtslib-fb-targetctl.service: Control process exited, code=exited, status=1/FAILURE[0m
Feb 23 18:03:16 autopkgtest systemd[1]: [0;1;38;5;185m[0;1;39m[0;1;38;5;185mrtslib-fb-targetctl.service: Failed with result 'exit-code'.[0m
Feb 23 18:03:16 autopkgtest systemd[1]: [0;1;31m[0;1;39m[0;1;31mFailed to start LSB: Start LIO targets.[0m
dpkg: error processing package python3-rtslib-fb (--configure):
installed python3-rtslib-fb package post-installation script subprocess returned error exit status 1
[Test Plan]
===========
To reproduce this bug, simply do the following:
$ lxc launch ubuntu-daily:groovy python-rtslib-fb-lp1916715-groovy
$ lxc shell python-rtslib-fb-lp1916715-groovy
[or shoot up a VM running Groovy]
# apt update && apt upgrade && apt install linux-modules-
extra-5.8.0-44-generic
# 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.
Furthermore, check systemctl status rtslib-fb-targetctl.service and
that should not report any problems.
[Where problems could occur]
============================
If someone has manually fixed the old service (manual mkdir, enable
it, ...) or any such thing, then the fix might cause the update to
behave a bit differently.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1916715/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list