[Bug 2085154] Re: rtslib-fb-targetctl.service crashes on startup

Sebastian Unger 2085154 at bugs.launchpad.net
Thu Jan 30 23:51:54 UTC 2025


Any news? Judging by the file timestamps and contents, rtslib-fb-
targetctl.service is the "correct" and up-to-date one and target.service
is an old left-over that should not be in the package any more?!

Although personally, I think the name target.service is much more
memorable.

-- 
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/2085154

Title:
  rtslib-fb-targetctl.service crashes on startup

Status in python-rtslib-fb package in Ubuntu:
  New

Bug description:
  ```
  seb at eragon:~/TTDE/ToolChain[3]$ journalctl -b -u rtslib-fb-targetctl.service
  Oct 22 07:11:09 eragon systemd[1]: Starting rtslib-fb-targetctl.service - Restore LIO kernel target configuration...
  Oct 22 07:11:10 eragon target[1578]: Traceback (most recent call last):
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/bin/targetctl", line 82, in <module>
  Oct 22 07:11:10 eragon target[1578]:     main()
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/bin/targetctl", line 79, in main
  Oct 22 07:11:10 eragon target[1578]:     funcs[sys.argv[1]](savefile)
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/bin/targetctl", line 47, in restore
  Oct 22 07:11:10 eragon target[1578]:     errors = RTSRoot().restore_from_file(restore_file=from_file)
  Oct 22 07:11:10 eragon target[1578]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 508, in restore_from_file
  Oct 22 07:11:10 eragon target[1578]:     return self.restore(config, target, storage_object,
  Oct 22 07:11:10 eragon target[1578]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/lib/python3/dist-packages/rtslib_fb/root.py", line 442, in restore
  Oct 22 07:11:10 eragon target[1578]:     Target.setup(fm_obj, t, err_func)
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/lib/python3/dist-packages/rtslib_fb/target.py", line 133, in setup
  Oct 22 07:11:10 eragon target[1578]:     TPG.setup(t_obj, tpg, err_func)
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/lib/python3/dist-packages/rtslib_fb/target.py", line 427, in setup
  Oct 22 07:11:10 eragon target[1578]:     LUN.setup(tpg_obj, lun, err_func)
  Oct 22 07:11:10 eragon target[1578]:   File "/usr/lib/python3/dist-packages/rtslib_fb/target.py", line 686, in setup
  Oct 22 07:11:10 eragon target[1578]:     lun_obj.alua_tg_pt_gp_name = lun['alua_tg_pt_gp_name']
  Oct 22 07:11:10 eragon target[1578]:     ^^^^^^^
  Oct 22 07:11:10 eragon target[1578]: UnboundLocalError: cannot access local variable 'lun_obj' where it is not associated with a value
  Oct 22 07:11:10 eragon systemd[1]: rtslib-fb-targetctl.service: Main process exited, code=exited, status=1/FAILURE
  Oct 22 07:11:10 eragon systemd[1]: rtslib-fb-targetctl.service: Failed with result 'exit-code'.
  Oct 22 07:11:10 eragon systemd[1]: Failed to start rtslib-fb-targetctl.service - Restore LIO kernel target configuration.
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: python3-rtslib-fb 2.1.74-0ubuntu5
  ProcVersionSignature: Ubuntu 6.8.0-47.47-generic 6.8.12
  Uname: Linux 6.8.0-47-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Oct 22 07:30:13 2024
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_NZ.UTF-8
   PATH=(custom, user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: python-rtslib-fb
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-rtslib-fb/+bug/2085154/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list