Project

General

Profile

Bug #15327

On Debian, when upgrading from Hammer or Infernalis to Jewel, ceph-base fails to install.

Added by Alexandre Germain almost 7 years ago. Updated almost 7 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I'm sorry if I post this in the wrong project, this is actually my first report here.

So, here's the actual error, which left "ceph-base" (and thus the other packages depending on it) un-configured.

Unpacking ceph-base (10.1.0-1~bpo80+1) over (10.1.0-1~bpo80+1) ...
Setting up ceph-base (10.1.0-1~bpo80+1) ...
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ceph-base (--install):
subprocess installed post-installation script returned error exit status 1

A bit of info on the machine first (if that helps):

  1. lsb_release
    Description: Debian GNU/Linux 8.3 (jessie)
  1. uname -a
    Linux PVE03-LAB 4.2.8-1-pve #1 SMP Fri Feb 26 16:37:36 CET 2016 x86_64 GNU/Linux

Fiddling with the pre-install script (/var/lib/dpkg/info/ceph-base.prerm), and setting #!/bin/sh in debug mode (-x), helped me find the actual issue:

insserv: script ceph-base: service ceph already provided!
insserv: exiting now!

I pinpointed the issue to the init script being already provided by "ceph" on 0.94, while systemd tries to re-create the existing service when installing ceph-base, which is a new package.

  1. dpkg -S /etc/init.d/ceph
    ceph: /etc/init.d/ceph

So, my workaround was to simply delete "/etc/init.d/ceph", and now if I apt-get dist-upgrade, everything works as expected.

I know you guys will find a proper way to remove that annoyance.

Thanks!


Related issues

Duplicates devops - Bug #15329: Debian packaging -- failure on uninstall Resolved 03/30/2016

History

#1 Updated by Nathan Cutler almost 7 years ago

  • Project changed from Ceph-deploy to devops

#2 Updated by Dan Mick almost 7 years ago

May be resolved by #15329?

#3 Updated by Nathan Cutler almost 7 years ago

  • Related to Bug #15329: Debian packaging -- failure on uninstall added

#4 Updated by Kefu Chai almost 7 years ago

  • Status changed from New to Duplicate

yes, ceph-base "Replaces" "ceph" as it installs "/etc/init.d/ceph" which provides the "ceph" service. and the same file which was also provided the old "ceph" packages before the #15329 was fixed.

with the fix of #15329, ceph-base will install "/etc/init.d/ceph" instead of "/etc/init.d/ceph-base", and ceph-base also "Breaks" "ceph". so ceph-base won't unpack unless ceph is unconfigured. so there is no chance that 0.94 ceph can coexist with 10.1.* ceph-base.

#5 Updated by Kefu Chai almost 7 years ago

  • Related to deleted (Bug #15329: Debian packaging -- failure on uninstall)

#6 Updated by Kefu Chai almost 7 years ago

  • Duplicates Bug #15329: Debian packaging -- failure on uninstall added

Also available in: Atom PDF