Repository navigation
umbrella: cephadm: disable/enable NVMe-oF gateways during host maintenance - #70415
Conversation
f4218d6 to
d17082f
Compare
Automatically run nvme-gw disable before stopping daemons on maintenance enter and nvme-gw enable after daemons restart on maintenance exit so gateways fail over in a controlled way. Signed-off-by: Alexander Indenbaum <[email protected]> (cherry picked from commit 048d253) Conflicts: src/pybind/mgr/cephadm/tests/test_cephadm.py - import cephadmNoImage from cephadm.utils in the test module; on this branch the test file imported only SpecialHostLabels (cephadmNoImage was added to this import on main by a separate change), so the cherry-picked test referenced an undefined name.
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #70415 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 56713f6 cephadm: disable/enable NVMe-oF gateways during host maintenance | PR #69650 | 048d253 cephadm: disable/enable NVMe-oF gateways during host maintenance |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 56713f6 (cherry-pick of 048d253)
Affected File(s)
src/pybind/mgr/cephadm/tests/test_cephadm.py
Range Diff
Click to expand
--- Original (048d2534)
+++ Backport (56713f68)
@@ -5,3 +5,11 @@
gateways fail over in a controlled way.
Signed-off-by: Alexander Indenbaum <[email protected]>
+(cherry picked from commit 048d2534a6f63635aca79ad62b327cc38f0f2df4)
+
+Conflicts:
+ src/pybind/mgr/cephadm/tests/test_cephadm.py
+- import cephadmNoImage from cephadm.utils in the test module; on this
+ branch the test file imported only SpecialHostLabels (cephadmNoImage
+ was added to this import on main by a separate change), so the
+ cherry-picked test referenced an undefined name.
================================================================================
RANGE DIFF
================================================================================
1: 048d2534a6f ! 1: 56713f68574 cephadm: disable/enable NVMe-oF gateways during host maintenance
@@ Commit message
gateways fail over in a controlled way.
Signed-off-by: Alexander Indenbaum <[email protected]>
+ (cherry picked from commit 048d2534a6f63635aca79ad62b327cc38f0f2df4)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/tests/test_cephadm.py
+ - import cephadmNoImage from cephadm.utils in the test module; on this
+ branch the test file imported only SpecialHostLabels (cephadmNoImage
+ was added to this import on main by a separate change), so the
+ cherry-picked test referenced an undefined name.
## src/pybind/mgr/cephadm/module.py ##
@@ src/pybind/mgr/cephadm/module.py: Then run the following:
@@ src/pybind/mgr/cephadm/module.py: Then run the following:
self.inventory._inventory[hostname] = tgt_host
## src/pybind/mgr/cephadm/tests/test_cephadm.py ##
+@@ src/pybind/mgr/cephadm/tests/test_cephadm.py: from cephadm.inventory import (
+ )
+ from cephadm.services.osd import OSD, OSDRemovalQueue, OsdIdClaims
+ from cephadm.services.nvmeof import NvmeofService
+-from cephadm.utils import SpecialHostLabels
++from cephadm.utils import SpecialHostLabels, cephadmNoImage
+
+ try:
+ from typing import List
@@ src/pybind/mgr/cephadm/tests/test_cephadm.py: class TestCephadm(object):
assert cephadm_module.inventory._inventory[hostname]['status'] == 'maintenance'How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
jenkins test api |
|
/audit override |
|
✅ Audit Override Applied by @rkachach. |
|
This PR has been added to wip-yuri9-testing-20260729.135117-umbrella. |
backport tracker: https://tracker.ceph.com/issues/78522
backport of #69650
parent tracker: https://tracker.ceph.com/issues/77631
Checklist