Bug 876374 - Creating portal in targetcli fails with "'module' object has no attribute 'list_eth_ips'"
Summary: Creating portal in targetcli fails with "'module' object has no attribute 'li...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rtslib
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Andy Grover
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-13 23:39 UTC by Reto Gantenbein
Modified: 2012-11-23 08:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-23 02:56:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
targetcli saveconfig.json (2.43 KB, application/json)
2012-11-13 23:39 UTC, Reto Gantenbein
no flags Details

Description Reto Gantenbein 2012-11-13 23:39:23 UTC
Created attachment 644461 [details]
targetcli saveconfig.json

Description of problem:
I tried to setup a iSCSI initiator with the current Fedora 18. When trying to create a portal, the command fails with a python stacktrace.

Version-Release number of selected component (if applicable):
targetcli-2.0rc1.fb17-1.fc18

How reproducible:
always

Steps to Reproduce:
1. run targetcli
2. setup a backstore/iscsi initiator
3. create a portal
  
Actual results:
/iscsi/iqn.20.../tpg1/portals> create
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_target.py", line 977, in ui_command_create
    if ip_address not in utils.list_eth_ips() and ip_address != "0.0.0.0":
AttributeError: 'module' object has no attribute 'list_eth_ips'

Expected results:
portal for my iscsi initiator is created

Additional info:
see attached saveconfig.json

Comment 1 Reto Gantenbein 2012-11-13 23:48:18 UTC
ups... sorry, i confused the terms, still new to this stuff: 
s/initiator/target/g

Comment 2 Andy Grover 2012-11-14 04:20:08 UTC
sorry about that, will take a look tomorrow.

Comment 3 Fedora Update System 2012-11-14 05:01:39 UTC
python-rtslib-2.1.fb24-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-rtslib-2.1.fb24-1.fc18

Comment 4 Fedora Update System 2012-11-14 05:01:53 UTC
python-rtslib-2.1.fb24-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-rtslib-2.1.fb24-1.fc17

Comment 5 Fedora Update System 2012-11-14 19:45:46 UTC
Package python-rtslib-2.1.fb24-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-rtslib-2.1.fb24-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18175/python-rtslib-2.1.fb24-1.fc18
then log in and leave karma (feedback).

Comment 6 Bruno Mairlot 2012-11-22 16:29:53 UTC
Hello,

I confirm the update (for F17) is working fine.

After a "yum update --enablerepo=updates-testing python-rtslib"

I can create the portal :

/> cd iscsi/iqn.2002-01.be.yyy:godzilla/tpg1/portals 
/iscsi/iqn.20.../tpg1/portals> create 192.168.130.105
Using default IP port 3260
Created network portal 192.168.130.105:3260.
/iscsi/iqn.20.../tpg1/portals> create 192.168.131.105
Using default IP port 3260
Created network portal 192.168.131.105:3260.
/iscsi/iqn.20.../tpg1/portals>

Comment 7 Fedora Update System 2012-11-23 02:56:22 UTC
python-rtslib-2.1.fb24-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-11-23 08:00:35 UTC
python-rtslib-2.1.fb24-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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