Project

General

Profile

Bug #9783

upgrade ceph-common (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) fails

Added by Loïc Dachary over 9 years ago. Updated almost 6 years ago.

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

0%

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

Description

This happens when switching from Ubuntu / Debian repositories to Ceph repositories:

Unpacking ceph-common (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/ceph-common_0.80.7-1trusty_amd64.deb (--unpack):
 trying to overwrite '/etc/init.d/rbdmap', which is also in package ceph 0.80.5-0ubuntu0.14.04.1

The 0.80.5 was installed using the default ubuntu repositories.
# apt-get install ceph ceph-common python-ceph
ph ceph-common python-ceph
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  btrfs-tools ceph-fs-common ceph-fuse ceph-mds liblzo2-2 librados2 librbd1
The following NEW packages will be installed:
  btrfs-tools ceph-fs-common ceph-fuse ceph-mds liblzo2-2
The following packages will be upgraded:
  ceph ceph-common librados2 librbd1 python-ceph
5 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 15.1 MB of archives.
After this operation, 21.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
y
Get:1 http://ceph.com/debian-firefly/ trusty/main ceph-common amd64 0.80.7-1trusty [3945 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main liblzo2-2 amd64 2.06-1.2ubuntu1.1 [46.1 kB]
Get:3 http://ceph.com/debian-firefly/ trusty/main python-ceph amd64 0.80.7-1trusty [36.3 kB]
Get:4 http://ceph.com/debian-firefly/ trusty/main librbd1 amd64 0.80.7-1trusty [319 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main btrfs-tools amd64 3.12-1 [335 kB]
Get:6 http://ceph.com/debian-firefly/ trusty/main librados2 amd64 0.80.7-1trusty [1427 kB]
Get:7 http://ceph.com/debian-firefly/ trusty/main ceph amd64 0.80.7-1trusty [5538 kB]
Get:8 http://ceph.com/debian-firefly/ trusty/main ceph-fs-common amd64 0.80.7-1trusty [25.4 kB]
Get:9 http://ceph.com/debian-firefly/ trusty/main ceph-fuse amd64 0.80.7-1trusty [1337 kB]
Get:10 http://ceph.com/debian-firefly/ trusty/main ceph-mds amd64 0.80.7-1trusty [2099 kB]
Fetched 15.1 MB in 1s (13.6 MB/s)
Selecting previously unselected package liblzo2-2:amd64.
(Reading database ... 43865 files and directories currently installed.)
Preparing to unpack .../liblzo2-2_2.06-1.2ubuntu1.1_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.06-1.2ubuntu1.1) ...
Selecting previously unselected package btrfs-tools.
Preparing to unpack .../btrfs-tools_3.12-1_amd64.deb ...
Unpacking btrfs-tools (3.12-1) ...
Preparing to unpack .../ceph-common_0.80.7-1trusty_amd64.deb ...
Unpacking ceph-common (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/ceph-common_0.80.7-1trusty_amd64.deb (--unpack):
 trying to overwrite '/etc/init.d/rbdmap', which is also in package ceph 0.80.5-0ubuntu0.14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../python-ceph_0.80.7-1trusty_amd64.deb ...
Unpacking python-ceph (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
Preparing to unpack .../librbd1_0.80.7-1trusty_amd64.deb ...
Unpacking librbd1 (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
Preparing to unpack .../librados2_0.80.7-1trusty_amd64.deb ...
Unpacking librados2 (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
Preparing to unpack .../ceph_0.80.7-1trusty_amd64.deb ...
Unpacking ceph (0.80.7-1trusty) over (0.80.5-0ubuntu0.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/ceph_0.80.7-1trusty_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man8/ceph-rest-api.8.gz', which is also in package ceph-common 0.80.5-0ubuntu0.14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package ceph-fs-common.
Preparing to unpack .../ceph-fs-common_0.80.7-1trusty_amd64.deb ...
Unpacking ceph-fs-common (0.80.7-1trusty) ...
Selecting previously unselected package ceph-fuse.
Preparing to unpack .../ceph-fuse_0.80.7-1trusty_amd64.deb ...
Unpacking ceph-fuse (0.80.7-1trusty) ...
Selecting previously unselected package ceph-mds.
Preparing to unpack .../ceph-mds_0.80.7-1trusty_amd64.deb ...
Unpacking ceph-mds (0.80.7-1trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 /var/cache/apt/archives/ceph-common_0.80.7-1trusty_amd64.deb
 /var/cache/apt/archives/ceph_0.80.7-1trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

History

#1 Updated by Dan Mick over 9 years ago

looks like 17732dc0c8878ea58813ad543c5359cb811079cc which probably should have included some other package control headers as well, like Conflicts

#2 Updated by Loïc Dachary over 9 years ago

  • Status changed from New to 12
  • Priority changed from Normal to High
<jamespage> [...] it would point to some inconsistencies between Debian/Ubuntu and ceph upstream packaging
<joelio> jamespage: I switched from Debian upstream to Ceph provided, there was a file in ceph in upstream that was in ceph-common (the rbdinit map afair). I just did a dpkg -r on that single package and the rest worked. Not sure wht upstream would change that tbh
<jamespage> joelio, when files move between packages, we have to add appropiate versioned Breaks/Replaces otherwise you get this sort of problem
<joelio> (Well, Ubuntu upstream.. in Trusty)
<jamespage> joelio, for the most part Debian == Ubuntu in terms of Ceph - I maintain in both distros :-)
<joelio> sure, just not quite grokking why the rbd init map would be in another package :)

#3 Updated by Loïc Dachary over 9 years ago

  • Description updated (diff)

#4 Updated by Sage Weil almost 6 years ago

  • Status changed from 12 to Rejected

Also available in: Atom PDF