Bug #11673
closedDebian: ceph-test and rest-bench debug packages should require their respective binary packages
0%
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:
<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:
- apt-get updates "ceph" to a newer version with
objectstore-tool
present. - With the
Replaces:
andBreaks:
" changes in #11376, the new "ceph" .deb depends on a newer version of "ceph-test" with theobjectstore-tool
removed, so apt updates that as well. - 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.
Updated by Ken Dreyer about 9 years ago
- Status changed from New to Fix Under Review
PR for "next" : https://github.com/ceph/ceph/pull/4716
Updated by Ken Dreyer about 9 years ago
(I wonder if lintian would have caught this. https://lintian.debian.org/tags/dbg-package-missing-depends.html)
Updated by Ken Dreyer about 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.)
Updated by Yuri Weinstein about 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
Updated by Yuri Weinstein about 9 years ago
- Severity changed from 3 - minor to 1 - critical
Updated by Yuri Weinstein about 9 years ago
- ceph-qa-suite upgrade/client-upgrade added
Updated by Loïc Dachary almost 9 years ago
- Status changed from Pending Backport to Resolved