Public bug reported:
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
^^ this affects Groovy and Focal ^^
The reason is this:
$ dpkg -L python3-rtslib-fb
/etc/init.d/rtslib-fb-targetctl
/lib/systemd/system/target.service
This used to be (Focal and Debian)
/etc/init.d/rtslib-fb-targetctl
/lib/systemd/system/rtslib-fb-targetctl.service
That has two issues
1) since the name of service and sysv-init mismatches the sysV generator
creates an extra service from the sysV script
2) the service does no more contain the mkdir that is required (and was in
Focal/Debian)
ExecStart=mkdir -p /etc/rtslib-fb-target
We can merge back what we had, and thereby fix Hirsute.
I'm not sure on a groovy SRU - if someone has manually fixed the old service
(manual mkdir, enable it, ...) or any such then the fix will remove
target.service and things will behave differently.
But fixing in Hirsute be better in any case and also help 20.04 -> 22.04
upgrades to have no hiccup.
** Affects: python-rtslib-fb (Ubuntu)
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/1916715
Title:
fails on install due to systemd-service/sysv-service mismatch and lack
of mkdir
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/1916715/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs