agrover/targetcli-fb — Issue #5: targetcli won't restore config properly during boot
Author: dkelson
Created: 2012-01-10 23:14:07+00:00
State: open

it's restoring the backstores and luns but no acls or portals.

I added systemd.log_level=debug systemd.log_target=kmsg to /etc/default/grub:GRUB_CMDLINE_LINUX

[root@station10 ~]# dmesg | grep targetcli
[ 11.814301] targetcli[863]: Loaded tcm_loop kernel module.
[ 11.820515] targetcli[863]: Created '/sys/kernel/config/target/loopback'.
[ 11.820520] targetcli[863]: Done loading loopback fabric module.
[ 11.829018] targetcli[863]: Loaded tcm_fc kernel module.
[ 11.829127] targetcli[863]: Created '/sys/kernel/config/target/fc'.
[ 11.829263] targetcli[863]: Done loading tcm_fc fabric module.
[ 11.847275] targetcli[863]: Loaded iscsi_target_mod kernel module.
[ 11.848030] targetcli[863]: Created '/sys/kernel/config/target/iscsi'.
[ 11.848077] targetcli[863]: Done loading iscsi fabric module.
[ 11.939993] abrt[863]: detected unhandled Python exception in '/usr/bin/targetcli'
[ 11.954804] targetcli[863]: Traceback (most recent call last):
[ 11.954807] targetcli[863]: File "/usr/bin/targetcli", line 84, in
[ 11.954810] targetcli[863]: main()
[ 11.954812] targetcli[863]: File "/usr/bin/targetcli", line 71, in main
[ 11.954815] targetcli[863]: shell.run_cmdline(" ".join(sys.argv[1:]))
[ 11.954817] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 934, in run_cmdline
[ 11.954820] targetcli[863]: self._execute_command(path, command, pparams, kparams)
[ 11.954824] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 909, in _execute_command
[ 11.954826] targetcli[863]: result = target.execute_command(command, pparams, kparams)
[ 11.954829] targetcli[863]: File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 83, in execute_command
[ 11.954832] targetcli[863]: self.shell.log.error(msg)
[ 11.954858] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/log.py", line 159, in error
[ 11.954862] targetcli[863]: self._log('error', msg)
[ 11.954865] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/log.py", line 112, in _log
[ 11.954867] targetcli[863]: self.con.display(msg)
[ 11.954870] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/console.py", line 152, in display
[ 11.954888] targetcli[863]: self.raw_write(text)
[ 11.954891] targetcli[863]: File "/usr/lib/python2.7/site-packages/configshell/console.py", line 140, in raw_write
[ 11.954911] targetcli[863]: self._stdout.write(text)
[ 11.954913] targetcli[863]: TypeError: expected a character buffer object
[ 12.020244] systemd[1]: targetcli.service: main process exited, code=exited, status=1
[ 12.032296] systemd[1]: Unit targetcli.service entered failed state.
[root@station10 ~]#