Skip to content

mgr/nvmeof: change pool application to nvmeof-meta instead of rbd - #70035

Merged
Hezko merged 1 commit into
ceph:mainfrom
Hezko:fix-rbd-application
Jul 22, 2026
Merged

Hezko merged 1 commit into
ceph:mainfrom
Hezko:fix-rbd-application

Conversation

@Hezko

@Hezko Hezko commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

add application nvmeof-meta to .nvmeof pool on pool creation.

[x@xxx ~]# ceph osd pool application get .nvmeof
{
    "nvmeof-meta": {},
    "rbd": {}
}

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 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.

@Hezko
Hezko requested a review from NitzanMordhai July 8, 2026 09:55
@Hezko Hezko self-assigned this Jul 8, 2026
@github-actions github-actions Bot added the pybind label Jul 8, 2026
@Hezko
Hezko requested a review from idryomov July 8, 2026 10:00
@Hezko
Hezko force-pushed the fix-rbd-application branch from 9c9575e to b90eef6 Compare July 8, 2026 10:04
@Hezko
Hezko force-pushed the fix-rbd-application branch 3 times, most recently from 237a067 to 8bd5efc Compare July 9, 2026 07:26
@idryomov idryomov changed the title mgr/nvmeof: change pool application to nvmeof in addition to rbd mgr/nvmeof: change pool application to nvmeof instead of rbd Jul 9, 2026

@NitzanMordhai NitzanMordhai 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.

@Hezko i added few comments

Comment thread src/pybind/mgr/nvmeof/module.py Resolved
Comment thread src/pybind/mgr/nvmeof/module.py Resolved
@Hezko
Hezko force-pushed the fix-rbd-application branch from 8bd5efc to f77d143 Compare July 19, 2026 19:06
@Hezko
Hezko requested a review from NitzanMordhai July 19, 2026 19:07

@NitzanMordhai NitzanMordhai 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.

LGTM

@Hezko
Hezko force-pushed the fix-rbd-application branch from f77d143 to 59b64fa Compare July 20, 2026 08:57
@idryomov

Copy link
Copy Markdown
Contributor

@Hezko Has nvme application tag (instead of e.g. nvme-meta to make it clear that this pool isn't expected to store any user data) been agreed on with @caroav and the team?

@Hezko
Hezko force-pushed the fix-rbd-application branch from 59b64fa to 1d083b2 Compare July 20, 2026 10:07
@Hezko

Hezko commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

@Hezko Has nvme application tag (instead of e.g. nvme-meta to make it clear that this pool isn't expected to store any user data) been agreed on with @caroav and the team?

@idryomov yes we agreed to have the nvmeof application tag. do you suggest to change it to nvmeof-meta? I am not sure I fully understood what you meant :)

@caroav

caroav commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@Hezko Has nvme application tag (instead of e.g. nvme-meta to make it clear that this pool isn't expected to store any user data) been agreed on with @caroav and the team?

@idryomov yes we agreed to have the nvmeof application tag. do you suggest to change it to nvmeof-meta? I am not sure I fully understood what you meant :)

@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

@Hezko
Hezko force-pushed the fix-rbd-application branch from 1d083b2 to ec0e4de Compare July 21, 2026 10:02
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"

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.

The test needs to be adjusted for the new application tag as well.

Copilot AI review requested due to automatic review settings July 21, 2026 18:54
@Hezko
Hezko force-pushed the fix-rbd-application branch from ec0e4de to 9f2979d Compare July 21, 2026 18:54

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

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.

Comment thread src/pybind/mgr/nvmeof/module.py Resolved
@Hezko Hezko changed the title mgr/nvmeof: change pool application to nvmeof instead of rbd mgr/nvmeof: change pool application to nvmeof-meta instead of rbd Jul 21, 2026

@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.

mgr/nvmeof: change pool application to nvmeof-meta instead of rbd

You have updated the PR title, but not the commit title.

@Hezko
Hezko force-pushed the fix-rbd-application branch from 9f2979d to 470a10b Compare July 21, 2026 19:46
@Hezko
Hezko force-pushed the fix-rbd-application branch from 470a10b to 1f0dcc4 Compare July 21, 2026 20:04
Copilot AI review requested due to automatic review settings July 21, 2026 20:04
@Hezko
Hezko force-pushed the fix-rbd-application branch from 1f0dcc4 to a2057e2 Compare July 21, 2026 20:05

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 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 says nvmeof, which would give a misleading diagnostic.
    assert app_enable_calls[0].get("app") == "nvmeof-meta", "Expected 'nvmeof-meta' application to be enabled"

Comment thread src/pybind/mgr/nvmeof/module.py Resolved
Copilot AI review requested due to automatic review settings July 21, 2026 20:07

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 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 .nvmeof already exists (including after an upgrade), or if pool creation succeeds but application enabling fails and is retried, this code never enables nvmeof-meta; that also conflicts with the PR's example of a legacy rbd-tagged pool gaining the new tag. Call _enable_application unconditionally after the existence check and update the existing-pool test accordingly.
            self._enable_application(POOL_NAME, 'nvmeof-meta')

@Hezko
Hezko merged commit 12f33ad into ceph:main Jul 22, 2026
6 checks passed
@Hezko
Hezko deleted the fix-rbd-application branch July 22, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants