Bug 1239046

Summary: targetcli: can't list information from IPv6 portal
Product: Red Hat Enterprise Linux 7 Reporter: Bruno Goncalves <bgoncalv>
Component: python-configshellAssignee: Andy Grover <agrover>
Status: CLOSED ERRATA QA Contact: Martin Hoyer <mhoyer>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: agrover, bgoncalv, jbastian, tgill
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:54:35 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:
Bug Depends On:    
Bug Blocks: 1313485, 1295577    

Description Bruno Goncalves 2015-07-03 11:20:18 UTC
Description of problem:
It is not possible to list information from IPv6 portal using command line.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Create an iSCSI target portal
2.Try to display some information 
# targetcli /iscsi/<tgt_iqn>/tpg1/portals/[::0]:3260 info

Actual results:
Nothing seems to be executed

Expected results:
Portal information should have been shown

Additional info:
No command available to a portal actually works

Executing "cd [::0]:3260" from targetcli tool also does not work well. 
It opens an interactive tree where it is possible to select the portal.

Comment 7 Martin Hoyer 2017-04-28 08:51:54 UTC
there are still some issues with IPv6 portal:

If we want to display info from tpg/ instead of showing the info about portal, it will change directory to portals/ instead
iscsi/iqn.20...4b5768f2/tpg1> portals/[::0]:3260 info

We can change directory to the [::0]:3260/ and display info correctly
/iscsi/iqn.20...ls/[::0]:3260> info
ip_address: [::0]
iser: False
offload: False
port: 3260

Cannot list info from shell
# targetcli /iscsi/iqn.2003-01.org.linux-iscsi.localhost.x8664:sn.ff864b5768f2/tpg1/portals/[::0]:3260 info

All of the above works well with IPv4.
Tested with:

Comment 9 Martin Hoyer 2017-05-31 14:44:50 UTC
Tested with python-configshell-1.1.fb23-3.el7
Works as expected, no regression found.

Comment 10 errata-xmlrpc 2017-08-01 20:54:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.