#1101357 udisks2: Error initializing module 'iscsi'

Package:
udisks2
Source:
udisks2
Description:
D-Bus service to access and manipulate storage devices
Submitter:
Michael Wang
Date:
2025-03-27 09:03:03 UTC
Severity:
normal
Tags:
#1101357#5
Date:
2025-03-26 12:15:09 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
	udisks2.service starting
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
	libudisks2-0 includes libudisks2.so.0 and not libudisks2.so
   * What was the outcome of this action?
	The following journactl log
	Error initializing module 'iscsi': /usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_iscsi.so: cannot open shared object file: No such file or directory
   * What outcome did you expect instead?
	No errors

#1101357#10
Date:
2025-03-26 14:00:46 UTC
From:
To:
Hello,

can you please send me the (contents of) the file
/etc/udisks2/udisks2.conf

How exactly do you trigger the load of the iscsi module?

The Debian package does not build with iscsi support enabled, but for
some reason "something" requests it to be loaded on your system.

Please also send me the output of
systemctl restart udisks2.service
journalctl --since=-120  -u udisks2.service

#1101357#17
Date:
2025-03-27 07:51:49 UTC
From:
To:
Hello,

Please see attached /etc/udisks2/udisks2.conf and journalctl log

Thanks,
Michael

#1101357#22
Date:
2025-03-27 07:55:35 UTC
From:
To:
The iscsi module appears to be loaded by `cockpit`, specifically
`cockpit-storaged`

#1101357#27
Date:
2025-03-27 08:58:06 UTC
From:
To:
(Looping in Martin, the maintainer/upstream of cockpit)

Thanks for the additional information.

I think there is no bug in udisks2 itself. At the most, this bug report
could be repurposed as a wishlist bug to package udisks2-iscsi.
But even then, it wouldn't be guaranteed, that this package is installed.

In my case, when I open the storage tab in cockpit, I get:


Mär 27 09:47:56 mars udisksd[17352]: Error initializing module 'btrfs':
/usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_btrfs.so: cannot
open shared object file: No such file or directory
Mär 27 09:47:56 mars udisksd[17352]: Error initializing module 'iscsi':
/usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_iscsi.so: cannot
open shared object file: No such file or directory
Mär 27 09:47:56 mars udisksd[17352]: Error initializing module 'lvm2':
/usr/lib/x86_64-linux-gnu/udisks2/modules/libudisks2_lvm2.so: cannot
open shared object file: No such file or directory


That is because I don't have udisks2-btrfs and udisks2-lvm2 installed.

This all works as expected afaics.
Martin, wdyt?

 From a cursory glance, there appears to be no API to query available
modules. So cockpit simply tries to enable all of them. Is that correct?


Michael





Am 27.03.25 um 08:55 schrieb Michael Wang: