Project

General

Profile

Actions

Bug #15329

closed

Debian packaging -- failure on uninstall

Added by Sam Yaple about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The prerm script calls `invoke.d ceph stop` [0]1 which is incorrect. The correct line for the installed package would be `invoke.d ceph-base stop`. I personally think this may be a regression unless the goal was to change the service name to ceph-base rather than ceph as it has been in the past. The error produced when uninstalling is as follows (invoke.d is exiting with error 102):

[server01-mon][DEBUG ] Removing radosgw (10.1.0-1~bpo80+1) ...
[server01-mon][DEBUG ] Purging configuration files for radosgw (10.1.0-1~bpo80+1) ...
[server01-mon][DEBUG ] dpkg: ceph-base: dependency problems, but removing anyway as you requested:
[server01-mon][DEBUG ] ceph-mds depends on ceph-base (= 10.1.0-1~bpo80+1).
[server01-mon][DEBUG ]
[server01-mon][DEBUG ] Removing ceph-base (10.1.0-1~bpo80+1) ...
[server01-mon][DEBUG ] dpkg: error processing package ceph-base (--purge):
[server01-mon][DEBUG ] subprocess installed pre-removal script returned error exit status 102
[server01-mon][DEBUG ] dpkg: ceph-common: dependency problems, but removing anyway as you requested:
[server01-mon][DEBUG ] ceph-base depends on ceph-common (= 10.1.0-1~bpo80+1).
[server01-mon][DEBUG ]
[server01-mon][DEBUG ] Removing ceph-common (10.1.0-1~bpo80+1) ...
[server01-mon][DEBUG ] Purging configuration files for ceph-common (10.1.0-1~bpo80+1) ...
[server01-mon][DEBUG ] Processing triggers for man-db (2.7.0.2-5) ...
[server01-mon][DEBUG ] Errors were encountered while processing:
[server01-mon][DEBUG ] ceph-mds
[server01-mon][DEBUG ] ceph-base
[server01-mon][WARNIN] E: Sub-process /usr/bin/dpkg returned an error code (1)
[server01-mon][ERROR ] RuntimeError: command returned non-zero exit status: 100
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: env DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get --assume-yes -q -f --force-yes remove --purge ceph ceph-mds ceph-common ceph-fs-common radosgw

[0] https://github.com/ceph/ceph/blob/0cbe3dea69604730bc7dba7bc3844294f4c9ac5a/debian/ceph-base.prerm#L9
[1] https://github.com/ceph/ceph/blob/0cbe3dea69604730bc7dba7bc3844294f4c9ac5a/debian/ceph-base.prerm#L9


Related issues 1 (0 open1 closed)

Has duplicate devops - Bug #15327: On Debian, when upgrading from Hammer or Infernalis to Jewel, ceph-base fails to install.Duplicate03/30/2016

Actions
Actions

Also available in: Atom PDF