Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 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: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1295577, 1313485    

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):
targetcli-2.1.fb37-3.el7.noarch

How reproducible:
100%

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
Andy,
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
/iscsi/iqn.20.../tpg1/portals>

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:
targetcli-2.1.fb46-1.el7
python-configshell-1.1.fb23-1.el7
python-rtslib-2.1.fb63-1.el7

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.

https://access.redhat.com/errata/RHBA-2017:2031