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.
Bug 871310 - python call trace observed when create pscsi using the IDE disk
Summary: python call trace observed when create pscsi using the IDE disk
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-rtslib
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 08:17 UTC by Xiaowei Li
Modified: 2021-09-03 13:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-09 08:40:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xiaowei Li 2012-10-30 08:17:55 UTC
Description of problem:


Version-Release number of selected component (if applicable):
targetcli-2.0rc1.fb16-1.el7.noarch

How reproducible:


Steps to Reproduce:
1. sda is the IDE disk
2. /backstores/pscsi> create dev=/dev/sda name=sda
  
Actual results:
/backstores/pscsi> create dev=/dev/sda name=sda
Note: block backstore recommended for SCSI block devices
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 990, in run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 813, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 934, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 909, in _execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 84, in execute_command
    pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1405, in execute_command
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 186, in ui_command_create
    so = PSCSIStorageObject(name, dev)
  File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 264, in __init__
    self._configure(dev)
  File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 273, in _configure
    parent_hostid = self.backstore.index
AttributeError: 'PSCSIStorageObject' object has no attribute 'backstore'



Expected results:
targetcli should not print the call trace to the stdout/stderr


Additional info:

Comment 2 Andy Grover 2013-01-08 00:05:40 UTC
what version python-rtslib? This should be fixed in rtslib v2.1.fb23 and later

Comment 3 Xiaowei Li 2013-01-09 08:40:21 UTC
Didn't see it in python-rtslib-2.1.fb28-1.el7.noarch

# rpm -q targetcli
targetcli-2.0rc1.fb19-1.el7.noarch
# rpm -q python-rtslib
python-rtslib-2.1.fb28-1.el7.noarch

/backstores/pscsi> create dev=/dev/sda name=sda
Note: block backstore recommended for SCSI block devices
Created pscsi storage object sda using /dev/sda


Note You need to log in before you can comment on or make changes to this bug.