Your message dated Tue, 25 Jan 2022 22:48:50 +0000
with message-id <e1ncucm-00027z...@fasolo.debian.org>
and subject line Bug#993559: fixed in ganeti 3.0.1-3
has caused the Debian Bug report #993559,
regarding ganeti-3.0 unable to remove a dpkg-divert during postrm when 2.16 is 
still there
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
993559: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993559
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ganeti-3.0
Version: 3.0.1-2
Severity: normal

Hello,

I've just performed an upgrade of a ganeti cluster from buster+2.16 to
bullseye+3.0 and hit a problem during the upgrade.

The procedure that I used was to:

 1. install ganeti 3.0 from buster-backports and upgrade the cluster
 2. run OS upgrade from buster to bullseye (I had not removed ganeti 2.16)

During the upgrade to bullseye, ganeti was upgraded from the 3.0 backports
package to the same one from bullseye. At that point, dpkg stopped with an
error. Running "apt -f install" to fix the situation did not clear things up.
Running "apt purge ganeti-2.16 ganeti-haskell-2.16 ganeti-htools-2.16" was
jammed on a conflict of configuration files with 3.0:

# apt -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  at-spi2-core bsdmainutils libapt-inst2.0 libevent-core-2.1-6
  libevent-pthreads-2.1-6 libhogweed4 libnftables0 libprocps7 libreadline5
  python3-asn1crypto python3.7 python3.7-minimal
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  ganeti-3.0
The following packages will be upgraded:
  ganeti-3.0
1 upgraded, 0 newly installed, 0 to remove and 497 not upgraded.
323 not fully installed or removed.
Need to get 0 B/876 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 64433 files and directories currently installed.)
Preparing to unpack .../ganeti-3.0_3.0.1-2_all.deb ...
Unpacking ganeti-3.0 (3.0.1-2) over (3.0.1-1~bpo10+1) ...
Removing 'diversion of /usr/share/ganeti/2.16/ganeti/utils/version.py to 
/usr/share/ganeti/2.16/ganeti/utils/version.py.orig by ganeti-3.0'
dpkg-divert: error: rename involves overwriting 
'/usr/share/ganeti/2.16/ganeti/utils/version.py' with
  different file '/usr/share/ganeti/2.16/ganeti/utils/version.py.orig', not 
allowed
dpkg: warning: old ganeti-3.0 package post-removal script subprocess returned 
error
exit status 2
dpkg: trying script from the new package instead ...
Removing 'diversion of /usr/share/ganeti/2.16/ganeti/utils/version.py to 
/usr/share/ganeti/2.16/ganeti/utils/version.py.orig by ganeti-3.0'
dpkg-divert: error: rename involves overwriting 
'/usr/share/ganeti/2.16/ganeti/utils/version.py' with
  different file '/usr/share/ganeti/2.16/ganeti/utils/version.py.orig', not 
allowed
dpkg: error processing archive 
/var/cache/apt/archives/ganeti-3.0_3.0.1-2_all.deb (--unpack):
 new ganeti-3.0 package post-removal script subprocess returned error exit 
status 2
Removing 'diversion of /usr/share/ganeti/2.16/ganeti/utils/version.py to 
/usr/share/ganeti/2.16/ganeti/utils/version.py.orig by ganeti-3.0'
dpkg-divert: error: rename involves overwriting 
'/usr/share/ganeti/2.16/ganeti/utils/version.py' with
  different file '/usr/share/ganeti/2.16/ganeti/utils/version.py.orig', not 
allowed
dpkg: error while cleaning up:
 new ganeti-3.0 package post-removal script subprocess returned error exit 
status 2
Errors were encountered while processing:
 /var/cache/apt/archives/ganeti-3.0_3.0.1-2_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


In order to get out of that situation, we had to modify the postrm script in
/var/lib/dpkg/info/ganeti-3.0.postrm to comment out the dpkg-diver --remove
command. That permitted the package to finish upgrading and the os upgrade to
complete. Once the upgrade was completed, I was able to purge ganeti 2.16 (and
I had to manually remove the diversion that was left behind)

I'm guessing this happened because the ganeti 2.16 packages were still in
place. But it was a situation quite difficult to work around of. I'm wondering
if something can be done to avoid this situation.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ganeti-3.0 depends on:
ii  adduser                3.118
pn  bridge-utils           <none>
ii  debconf [debconf-2.0]  1.5.77
pn  fping                  <none>
ii  iproute2               5.13.0-2
pn  iputils-arping         <none>
ii  libcap2-bin            1:2.44-1
ii  lvm2                   2.03.11-2.1
ii  openssh-client         1:8.4p1-6
ii  openssh-server         1:8.4p1-6
ii  openssl                1.1.1l-1
ii  python3                3.9.2-3
pn  python3-bitarray       <none>
pn  python3-openssl        <none>
ii  python3-paramiko       2.7.2-1
ii  python3-psutil         5.8.0-1
ii  python3-pycurl         7.44.1-1
pn  python3-pyinotify      <none>
ii  python3-pyparsing      2.4.7-1
ii  python3-simplejson     3.17.5-1
ii  socat                  1.7.4.1-3

ganeti-3.0 recommends no packages.

ganeti-3.0 suggests no packages.

--- End Message ---
--- Begin Message ---
Source: ganeti
Source-Version: 3.0.1-3
Done: Apollon Oikonomopoulos <apoi...@debian.org>

We believe that the bug you reported is fixed in the latest version of
ganeti, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 993...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Apollon Oikonomopoulos <apoi...@debian.org> (supplier of updated ganeti package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 16 Dec 2021 14:22:41 +0200
Source: ganeti
Architecture: source
Version: 3.0.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Ganeti Team <gan...@packages.debian.org>
Changed-By: Apollon Oikonomopoulos <apoi...@debian.org>
Closes: 993559 997053 1000040
Changes:
 ganeti (3.0.1-3) unstable; urgency=medium
 .
   * postrm: remove diversion only on package removal (Closes: #993559)
     * Restore the diversion on postinst in case it was accidentally removed
       due to #993559.
   * Fix FTBFS by removing duplicate index entry.
     Thanks to Marius Bakke (Closes: #997053)
   * d/control: remove unnecessary B-D on libpcre3-dev (Closes: #1000040)
   * Fix FTBFS with sphinx >= 2.1.
     Thanks to Sascha Lucas
Checksums-Sha1:
 3e7d58fead9d7273906206a87e1bd4a1c9107cea 3339 ganeti_3.0.1-3.dsc
 59e43d2d341c838e2294c3a9169bfc994a177aee 48208 ganeti_3.0.1-3.debian.tar.xz
 d12a4062770961c360a9525ac7e7c66d9f60bb72 15744 ganeti_3.0.1-3_amd64.buildinfo
Checksums-Sha256:
 65737b0c126f6421be06a3f66fc2d5e55ecab9833658a5e0678c998fa397f3d8 3339 
ganeti_3.0.1-3.dsc
 640583bf40342eb9d661889dd49a8d0273ee449c36f2af29ba8f98839985bb69 48208 
ganeti_3.0.1-3.debian.tar.xz
 fa8f6c3da72ba588cd1e8f0d3841f4c55a2b04bff8aa2d6d8ec72dfdbb968f2c 15744 
ganeti_3.0.1-3_amd64.buildinfo
Files:
 97b8215bd63a2f35baafda722ec53bfa 3339 admin optional ganeti_3.0.1-3.dsc
 bdf67c7ac931d7ac25d24b8ea3d3cc20 48208 admin optional 
ganeti_3.0.1-3.debian.tar.xz
 3995938f989f4f5b507076ffc3eab6b3 15744 admin optional 
ganeti_3.0.1-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEPgL9ZlYpWVIRC6uZ9RsYxyAkgiQFAmHwcKAACgkQ9RsYxyAk
giRexRAAswl2IhyQFpE2wo2FTbY+ySae9iiN9wwH1Yz7u2+Ni3rU+dP7U0ewSHke
6ABFPYPXCPE0tHAtyfUiDBgAmy9UKEB7VDOBC3eACaCcgwGb3g9izSYHNdU5PEnO
bWiGXm89z6ojEyN6MsSVLr8ZHFzfNAhfM2yM+myUipK4FpHZ6mE66e+8MJgQda2q
KFQdISIbnqxmaDXO58gUSsCUQMXK35YwQXLJaVB4jaOt3Nz52ZRn66sz1I6PfDPz
FbT3yYHshsYp++s8wGyMlQcFGah7c7EcwR8BbcVHCg08vLcAZ0fgbFcR2zs6cdQA
0H6gNrZ8utfdHfbFekglYkJuEOt6KIbiUljP4xhTw6jNStPNl7Kckk77cYURuOT7
UuRUSpL6KpLIcc97qZd14I264KditnGMWM5+CvTEn0uuFwSk8z601vTq41IFBImO
qm69HQrpkZw1Vv2vFjQjy8G95IL9hiO66i2vMRJ22tLbUwfLFuickQFSAzfPTBns
VCTiWjJwxRhwFO3bNABWvTqO6BP6RrNCQ7m7eInZ7d0bC1EnAt/lYtYarRUltjwl
27d5QIEi5+RKYQ60gPVCEDHBNYj5I+JiwJ1rtQwcc2TOs8DjyJHVSqIc2b30Rs+m
5FjFbBarYyV7kWd626Ofk95q2XNC2cHdxnJM/RidBYkU7ytXJ8E=
=EM/n
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to