Bug 871310
| Summary: | python call trace observed when create pscsi using the IDE disk | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Xiaowei Li <xiaoli> |
| Component: | python-rtslib | Assignee: | Andy Grover <agrover> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | qcai |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-09 08:40:21 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: | |||
what version python-rtslib? This should be fixed in rtslib v2.1.fb23 and later 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 |
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: