Repository navigation
mgr/nvmeof: change pool application to nvmeof-meta instead of rbd - #70035
Conversation
9c9575e to
b90eef6
Compare
237a067 to
8bd5efc
Compare
NitzanMordhai
left a comment
There was a problem hiding this comment.
@Hezko i added few comments
8bd5efc to
f77d143
Compare
f77d143 to
59b64fa
Compare
59b64fa to
1d083b2
Compare
@idryomov yes we agreed to have the |
@Hezko I can see a value in making if nvmeof-meta to make it clear that this pool isn't expected to store any user data |
1d083b2 to
ec0e4de
Compare
| app_enable_calls = [c for c in calls if c.get("prefix") == "osd pool application enable"] | ||
| assert len(app_enable_calls) == 1, "Expected one application enable call" | ||
|
|
||
| assert app_enable_calls[0].get("app") == "nvmeof", "Expected 'nvmeof' application to be enabled" |
There was a problem hiding this comment.
The test needs to be adjusted for the new application tag as well.
ec0e4de to
9f2979d
Compare
There was a problem hiding this comment.
Pull request overview
Updates .nvmeof pool creation to use an NVMe-oF application label instead of RBD initialization.
Changes:
- Generalizes pool application enablement.
- Removes RBD pool initialization.
- Updates unit tests for pool creation and application enablement.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/pybind/mgr/nvmeof/module.py |
Revises .nvmeof pool setup. |
src/pybind/mgr/nvmeof/tests/test_nvmeof_module.py |
Updates pool setup tests. |
idryomov
left a comment
There was a problem hiding this comment.
mgr/nvmeof: change pool application to nvmeof-meta instead of rbd
You have updated the PR title, but not the commit title.
9f2979d to
470a10b
Compare
470a10b to
1f0dcc4
Compare
Signed-off-by: Tomer Haskalovitch <[email protected]>
1f0dcc4 to
a2057e2
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 1 comment.
Comments suppressed due to low confidence (1)
src/pybind/mgr/nvmeof/tests/test_nvmeof_module.py:66
- The assertion checks for
nvmeof-meta, but its failure message saysnvmeof, which would give a misleading diagnostic.
assert app_enable_calls[0].get("app") == "nvmeof-meta", "Expected 'nvmeof-meta' application to be enabled"
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.
Comments suppressed due to low confidence (1)
src/pybind/mgr/nvmeof/module.py:49
- Keep application tagging outside the creation-only branch. If
.nvmeofalready exists (including after an upgrade), or if pool creation succeeds but application enabling fails and is retried, this code never enablesnvmeof-meta; that also conflicts with the PR's example of a legacyrbd-tagged pool gaining the new tag. Call_enable_applicationunconditionally after the existence check and update the existing-pool test accordingly.
self._enable_application(POOL_NAME, 'nvmeof-meta')
add application
nvmeof-metato.nvmeofpool on pool creation.fixes: https://tracker.ceph.com/issues/77694
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.