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 1172715 - targetcli /backstores/block> create data1 /dev/sdd1 Error
Summary: targetcli /backstores/block> create data1 /dev/sdd1 Error
Keywords:
Status: CLOSED DUPLICATE of bug 1149174
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: targetcli
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andy Grover
QA Contact: Storage QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-10 15:33 UTC by xianfenghe
Modified: 2021-09-06 12:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-10 19:22:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xianfenghe 2014-12-10 15:33:21 UTC
Description of problem:
root@foundation3:~23:20:54#targetcli 
targetcli shell version 2.1.fb34
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/backstores/block> ls
o- block ...................................................................................................... [Storage Objects: 0]
/backstores/block> create data1 /dev/sdd1                                                    
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 947, in run_interactive
    self._cli_loop()
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 777, in _cli_loop
    self.run_cmdline(cmdline)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 891, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/shell.py", line 866, in _execute_command
    result = target.execute_command(command, pparams, kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_node.py", line 87, in execute_command
    pparams, kparams)
  File "/usr/lib/python2.7/site-packages/configshell/node.py", line 1417, in execute_command
    result = method(*pparams, **kparams)
  File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 387, in ui_command_create
    so = BlockStorageObject(name, dev, readonly=readonly, write_back=write_back)
  File "/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 676, in __init__
    raise
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType


Version-Release number of selected component (if applicable):
root@foundation3:~23:26:59#yum info targetcli.noarch 
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
Name        : targetcli
Arch        : noarch
Version     : 2.1.fb34
Release     : 1.el7
Size        : 183 k
Repo        : installed
From repo   : base
Summary     : An administration shell for storage targets
URL         : https://fedorahosted.org/targetcli-fb/
License     : ASL 2.0
Description : An administration shell for configuring iSCSI, FCoE, and other
            : SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
            : users will also need to install and use fcoe-utils.


How reproducible:
Set targetcli reproducible.


Steps to Reproduce:
1.
2.
3.

Actual results:
/backstores/block> create data1 /dev/sdd1  


Expected results:
RHEL7.0 iscsi system bug.

Additional info:

Comment 2 Andy Grover 2014-12-10 19:22:37 UTC

*** This bug has been marked as a duplicate of bug 1149174 ***


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