rgw/dedup: Grant dedup process full RGW permissions.#65783
Conversation
There was a problem hiding this comment.
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.
|
jenkins test make check arm64 |
|
jenkins test make check |
36febae to
aafb8cf
Compare
There was a problem hiding this comment.
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.
ce6e576 to
9518bd6
Compare
There was a problem hiding this comment.
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.
| f->dump_unsigned("Bad default storage class objs (should be identical to ingress_obj)", | ||
| this->default_storage_class_objs); |
There was a problem hiding this comment.
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'.
| f->dump_unsigned("Bad default storage class objs bytes (should be identical to ingress_obj_bytes)", | ||
| this->default_storage_class_objs_bytes); |
There was a problem hiding this comment.
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'.
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>
9518bd6 to
a984ad8
Compare
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| 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) { |
There was a problem hiding this comment.
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.
| 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; |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
@benhanokh Is this PR associated with this tracker (https://tracker.ceph.com/issues/72947)? If so, can you link them to each other? |
|
PR testing completed and approved by @ivancich. Details : https://tracker.ceph.com/issues/73372 |
|
Please merge |
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
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.