Skip to content

mgr/cephadm: Add degraded namespace flag to NVMEoF spec file - #69632

Merged
gbregman merged 1 commit into
ceph:mainfrom
gbregman:main
Jun 23, 2026
Merged

gbregman merged 1 commit into
ceph:mainfrom
gbregman:main

Conversation

@gbregman

Copy link
Copy Markdown
Contributor

mgr/cephadm: Add degraded namespace flag to NVMEoF spec file

Fixes: https://tracker.ceph.com/issues/77556

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

This PR extends Ceph’s cephadm NVMeoF service support by adding a new spec/config option (degrade_namespace_on_kmip_error) and wiring it through to the generated ceph-nvmeof.conf, along with updating unit-test expectations accordingly.

Changes:

  • Add degrade_namespace_on_kmip_error to NvmeofServiceSpec (init + validation).
  • Render the new option into the NVMeoF gateway config template.
  • Update NVMeoF service tests to expect the new config line.

Reviewed changes

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

File Description
src/python-common/ceph/deployment/service_spec.py Adds the new NVMeoF spec field and validates it.
src/pybind/mgr/cephadm/templates/services/nvmeof/ceph-nvmeof.conf.j2 Emits the new flag into the generated gateway config.
src/pybind/mgr/cephadm/tests/services/test_nvmeof.py Updates expected config output in tests to include the new flag.

@gbregman
gbregman removed request for a team and adk3798 June 22, 2026 12:51
@gbregman
gbregman marked this pull request as draft June 22, 2026 12:51
@gbregman
gbregman marked this pull request as ready for review June 22, 2026 15:23
@gbregman
gbregman requested review from a team, adk3798 and Copilot June 22, 2026 15: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 3 out of 3 changed files in this pull request and generated 1 comment.

@VallariAg VallariAg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@gbregman
gbregman removed the request for review from adk3798 June 23, 2026 13:24
@gbregman
gbregman merged commit e317e86 into ceph:main Jun 23, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log e317e86c8e5a8bfefc78a922b0c6baa75a6be0ac^..e317e86c8e5a8bfefc78a922b0c6baa75a6be0ac

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/28029542675

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.

3 participants