Repository navigation
build: fix rgw file ownership in rpm and deb packaging - #70761
Conversation
There was a problem hiding this comment.
Pull request overview
Aligns Debian and RPM ownership of RGW utilities and documentation.
Changes:
- Moves RGW maintenance man pages into
ceph-common. - Adds Debian upgrade relationships for older
radosgwpackages. - Deduplicates RPM file ownership.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
debian/radosgw.install |
Removes transferred man pages. |
debian/control |
Adds package migration relationships. |
debian/ceph-common.install |
Installs transferred man pages. |
ceph.spec.in |
Reassigns RGW utility ownership. |
a97346f to
2432791
Compare
idryomov
left a comment
There was a problem hiding this comment.
Some things to correct in "ceph.spec.in: fix rgw file ownership between ceph-common and radosgw" commit message:
The debian half made the same mistake and broke the build
It was an install-time, not a build-time breakage.
the rpm half builds fine and fails later, at install
AFAIK the RPM side was fine (both build and install) -- only Ubuntu jobs were affected in teuthology.
| %{_bindir}/rgw-policy-check | ||
| %{_bindir}/rgw-policy-test |
There was a problem hiding this comment.
rgw-policy-check and rgw-policy-test belong to ceph-common on the Debian side -- any reason to continue carrying this inconsistency given that Replaces and Breaks is touched anyway?
There was a problem hiding this comment.
also moved rgw-policy-check/rgw-policy-test into ceph-common on the rpm side
yes, the debian breakage is
i jumped to the conclusion before verifying it just because it was surprising to me that a file can be installed into different packages multiple times! so i read rpm's source. and found that rpm does accept the duplicate silently at build and install. only the Ubuntu/deb jobs would have shown anything. commit message updated. |
2432791 to
88310b4
Compare
|
changelog:
|
Yeah, I mentioned that difference in #70729 (comment). |
ahh, i missed the first half of your message. =( |
|
Ideally this needs to go through the RGW suite, @ivancich can you arrange that? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
quite a few changes have been applied in #70732, which was merged yesterday. i am rebasing against main HEAD. |
ceph-common.install and radosgw.install both list usr/share/man/man8/ceph-diff-sorted.8, so both packages ship it. it is the only path in the archive with two owners. Contents-amd64 from the noble build of fcaedc7: usr/share/man/man8/ceph-diff-sorted.8.gz admin/ceph-common,admin/radosgw radosgw depends on ceph-common, so ceph-common unpacks first and owns the file. and radosgw declares no Replaces, Breaks or Conflicts at all, so nothing gives dpkg permission to overwrite it: dpkg: error processing archive radosgw...deb (--unpack): trying to overwrite '/usr/share/man/man8/ceph-diff-sorted.8.gz', which is also in package ceph-common 21.3.0-1736-gfcaedc72-1noble the build never complains. dh_install copies out of debian/tmp instead of moving, and only fails when a listed pattern matches nothing at all, so a path claimed twice packages fine. we build at compat 12, where --fail-missing is gone. 855a5ed first listed the same rgw paths in both files, cdbd4da reverted its debian half, and 8a2914a redid it, taking usr/bin/ceph-diff-sorted, rgw-orphan-list.8 and rgw-restore-bucket-index.8 out of radosgw. ceph-diff-sorted.8 stayed behind. drop it too: rgw-orphan-list execs ceph-diff-sorted and both live in ceph-common now, so the man page belongs with them. raise the radosgw bound in ceph-common's Replaces and Breaks while here. different problem: radosgw used to own usr/bin/ceph-diff-sorted, ceph-diff-sorted.8, rgw-orphan-list.8 and rgw-restore-bucket-index.8, all four belong to ceph-common now, and at 12.0.3 dpkg will not take them from an installed tentacle radosgw. 21.0.0 does. it does not cover a same-version radosgw, so it is no substitute for dropping the duplicate. Signed-off-by: Kefu Chai <[email protected]>
rpm ships rgw-policy-check and rgw-policy-test in radosgw, debian ships them in ceph-common. which package carries the two tools depends on the distro. 2886431 added rgw-policy-check to %files radosgw and gave it no debian packaging. 804274e added the debian side to close that gap but put it in ceph-common, and that is where the two parted. 5a176d3 added rgw-policy-test later, following whatever each side already did, so it inherited the split. the other rgw tools agree by now. 855a5ed duplicated them into %files radosgw although %files common already had them, 55b27ea removed that set again, and ceph-diff-sorted, rgw-gap-list, rgw-gap-list-comparator, rgw-orphan-list and rgw-restore-bucket-index now sit in ceph-common on both sides. rgw-policy-check and rgw-policy-test were never in that set. ceph-common is where 637d461 put the rest of them, and the reason holds here too: these are operator tools, and radosgw depends on ceph-common rather than the other way round, so anything kept in radosgw is out of reach of a ceph-common only install. move them there on the rpm side as well. Signed-off-by: Kefu Chai <[email protected]>
88310b4 to
c4eb78c
Compare
|
pr testing completed and got approval from @ivancich. more data : https://tracker.ceph.com/issues/79049 |
@anrao19 ack. thanks! |
Follow-up to #70729: that reverted the debian half of 855a5ed, this reverts the rpm half, and fixes an older rgw man page/binary split on the deb side while we're here.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.