Skip to content

build: fix rgw file ownership in rpm and deb packaging - #70761

Merged
tchaikov merged 2 commits into
ceph:mainfrom
tchaikov:wip-rgw-packaging
Aug 10, 2026
Merged

tchaikov merged 2 commits into
ceph:mainfrom
tchaikov:wip-rgw-packaging

Conversation

@tchaikov

@tchaikov tchaikov commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Copilot AI balanced review requested due to automatic review settings August 1, 2026 12:08
@tchaikov
tchaikov requested a review from a team as a code owner August 1, 2026 12:08
@tchaikov tchaikov changed the title Wip rgw packaging build: fix rgw file ownership in rpm and deb packaging Aug 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 radosgw packages.
  • 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.

Comment thread ceph.spec.in Resolved
@tchaikov
tchaikov requested a review from ivancich August 1, 2026 12:14
@tchaikov
tchaikov force-pushed the wip-rgw-packaging branch from a97346f to 2432791 Compare August 1, 2026 12:23
Copilot AI review requested due to automatic review settings August 1, 2026 12:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@tchaikov

tchaikov commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor Author

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread ceph.spec.in Outdated
Comment on lines 2639 to 2640
%{_bindir}/rgw-policy-check
%{_bindir}/rgw-policy-test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also moved rgw-policy-check/rgw-policy-test into ceph-common on the rpm side

@tchaikov

tchaikov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

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.

yes, the debian breakage is dh_install failing during the packaging build's install step, not when building the ceph tree. i've reworded it that way.

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.

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.

Copilot AI review requested due to automatic review settings August 3, 2026 04:03
@tchaikov
tchaikov force-pushed the wip-rgw-packaging branch from 2432791 to 88310b4 Compare August 3, 2026 04:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@tchaikov

tchaikov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

changelog:

  • reworded the commit message: s/build/install/
  • moved rgw-policy-check/rgw-policy-test into ceph-common on the rpm side

@tchaikov
tchaikov requested a review from idryomov August 3, 2026 04:08
@tchaikov

tchaikov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@idryomov

idryomov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

it was surprising to me that a file can be installed into different packages multiple times

Yeah, I mentioned that difference in #70729 (comment).

@tchaikov

tchaikov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

it was surprising to me that a file can be installed into different packages multiple times

Yeah, I mentioned that difference in #70729 (comment).

ahh, i missed the first half of your message. =(

@idryomov

idryomov commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

built at https://shaman.ceph.com/builds/ceph/wip-pr-70761-kefu-2/

Ideally this needs to go through the RGW suite, @ivancich can you arrange that?

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@tchaikov

tchaikov commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

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]>
Copilot AI review requested due to automatic review settings August 5, 2026 04:21
@tchaikov
tchaikov force-pushed the wip-rgw-packaging branch from 88310b4 to c4eb78c Compare August 5, 2026 04:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@tchaikov

tchaikov commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@anrao19

anrao19 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@tchaikov

Copy link
Copy Markdown
Contributor Author

@tchaikov
tchaikov merged commit 4c022a9 into ceph:main Aug 10, 2026
7 checks passed
@tchaikov
tchaikov deleted the wip-rgw-packaging branch August 10, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants