open-iscsi upgrade fails to stop iscsid

Bug #306693 reported by Bryan McLellan
6
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: open-iscsi

On an upgrade from open-iscsi=2.0.865-1ubuntu4 to open-iscsi=2.0.870.1-0ubuntu1, the postrm script for 2.0.865-1ubuntu4 stops iscsid via the initscript, which fails to to all iscsid processes. When apt then tries to run the postinstall script, the init script for open-iscsi fails to start due to the existing process.

Work around is to forcibly kill the iscsid processes before upgrade:

root@file01:/etc/init.d# apt-get install open-iscsi=2.0.870.1-0ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  aspell-en ispell ibritish cupsys-common aspell g++-4.2 qstat nagios-plugins-extra libck-connector0 cups-common openssh-blacklist fping libstdc++6-4.2-dev
  libtiff4 libjpeg62 libcupsimage2 libcupsys2 iamerican libaspell15
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  open-iscsi
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/572kB of archives.
After this operation, 950kB of additional disk space will be used.
(Reading database ... 56874 files and directories currently installed.)
Preparing to replace open-iscsi 2.0.865-1ubuntu4 (using .../open-iscsi_2.0.870.1-0ubuntu1_i386.deb) ...
 * Disconnecting iSCSI targets [ OK ]
 * Stopping iSCSI initiator service [ OK ]
Unpacking replacement open-iscsi ...
Processing triggers for man-db ...
Setting up open-iscsi (2.0.870.1-0ubuntu1) ...
Installing new version of config file /etc/init.d/open-iscsi ...
Installing new version of config file /etc/iscsi/iscsid.conf ...
update-rc.d: /etc/init.d/remove: file does not exist
 * Starting iSCSI initiator service iscsid [fail]
 * Setting up iSCSI targets [ OK ]
invoke-rc.d: initscript open-iscsi, action "start" failed.
dpkg: error processing open-iscsi (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 open-iscsi
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@file01:/etc/init.d# killall -9 iscsid
root@file01:/etc/init.d# apt-get install open-iscsi=2.0.870.1-0ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
open-iscsi is already the newest version.
The following packages were automatically installed and are no longer required:
  aspell-en ispell ibritish cupsys-common aspell g++-4.2 qstat nagios-plugins-extra libck-connector0 cups-common openssh-blacklist fping libstdc++6-4.2-dev
  libtiff4 libjpeg62 libcupsimage2 libcupsys2 iamerican libaspell15
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up open-iscsi (2.0.870.1-0ubuntu1) ...
update-rc.d: /etc/init.d/remove: file does not exist
 * Starting iSCSI initiator service iscsid [ OK ]
ln: creating symbolic link `/lib/init/rw/sendsigs.omit.d/iscsid.pid': File exists
 * Setting up iSCSI targets [ OK ]

# uname -a
Linux file01 2.6.27-10-generic #1 SMP Fri Nov 21 12:00:22 UTC 2008 i686 GNU/Linux
# lsb_release -a
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10

Revision history for this message
Bryan McLellan (btm) wrote :

#306678 is a problem with the update-rc.d line triggered by an upgrade in the postinst script.

If this is a duplicate of anything, I think it's #181188, which resolves iscsid not stopping correctly. However the fix for this bug requires an upgrade and the upgrade path is not clean due to what I've reported in this bug.

Revision history for this message
Lucian Adrian Grijincu (lucian.grijincu) wrote :
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Thank you for taking the time to report this bug. In an effort to keep an
up-to-date and valid list of bugs to work on, I have reviewed this report
to verify it still requires effort and occurs on an Ubuntu release in
standard support, and it does not.

It is unfortunate that we were unable to resolve this defect, however
there appears to be no further action possible at this time. I am
therefore moving the bug to 'Incomplete'. If you disagree or have
new information, we would be grateful if you could please add a comment
stating why and then change the status of the bug to 'New'.

Changed in open-iscsi (Ubuntu):
status: New → Incomplete
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.