xenial: ceph/rbd-mirror packages both ship /etc/init/ceph-rbd-mirror*

Bug #1687477 reported by José Roberto Catão Miranda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceph (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Triaged
Medium
Unassigned

Bug Description

falha na instalação

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: rbd-mirror (not installed)
ProcVersionSignature: Ubuntu 4.4.0-77.98-generic 4.4.59
Uname: Linux 4.4.0-77-generic i686
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: i386
Date: Mon May 1 13:44:27 2017
ErrorMessage: a tentar sobre-escrever '/etc/init/ceph-rbd-mirror.conf', que também está no pacote ceph 10.2.6-0ubuntu0.16.04.1
InstallationDate: Installed on 2016-07-16 (289 days ago)
InstallationMedia: Ubuntu-Kylin 16.04 LTS "Xenial Xerus" - Release i386 (20160420.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: ceph
Title: package rbd-mirror (not installed) failed to install/upgrade: a tentar sobre-escrever '/etc/init/ceph-rbd-mirror.conf', que também está no pacote ceph 10.2.6-0ubuntu0.16.04.1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
José Roberto Catão Miranda (cataomiranda) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
Revision history for this message
James Page (james-page) wrote : Re: package rbd-mirror (not installed) failed to install/upgrade: a tentar sobre-escrever '/etc/init/ceph-rbd-mirror.conf', que também está no pacote ceph 10.2.6-0ubuntu0.16.04.1

There is a file conflict between the two packages:

Preparing to unpack .../rbd-mirror_10.2.7-0ubuntu0.16.04.1_amd64.deb ...
Unpacking rbd-mirror (10.2.7-0ubuntu0.16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/rbd-mirror_10.2.7-0ubuntu0.16.04.1_amd64.deb (--unpack):
 trying to overwrite '/etc/init/ceph-rbd-mirror-all-starter.conf', which is also in package ceph 10.2.7-0ubuntu0.16.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 /var/cache/apt/archives/rbd-mirror_10.2.7-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in ceph (Ubuntu):
status: New → Confirmed
Revision history for this message
James Page (james-page) wrote :

Upstart install script needs to filter rbd-mirror files from ceph package:

    # Install upstart configurations using dh_installinit
    for conf in `ls -1 src/upstart/ceph*.conf | grep -v mds`; do \
        name=`basename $$conf | cut -d . -f 1`; \
        cp -v $$conf debian/ceph.$$name.upstart; \
        dh_installinit -pceph --no-start --name=$$name; \
    done

as it does for mds now.

Changed in ceph (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
status: Triaged → Fix Released
Changed in ceph (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
James Page (james-page) wrote :

Later ceph versions (>= yakkety) stopped shipping upstart configurations, so this only impacts on Xenial.

summary: - package rbd-mirror (not installed) failed to install/upgrade: a tentar
- sobre-escrever '/etc/init/ceph-rbd-mirror.conf', que também está no
- pacote ceph 10.2.6-0ubuntu0.16.04.1
+ xenial: ceph/rbd-mirror packages both ship /etc/init/ceph-rbd-mirror*
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.