Skip to content

rgw/dedup: Grant dedup process full RGW permissions.#65783

Merged
yuvalif merged 1 commit intoceph:mainfrom
benhanokh:dedup_permissions
Oct 12, 2025
Merged

rgw/dedup: Grant dedup process full RGW permissions.#65783
yuvalif merged 1 commit intoceph:mainfrom
benhanokh:dedup_permissions

Conversation

@benhanokh
Copy link
Contributor

@benhanokh benhanokh commented Oct 5, 2025

This is necessary to allow for the creation of intermediate SLAB objects on systems configured with Ceph authentication.

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.

@benhanokh benhanokh requested a review from a team as a code owner October 5, 2025 08:37
@github-actions github-actions bot added the rgw label Oct 5, 2025
@benhanokh benhanokh added the needs-tentacle-backport PRs that need tentacle back-port label Oct 5, 2025
@benhanokh benhanokh self-assigned this Oct 5, 2025
@benhanokh benhanokh requested review from Copilot and removed request for a team October 5, 2025 08:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a permissions issue with the RGW deduplication process by changing the application type from "rgw_dedup" to "rgw" when enabling pool applications. This change ensures the dedup process has full RGW permissions necessary for creating intermediate SLAB objects on systems with Ceph authentication enabled.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@benhanokh
Copy link
Contributor Author

jenkins test make check arm64

@benhanokh
Copy link
Contributor Author

jenkins test make check

Copy link

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@benhanokh benhanokh requested a review from Copilot October 6, 2025 05:16
Copy link

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +314 to +315
f->dump_unsigned("Bad default storage class objs (should be identical to ingress_obj)",
this->default_storage_class_objs);
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

The error message is unclear and doesn't provide actionable information. Consider including both the expected and actual values in the message, such as 'Expected default_storage_class_objs to equal ingress_obj: expected %d, got %d'.

Copilot uses AI. Check for mistakes.
Comment on lines +318 to +319
f->dump_unsigned("Bad default storage class objs bytes (should be identical to ingress_obj_bytes)",
this->default_storage_class_objs_bytes);
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

Similar to the previous message, this error message should include both expected and actual values for better debugging. Consider a format like 'Expected default_storage_class_objs_bytes to equal ingress_obj_bytes: expected %d, got %d'.

Copilot uses AI. Check for mistakes.
This is necessary to allow for the creation of intermediate SLAB objects on systems configured with Ceph authentication.

Remove bogus assert

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2401399

Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
@benhanokh benhanokh requested a review from Copilot October 8, 2025 12:13
Copy link

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@benhanokh benhanokh requested a review from Copilot October 8, 2025 12:52
Copy link

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +313 to +317
if (this->default_storage_class_objs != this->ingress_obj) {
f->dump_unsigned("default storage class objs",
this->default_storage_class_objs);
}
if (this->default_storage_class_objs_bytes != this->ingress_obj_bytes) {
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

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

The replacement of assertions with conditional dumping removes important invariant checks. Consider adding logging to indicate when these conditions occur, as they may represent unexpected states that should be investigated.

Suggested change
if (this->default_storage_class_objs != this->ingress_obj) {
f->dump_unsigned("default storage class objs",
this->default_storage_class_objs);
}
if (this->default_storage_class_objs_bytes != this->ingress_obj_bytes) {
if (this->default_storage_class_objs != this->ingress_obj) {
std::cerr << "[WARN] Unexpected state: default_storage_class_objs (" << this->default_storage_class_objs
<< ") != ingress_obj (" << this->ingress_obj << ")" << std::endl;
f->dump_unsigned("default storage class objs",
this->default_storage_class_objs);
}
if (this->default_storage_class_objs_bytes != this->ingress_obj_bytes) {
std::cerr << "[WARN] Unexpected state: default_storage_class_objs_bytes (" << this->default_storage_class_objs_bytes
<< ") != ingress_obj_bytes (" << this->ingress_obj_bytes << ")" << std::endl;

Copilot uses AI. Check for mistakes.
@benhanokh
Copy link
Contributor Author

jenkins test windows

1 similar comment
@benhanokh
Copy link
Contributor Author

jenkins test windows

@ivancich
Copy link
Member

ivancich commented Oct 9, 2025

@benhanokh Is this PR associated with this tracker (https://tracker.ceph.com/issues/72947)? If so, can you link them to each other?

@anrao19
Copy link
Contributor

anrao19 commented Oct 10, 2025

PR testing completed and approved by @ivancich. Details : https://tracker.ceph.com/issues/73372
@benhanokh , if no further testing is not needed please let me know if this can be merged

@benhanokh
Copy link
Contributor Author

Please merge

@yuvalif yuvalif merged commit f92cc23 into ceph:main Oct 12, 2025
13 checks passed
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.

5 participants