Project

General

Profile

Bug #11673

Debian: ceph-test and rest-bench debug packages should require their respective binary packages

Added by Ken Dreyer almost 9 years ago. Updated almost 9 years ago.

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

0%

Source:
other
Tags:
Backport:
hammer,firefly
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
upgrade/client-upgrade
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I recently moved ceph-objectstore-tool from the "ceph-test" package to the main "ceph" package, in ticket #11376.

Soon after this was completed, our upgrade test suites began to fail when apt updated ceph-dbg. As one example:

http://pulpito.ceph.com/teuthology-2015-05-15_17:18:01-upgrade:firefly-x-hammer-distro-basic-vps/894814/

<pre>
2015-05-15T18:51:18.423 INFO:teuthology.orchestra.run.burnupi49.stderr:dpkg: error processing archive /var/cache/apt/archives/ceph-dbg_0.94.1-111-gb69fb89-1trusty_amd64.deb (--unpack):
2015-05-15T18:51:18.423 INFO:teuthology.orchestra.run.burnupi49.stderr: trying to overwrite '/usr/lib/debug/usr/bin/ceph-objectstore-tool', which is also in package ceph-test-dbg 0.80.9-242-g7d11b19-1trusty
2015-05-15T18:51:18.552 INFO:teuthology.orchestra.run.burnupi49.stderr:dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
</pre>

Ordinarily this would have been addressed by the following dependency chain:

  1. apt-get updates "ceph" to a newer version with objectstore-tool present.
  2. With the Replaces: and Breaks:" changes in #11376, the new "ceph" .deb depends on a newer version of "ceph-test" with the objectstore-tool removed, so apt updates that as well.
  3. The dbg packages depend on the newer versions of ceph and ceph-test, so apt updates them as well.

The problem is with that third step. This Teuthology test uncovered the fact that ceph-test-dbg did not have a specific dependency on ceph-test. When apt updated ceph-test, it did not know it also needed to update ceph-test-dbg as well.

The explicit dependencies between -dbg packages and main subpackages are already present for a lot of the ceph packages that we ship (like ceph itself with ceph-dbg, or ceph-mds and ceph-mds-dbg, etc), but two newer subpackages are missing the explicit dependency: ceph-test-dbg and rest-bench-dbg.


Related issues

Copied to devops - Backport #11733: Debian: ceph-test and rest-bench debug packages should require their respective binary packages Resolved 05/18/2015
Copied to devops - Backport #11734: Debian: ceph-test and rest-bench debug packages should require their respective binary packages Resolved 05/18/2015

Associated revisions

Revision f898ec1e (diff)
Added by Ken Dreyer almost 9 years ago

debian: set rest-bench-dbg ceph-test-dbg dependencies

Debian's debug packages ought to depend on their respective binary
packages. This was the case for many of our ceph packages, but it was
not the case for ceph-test-dbg or rest-bench-dbg.

Add the dependencies on the relevant binary packages, pinned to
"= ${binary:Version}" per convention.

http://tracker.ceph.com/issues/11673 Fixes: #11673

Signed-off-by: Ken Dreyer <>

Revision c632ef13 (diff)
Added by Ken Dreyer almost 9 years ago

debian: set rest-bench-dbg ceph-test-dbg dependencies

Debian's debug packages ought to depend on their respective binary
packages. This was the case for many of our ceph packages, but it was
not the case for ceph-test-dbg or rest-bench-dbg.

Add the dependencies on the relevant binary packages, pinned to
"= ${binary:Version}" per convention.

http://tracker.ceph.com/issues/11673 Fixes: #11673

Signed-off-by: Ken Dreyer <>
(cherry picked from commit f898ec1e4e3472b0202280f09653a769fc62c8d3)

Revision 344328de (diff)
Added by Ken Dreyer almost 9 years ago

debian: set rest-bench-dbg ceph-test-dbg dependencies

Debian's debug packages ought to depend on their respective binary
packages. This was the case for many of our ceph packages, but it was
not the case for ceph-test-dbg or rest-bench-dbg.

Add the dependencies on the relevant binary packages, pinned to
"= ${binary:Version}" per convention.

http://tracker.ceph.com/issues/11673 Fixes: #11673

Signed-off-by: Ken Dreyer <>
(cherry picked from commit f898ec1e4e3472b0202280f09653a769fc62c8d3)

History

#1 Updated by Ken Dreyer almost 9 years ago

  • Status changed from New to Fix Under Review

#2 Updated by Ken Dreyer almost 9 years ago

(I wonder if lintian would have caught this. https://lintian.debian.org/tags/dbg-package-missing-depends.html)

#3 Updated by Ken Dreyer almost 9 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to hammer,firefly

This bug is present in both Hammer and Firefly (although #11376 was only backported to Hammer, so Teuthology is only going to catch it in Hammer.)

#4 Updated by Yuri Weinstein almost 9 years ago

Still in hammer release
Run:http://pulpito-rdu.front.sepia.ceph.com/teuthology-2015-05-19_23:20:01-upgrade:client-upgrade-master-distro-basic-typica/
Job: 21453

#5 Updated by Yuri Weinstein almost 9 years ago

  • Severity changed from 3 - minor to 1 - critical

#6 Updated by Yuri Weinstein almost 9 years ago

  • ceph-qa-suite upgrade/client-upgrade added

#7 Updated by Nathan Cutler almost 9 years ago

  • Description updated (diff)

#8 Updated by Nathan Cutler almost 9 years ago

  • Description updated (diff)

#9 Updated by Nathan Cutler almost 9 years ago

  • Description updated (diff)

#10 Updated by Loïc Dachary almost 9 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF