View Issue Details

IDProjectCategoryView StatusLast Update
0014894CentOS-7kernelpublic2018-11-15 12:03
Reporterxxmail 
PrioritynormalSeverityblockReproducibilityalways
Status newResolutionopen 
Platformx86_64OScentos 7OS Version7.2.1511
Product Version7.2.1511 
Target VersionFixed in Version 
Summary0014894: target: use per-attribute show and store methods
DescriptionHi ! I'm unable to create fiber channel target. I have a following error in targetcli :
<code>
/qla2xxx> create 0x2100001b3215632f
Traceback (most recent call last):
  File "/usr/bin/targetcli", line 122, in <module>
    main()
  File "/usr/bin/targetcli", line 112, in main
    shell.run_interactive()
  File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 905, in run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 734, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 848, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 823, in _execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
    return method(*pparams, **kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_target.py", line 195, in ui_command_create
    ui_target = UITarget(target, self)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_target.py", line 555, in __init__
    self.rtsnode.enable = True
  File "/usr/lib/python2.7/site-packages/rtslib_fb/target.py", line 241, in _set_enable
    if os.path.isfile(path) and (boolean != self._get_enable()):
  File "/usr/lib/python2.7/site-packages/rtslib_fb/target.py", line 230, in _get_enable
    return bool(int(fread(path)))
  File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 100, in fread
    with open(path, 'r') as file_fd:
IOError: [Errno 13] Permission denied: '/sys/kernel/config/target/qla2xxx/21:00:00:1b:32:15:63:2f/tpgt_1/enable'
</code>
cat: /sys/kernel/config/target/qla2xxx/21:00:00:1b:32:15:63:2f/tpgt_1/enable: Permission denied

I've found that 4.4 patched with https://www.spinics.net/lists/target-devel/msg11172.html .
Please apply patch to 3.10.*


Steps To Reproducein targetcli create target :
/qla2xxx> create 0x2100001b3215632f
Additional Informationtarget kernel module exist only in centosplus kernel
Tagskernel, target
abrt_hash
URL

Activities

xxmail

xxmail

2018-05-31 13:01

reporter   ~0031976

kernel-plus-3.10.0-862.3.2.el7.centos.plus.x86_64

Issue History

Date Modified Username Field Change
2018-05-31 12:56 xxmail New Issue
2018-05-31 12:56 xxmail Tag Attached: kernel
2018-05-31 12:56 xxmail Tag Attached: target
2018-05-31 13:01 xxmail Note Added: 0031976