Bug 896413

Summary: python call trace when creating another block storage object with un-released storage object in bug 896409
Product: Red Hat Enterprise Linux 6 Reporter: Gris Ge <fge>
Component: fcoe-target-utilsAssignee: Andy Grover <agrover>
Status: CLOSED NOTABUG QA Contact: Storage QE <storage-qe>
Severity: high Docs Contact:
Priority: high    
Version: 6.4   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-17 09:37:41 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:
Embargoed:
Bug Depends On: 854708, 896409    
Bug Blocks:    

Description Gris Ge 2013-01-17 09:19:57 UTC
Description of problem:
Got this call trace:
=====
/> ls /
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/configshell/node.py", line 714, in ui_command_ls
    tree = self._render_tree(target, depth=depth)
  File "/usr/lib/python2.6/site-packages/configshell/node.py", line 857, in _render_tree
    + self._render_tree(children[i], margin, depth)
  File "/usr/lib/python2.6/site-packages/configshell/node.py", line 857, in _render_tree
    + self._render_tree(children[i], margin, depth)
  File "/usr/lib/python2.6/site-packages/configshell/node.py", line 857, in _render_tree
    + self._render_tree(children[i], margin, depth)
  File "/usr/lib/python2.6/site-packages/configshell/node.py", line 769, in _render_tree
    (description, is_healthy) = root.summary()
  File "/usr/lib/python2.6/site-packages/targetcli/ui_backstore.py", line 400, in summary
    if so.readonly:
  File "/usr/lib/python2.6/site-packages/rtslib/tcm.py", line 675, in _get_readonly
    return bool(int(self._parse_info('readonly')))
  File "/usr/lib/python2.6/site-packages/rtslib/tcm.py", line 130, in _parse_info
    % key, ' '.join(info.split())).group(1).lower()
AttributeError: 'NoneType' object has no attribute 'group'
=====


Targetcli commands are:
=====
yum install fcoe-target-utils -y
service fcoe-target start
targetcli
set global auto_add_mapped_luns=false

/tcm_fc/ create 20:00:00:1b:21:3f:a1:b6
/tcm_fc/ create 20:00:00:1b:21:3f:a1:b7
/tcm_fc/20:00:00:1b:21:3f:a1:b6/acls/ create 10:00:00:05:33:26:9e:4e
/tcm_fc/20:00:00:1b:21:3f:a1:b7/acls/ create 10:00:00:05:33:26:9e:4e

/backstores/block create bfa-st52-1 /dev/mapper/mpathamg
/tcm_fc/20:00:00:1b:21:3f:a1:b6/luns/ create /backstores/block/bfa-st52-1
/tcm_fc/20:00:00:1b:21:3f:a1:b6/acls/10:00:00:05:33:26:9e:4e create 0 0
/tcm_fc/20:00:00:1b:21:3f:a1:b7/luns/ create /backstores/block/bfa-st52-1
/tcm_fc/20:00:00:1b:21:3f:a1:b7/acls/10:00:00:05:33:26:9e:4e create 0 0

clearconfig confirm=True

set global auto_add_mapped_luns=false

/tcm_fc/ create 20:00:00:1b:21:3f:a1:b6
/tcm_fc/ create 20:00:00:1b:21:3f:a1:b7
/tcm_fc/20:00:00:1b:21:3f:a1:b6/acls/ create 10:00:00:05:33:26:9e:4e
/tcm_fc/20:00:00:1b:21:3f:a1:b7/acls/ create 10:00:00:05:33:26:9e:4e

/backstores/block create bfa-st52-1 /dev/mapper/mpathamg
/tcm_fc/20:00:00:1b:21:3f:a1:b6/luns/ create /backstores/block/bfa-st52-1
/tcm_fc/20:00:00:1b:21:3f:a1:b6/acls/10:00:00:05:33:26:9e:4e create 0 0
/tcm_fc/20:00:00:1b:21:3f:a1:b7/luns/ create /backstores/block/bfa-st52-1
/tcm_fc/20:00:00:1b:21:3f:a1:b7/acls/10:00:00:05:33:26:9e:4e create 0 0
ls /
====

Version-Release number of selected component (if applicable):
fcoe-target-utils-2.0rc1.fb16-3.el6.noarch
kernel -353

How reproducible:
100%

Steps to Reproduce:
Check above
  
Actual results:
python call trace

Expected results:
no python call trace

Additional info:
This bug depend on Bug #896409

Comment 1 Gris Ge 2013-01-17 09:37:41 UTC
Closed as not a bug.

Problem only exists when using old kernel. No such problem when using kernel -353.