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 1657165 - Give clear error message when creating an no-auth iscsi-direct pool by using authentication target lun
Summary: Give clear error message when creating an no-auth iscsi-direct pool by using ...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: gaojianan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 10:11 UTC by Meina Li
Modified: 2020-02-11 12:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-11 12:18:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meina Li 2018-12-07 10:11:23 UTC
Description of problem:
Give clear error message when creating an no-auth iscsi-direct pool by using authentication target lun

Version-Release number of selected component (if applicable):
libiscsi-1.18.0-5.module+el8+2173+537e5cb5.x86_64
libvirt-4.9.0-1.module+el8+2241+fdba4e12.x86_64
qemu-kvm-2.12.0-41.el8+2104+3e32e6f8.x86_64

How reproducible:
100%

Steps to Reproduce:

1. Prepare a target lun with authentication=1
...
o- iqn.2017-12.com.virttest:emulated-iscsi-noauth.target2............ [TPGs: 1]
    o- tpg1 .................................. [gen-acls, tpg-auth, 1-way auth]
      o- acls ..................................... [ACLs: 0]
      o- luns .................................. [LUNs: 1]
      | o- lun0 ................................ [fileio/test-ISCSI-2 (/var/lib/libvirt/images/test-iscsi-2.img) (default_tg_pt_gp)]
      o- portals .......................................... [Portals: 1]
        o- 0.0.0.0:3260 ........................................ [OK]
...

2. Create a iscsi-direct pool.
# cat pool.xml
<pool type="iscsi-direct">
  <name>virtimages</name>
  <source>
    <host name="**IP**"/>
    <device path="iqn.2017-12.com.virttest:emulated-iscsi-noauth.target2"/>
    <initiator>
       <iqn name='iqn.1992-01.com.example:client'/>
    </initiator>
  </source>
</pool>
# virsh pool-create pool.xml 
error: Failed to create pool from pool.xml
error: internal error: Failed to logout: Failed to start logout() Trying to logout while not logged in.

Actual results:
As step2

Expected results:
Give a clear error info, such as:
Login Failed. Failed to log in to target. Status: Authentication failure(513)

Additional info:
2018-12-07 09:14:04.920+0000: 25509: error : virISCSIDirectReportLuns:360 : internal error: Failed to reportluns: Failed to send ReportLuns command
2018-12-07 09:14:04.920+0000: 25509: error : virISCSIDirectDisconnect:400 : internal error: Failed to logout: Failed to start logout() Trying to logout while not logged in.

Comment 1 Jaroslav Suchanek 2020-02-11 12:18:03 UTC
This bug was closed deferred as a result of bug triage.

Please reopen if you disagree and provide justification why this bug should
get enough priority. Most important would be information about impact on
customer or layered product. Please indicate requested target release.


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