Thank you for taking the time to file a bug report and try to make
Ubuntu better.

The configuration process did hang in this part of the postinst script:

        # We switched over to modules-load.d logic, so we have to take
        # care of this in postinst now.
        if [ -f /etc/modules-load.d/open-iscsi.conf ] ; then
        grep '^[^#]' $MODULES_FILE | while read module args ; do
            [ "$module" ] || continue
            modprobe $module $args >/dev/null 2>&1 || true

This seems a mechanism to support some old version. However, none of the
MODULES_FILE's paths are installed by the package which are:

- /lib/modules-load.d/open-iscsi.conf
- /etc/modules-load.d/open-iscsi.conf

/etc/modules-load.d directory is used by systemd to configure kernel
modules to load at boot time (/lib/modules-load.d seems obsoleted):

I am not sure if we still need to support MODULES_FILE (it was removed
from newer versions), but even if we still need it, the postinst script
shouldn't rely on a file which is not installed by the package and we
can't ensure it will be present in the system. I was able to reproduce
the same log error after upgrading to version 2.0.874-7.1ubuntu6.2 in a
clean LXD container:

root@open-iscsi-test:~# sudo apt install open-iscsi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 283 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Get:1 focal-updates/main amd64 open-iscsi 
amd64 2.0.874-7.1ubuntu6.2 [283 kB]
Fetched 283 kB in 2s (186 kB/s)      
Preconfiguring packages ...
(Reading database ... 31611 files and directories currently installed.)
Preparing to unpack .../open-iscsi_2.0.874-7.1ubuntu6.2_amd64.deb ...
Unpacking open-iscsi (2.0.874-7.1ubuntu6.2) over (2.0.874-7.1ubuntu6.1) ...
Setting up open-iscsi (2.0.874-7.1ubuntu6.2) ...
grep: /lib/modules-load.d/open-iscsi.conf: No such file or directory
Processing triggers for systemd (245.4-4ubuntu3.6) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.4) ...

However, you can see the grep error but it did not hang as you explained
in the bug report, which makes me think that this is not the real
problem you are facing. Maybe there is something in your config which is
making it hang.

To proceed with the investigation I'd ask you to provide some extra
info, like the config files (if possible) and any other log you have
available (not just apt output).

I am marking this bug as Incomplete, when you provide more info that
could help us with the investigation set it back to New and we will take
a look.

** Changed in: open-iscsi (Ubuntu)
       Status: New => Incomplete

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  open-iscsi fails to upgrade (2.0.874-7.1ubuntu6.2)

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to