Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionBruno Goncalves
2016-03-09 15:35:30 UTC
Description of problem:
Trying to map a LUN manually to an specific initiator fails.
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 lun0
Incorrect LUN value.
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 0
Traceback (most recent call last):
File "/usr/bin/targetcli", line 90, in <module>
main()
File "/usr/bin/targetcli", line 73, in main
shell.run_cmdline(" ".join(sys.argv[1:]))
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 934, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 909, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_node.py", line 84, in execute_command
pparams, kparams)
File "/usr/lib/python2.6/site-packages/configshell/node.py", line 1405, in execute_command
result = method(*pparams, **kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_target.py", line 781, in ui_command_create
if tpg_lun_or_backstore.startswith("lun"):
UnboundLocalError: local variable 'tpg_lun_or_backstore' referenced before assignment
Version-Release number of selected component (if applicable):
fcoe-target-utils-2.0rc1.fb16-6
How reproducible:
100%
Steps to Reproduce:
1.Create a fileio backstore LUN
# targetcli /backstores/fileio create test test.img 1G
Using params size=1G write_back=True sparse=True
Created fileio test with size 1073741824
2.Add LUN to tcm_fc target
# targetcli /tcm_fc/ create 20:00:90:e2:ba:a3:97:ca
Created target 20:00:90:e2:ba:a3:97:ca.
3. Add LUN to target
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/luns create /backstores/fileio/test
Created LUN 0.
4.Add Initiator WWN to target without mapping LUNs
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls create 21:00:00:0e:1e:1a:60:61 add_mapped_luns=false
Created Node ACL for 21:00:00:0e:1e:1a:60:61
5. Add LUN to initiator
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 0
(Call trace)
# targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 lun0
Incorrect LUN value.
I hit the same issue on latest release rhel6.10, will you fix it on 6.10?
fcoe-target-utils-2.0rc1.fb16-6.el6.noarch
2.6.32-696.13.2.el6.x86_64
[root@storageqe-53 ~]# targetcli
targetcli shell version 2.0rc1.fb16
Copyright 2011 by RisingTide Systems LLC and others.
For help on commands, type 'help'.
/> ls
/> /tcm_fc/20:01:00:0a:f7:27:e1:b1/acls/20:00:a0:36:9f:7c:1e:bd create 0 0
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 990, in run_interactive
self._cli_loop()
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 813, in _cli_loop
self.run_cmdline(cmdline)
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 934, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 909, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_node.py", line 84, in execute_command
pparams, kparams)
File "/usr/lib/python2.6/site-packages/configshell/node.py", line 1405, in execute_command
result = method(*pparams, **kparams)
File "/usr/lib/python2.6/site-packages/targetcli/ui_target.py", line 781, in ui_command_create
if tpg_lun_or_backstore.startswith("lun"):
UnboundLocalError: local variable 'tpg_lun_or_backstore' referenced before assignment
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.
The official life cycle policy can be reviewed here:
http://redhat.com/rhel/lifecycle
This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:
https://access.redhat.com/
Description of problem: Trying to map a LUN manually to an specific initiator fails. # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 lun0 Incorrect LUN value. # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 0 Traceback (most recent call last): File "/usr/bin/targetcli", line 90, in <module> main() File "/usr/bin/targetcli", line 73, in main shell.run_cmdline(" ".join(sys.argv[1:])) File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 934, in run_cmdline self._execute_command(path, command, pparams, kparams) File "/usr/lib/python2.6/site-packages/configshell/shell.py", line 909, in _execute_command result = target.execute_command(command, pparams, kparams) File "/usr/lib/python2.6/site-packages/targetcli/ui_node.py", line 84, in execute_command pparams, kparams) File "/usr/lib/python2.6/site-packages/configshell/node.py", line 1405, in execute_command result = method(*pparams, **kparams) File "/usr/lib/python2.6/site-packages/targetcli/ui_target.py", line 781, in ui_command_create if tpg_lun_or_backstore.startswith("lun"): UnboundLocalError: local variable 'tpg_lun_or_backstore' referenced before assignment Version-Release number of selected component (if applicable): fcoe-target-utils-2.0rc1.fb16-6 How reproducible: 100% Steps to Reproduce: 1.Create a fileio backstore LUN # targetcli /backstores/fileio create test test.img 1G Using params size=1G write_back=True sparse=True Created fileio test with size 1073741824 2.Add LUN to tcm_fc target # targetcli /tcm_fc/ create 20:00:90:e2:ba:a3:97:ca Created target 20:00:90:e2:ba:a3:97:ca. 3. Add LUN to target # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/luns create /backstores/fileio/test Created LUN 0. 4.Add Initiator WWN to target without mapping LUNs # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls create 21:00:00:0e:1e:1a:60:61 add_mapped_luns=false Created Node ACL for 21:00:00:0e:1e:1a:60:61 5. Add LUN to initiator # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 0 (Call trace) # targetcli /tcm_fc/20:00:90:e2:ba:a3:97:ca/acls/21:00:00:0e:1e:1a:60:61 create 0 lun0 Incorrect LUN value.