| Summary: | targetcli: could not create tcm_fc object | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Bruno Goncalves <bgoncalv> |
| Component: | python-rtslib | Assignee: | Andy Grover <agrover> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Bruno Goncalves <bgoncalv> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.0 | CC: | bdonahue, marcus.g.koontz, qcai, xiaoli, yanwang |
| Target Milestone: | rc | Keywords: | Regression, TestBlocker |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-rtslib-2.1.fb44-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 09:59:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Bruno Goncalves
2013-12-09 13:02:52 UTC
the targetcli FCoE function works in RHEL alpha and it does not work now. so add the regression keyword and blocker. For example, block testing when use RHEL7 targetcli to test bug 882060. I have to use RHEL6.5 fcoe-target-utils for replacement. /tcm_fc> create 20:00:00:0a:f7:05:6b:e1 Created target naa.2000000af7056be1. /tcm_fc> exit Global pref auto_save_on_exit=true Traceback (most recent call last): File "/usr/bin/targetcli", line 89, in <module> main() File "/usr/bin/targetcli", line 85, in main root_node.ui_command_saveconfig() File "/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 69, in ui_command_saveconfig f.write(json.dumps(RTSRoot().dump(), sort_keys=True, indent=2)) d['targets'] = [t.dump() for t in self.targets] File "/usr/lib/python2.7/site-packages/rtslib/root.py", line 81, in _list_targets for target in fabric_module.targets: File "/usr/lib/python2.7/site-packages/rtslib/fabric.py", line 170, in _list_targets yield Target(self, self.from_fabric_wwn(wwn), 'lookup') File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 72, in __init__ self.wwn, self.wwn_type = fabric_module.to_normalized_wwn(wwn) File "/usr/lib/python2.7/site-packages/rtslib/fabric.py", line 190, in to_normalized_wwn return normalize_wwn(self.wwn_types, wwn, self.wwns) File "/usr/lib/python2.7/site-packages/rtslib/utils.py", line 338, in normalize_wwn raise RTSLibError("WWN not valid as: %s" % ", ".join(wwn_types)) rtslib.utils.RTSLibError: WWN not valid as: naa [root@storageqe-16 ~]# targetcli WWN not valid as: naa Verified on
3.10.0-64.el7.x86_64
targetcli-2.1.fb31-1.el7.noarch
python-rtslib-2.1.fb44-1.el7.noarch
# targetcli /backstores/fileio create fcoe_lun ./fcoe_lun.img 500M
Created fileio fcoe_lun with size 524288000
# targetcli /tcm_fc/ create 20:00:00:0A:F7:05:6B:E3
Created target naa.2000000af7056be3.
# targetcli ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- block .................................................................................................. [Storage Objects: 0]
| o- fileio ................................................................................................. [Storage Objects: 1]
| | o- fcoe_lun ............................................................... [./fcoe_lun.img (500.0MiB) write-back deactivated]
| o- pscsi .................................................................................................. [Storage Objects: 0]
| o- ramdisk ................................................................................................ [Storage Objects: 0]
o- iscsi ............................................................................................................ [Targets: 0]
o- loopback ......................................................................................................... [Targets: 0]
o- tcm_fc ........................................................................................................... [Targets: 1]
o- naa.2000000af7056be3 .......................................................................................... [no-gen-acls]
o- acls ............................................................................................................ [ACLs: 0]
o- luns ............................................................................................................ [LUNs: 0]
# targetcli clearconfig True
All configuration cleared
Intel ran into this bug in RHEL7 Beta. Intel tested this fix and verified it working on RHEL7 Snap 1 - python-rtslib-2.1.fb44-1.el7 and targetcli-2.1.fb31.1.el7. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |