[Bug 1928000] Re: open-iscsi fails to upgrade (2.0.874-7.1ubuntu6.2)

Lucas Kanashiro 1928000 at bugs.launchpad.net
Tue May 11 14:20:05 UTC 2021


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.
        MODULES_FILE=/lib/modules-load.d/open-iscsi.conf
        if [ -f /etc/modules-load.d/open-iscsi.conf ] ; then
            MODULES_FILE=/etc/modules-load.d/open-iscsi.conf
        fi
        grep '^[^#]' $MODULES_FILE | while read module args ; do
            [ "$module" ] || continue
            modprobe $module $args >/dev/null 2>&1 || true
        done

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):

https://www.freedesktop.org/software/systemd/man/modules-load.d.html

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 at 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:
  libfreetype6
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  open-iscsi
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 http://archive.ubuntu.com/ubuntu 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) ...
root at open-iscsi-test:~#

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
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1928000

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

Status in open-iscsi package in Ubuntu:
  Incomplete

Bug description:
  When upgrading my ubuntu 20.04.2 with "sudo apt-get dist-upgrade" the
  upgrade hangs after the following error:

  Setting up open-iscsi (2.0.874-7.1ubuntu6.2) ...
  grep: /lib/modules-load.d/open-iscsi.conf: No such file or directory

  After a couple of hours I killed the process and now I have package
  problems:

  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
  -a' to correct the problem.

  Actually, the folder /lib/modules-load.d is empty.
  The configuration of the package open-iscsi is pretty standard, I used the command iscsiadm and put my configuration files in /etc/iscsi, I definitely didn't touch the modules. I am still able to connect to a remote disk using the iscsi protocol.

  Ubuntu release: Ubuntu 20.04.2 LTS
  Package version:
  - Previous: 2.0.874-7.1ubuntu6.1
  - Installed (failed to complete): 2.0.874-7.1ubuntu6.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1928000/+subscriptions



More information about the foundations-bugs mailing list