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 1966460

Summary: [RHEL8 udisks2] dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Login failed: initiator reported error
Product: Red Hat Enterprise Linux 8 Reporter: guazhang <guazhang>
Component: udisks2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5Keywords: Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: udisks2-2.9.0-13.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:16:20 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: 1967959    
Bug Blocks: 1969483    

Description guazhang@redhat.com 2021-06-01 08:35:52 UTC
This bug was initially created as a copy of Bug #1958932

I am copying this bug because: 

RHEL8.5 also hit the bug 

https://beaker.engineering.redhat.com/recipes/10069989#task126609242

udisks2-2.9.0-7.el8.src.rpm 



Description of problem:
RHEL9 udisks2 regression found errors that udisks2 login iSCSI login failed due to authorization failure

Version-Release number of selected component (if applicable):
RHEL-9.0.0-20210504.5 BaseOS x86_64

How reproducible:


Steps to Reproduce:
1.  python3 src/tests/dbus-tests/run_tests.py -s test_30_iscsi.UdisksISCSITest.test_login_chap_auth
2.
3.

[root@storageqe-59 udisks-2.9.2]# python3 src/tests/dbus-tests/run_tests.py -s test_30_iscsi.UdisksISCSITest.test_login_chap_auth
Configuration restored from src/tests/dbus-tests/targetcli_config.json
Not spawning own process: testing the system installed instance.
test_login_chap_auth (test_30_iscsi.UdisksISCSITest) ... ERROR

======================================================================
ERROR: test_login_chap_auth (test_30_iscsi.UdisksISCSITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/udisks-2.9.2/src/tests/dbus-tests/test_30_iscsi.py", line 147, in test_login_chap_auth
    manager.Login(iqn, tpg, host, port, iface, options,
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/root/rpmbuild/BUILD/udisks-2.9.2/src/tests/dbus-tests/udiskstestcase.py", line 41, in call_long
    return call(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Login failed: initiator reported error (24 - iSCSI login failed due to authorization failure)

----------------------------------------------------------------------
Ran 1 test in 0.187s

FAILED (errors=1)
All configuration cleared
[root@storageqe-59 udisks-2.9.2]# 


[root@storageqe-59 udisks-2.9.2]# python3 src/tests/dbus-tests/run_tests.py -s test_30_iscsi.UdisksISCSITest.test_login_mutual_auth
Configuration restored from src/tests/dbus-tests/targetcli_config.json
Not spawning own process: testing the system installed instance.
test_login_mutual_auth (test_30_iscsi.UdisksISCSITest) ... ERROR

======================================================================
ERROR: test_login_mutual_auth (test_30_iscsi.UdisksISCSITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/udisks-2.9.2/src/tests/dbus-tests/test_30_iscsi.py", line 195, in test_login_mutual_auth
    manager.Login(iqn, tpg, host, port, iface, options,
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/root/rpmbuild/BUILD/udisks-2.9.2/src/tests/dbus-tests/udiskstestcase.py", line 41, in call_long
    return call(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Login failed: initiator reported error (24 - iSCSI login failed due to authorization failure)

----------------------------------------------------------------------
Ran 1 test in 0.192s

FAILED (errors=1)
All configuration cleared
[root@storageqe-59 udisks-2.9.2]#

Comment 2 Tomáš Bžatek 2022-10-31 14:41:49 UTC
The original test failures should be fixed by this upstream change: https://github.com/storaged-project/udisks/pull/1035

The change is just about a test environment modification, no actual udisks code changed.

Comment 6 guazhang@redhat.com 2022-11-03 02:23:11 UTC
Udisks2 regression have pass, move to verified.

Comment 8 errata-xmlrpc 2023-05-16 08:16:20 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 (udisks2 bug fix and enhancement update), 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-2023:2754