Repository navigation
umbrella: mgr/cephadm: don't mute auth health warnings on clusters with auth_allowed_ciphers if already aes256k-only - #73464
Conversation
f868d4f to
457a7cf
Compare
If the cluster already allows only aes256k, leave the setting unchanged so the weaker aes cipher is not re-enabled. Fixes: https://tracker.ceph.com/issues/81826 Signed-off-by: Shweta Bhosale <[email protected]> (cherry picked from commit fdcad23) Conflicts: src/pybind/mgr/cephadm/tests/test_upgrade.py - due to import change src/pybind/mgr/cephadm/utils.py - due to blank lines
Skip the mutes when auth_allowed_ciphers is already aes256k-only and none of the warnings is currently raised. Fixes: https://tracker.ceph.com/issues/81959 Signed-off-by: Shweta Bhosale <[email protected]> (cherry picked from commit d972708) Conflicts: src/pybind/mgr/cephadm/upgrade.py - due to some checks moved to function in main
457a7cf to
1ab2a6d
Compare
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #73464 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 823b320 mgr/cephadm: skip setting auth_allowed_ciphers if already aes256k-only | PR #72911 | fdcad23 mgr/cephadm: skip setting auth_allowed_ciphers if already aes256k-only |
| 1ab2a6d mgr/cephadm: don't mute auth health warnings on already-secure clusters | d972708 mgr/cephadm: don't mute auth health warnings on already-secure clusters |
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 823b320 (cherry-pick of fdcad23)
Affected File(s)
src/pybind/mgr/cephadm/tests/test_upgrade.pysrc/pybind/mgr/cephadm/utils.py
Range Diff
Click to expand
--- Original (fdcad239)
+++ Backport (823b320c)
@@ -5,3 +5,8 @@
Fixes: https://tracker.ceph.com/issues/81826
Signed-off-by: Shweta Bhosale <[email protected]>
+(cherry picked from commit fdcad239b7d4d32441217fa99c385a4c68360df8)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/tests/test_upgrade.py - due to import change
+ src/pybind/mgr/cephadm/utils.py - due to blank lines
================================================================================
RANGE DIFF
================================================================================
1: fdcad239b7d ! 1: 823b320cedb mgr/cephadm: skip setting auth_allowed_ciphers if already aes256k-only
@@ Commit message
Fixes: https://tracker.ceph.com/issues/81826
Signed-off-by: Shweta Bhosale <[email protected]>
+ (cherry picked from commit fdcad239b7d4d32441217fa99c385a4c68360df8)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/tests/test_upgrade.py - due to import change
+ src/pybind/mgr/cephadm/utils.py - due to blank lines
## src/pybind/mgr/cephadm/tests/test_upgrade.py ##
@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: from cephadm.upgrade import (
@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: from cephadm.upgrade import (
+ allowed_ciphers_are_aes256k_only,
+ auth_allowed_cipher_names_from_mon_map,
+)
- from orchestrator import OrchestratorError, DaemonDescription, HostSpec, daemon_type_to_service
+ from orchestrator import OrchestratorError, DaemonDescription
from .fixtures import _run_cephadm, wait, with_host, with_service, \
receive_agent_metadata, async_side_effect
-@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: def test_to_upgrade_rgw_listener_batching(
-
- assert proceed is True
- assert [d.name() for d, _ in to_upgrade] == expected
+@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: def test_upgrade_start_blocks_on_insufficient_cpu_isa_level(cephadm_module: Ceph
+ assert wait(cephadm_module, cephadm_module.upgrade_start(
+ '', '21.2.0', host_placement='test2')
+ ).startswith('Initiating upgrade')
+
+
[email protected](
@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: def test_to_upgrade_rgw_listener_b
## src/pybind/mgr/cephadm/upgrade.py ##
@@ src/pybind/mgr/cephadm/upgrade.py: from cephadm.utils import (
- ALL_GATEWAY_TYPES,
+ GATEWAY_TYPES,
ALLOWED_CIPHERS,
SERVICE_CIPHER,
+ allowed_ciphers_are_aes256k_only,
@@ src/pybind/mgr/cephadm/upgrade.py: from cephadm.utils import (
from orchestrator import OrchestratorError, DaemonDescription, DaemonDescriptionStatus, daemon_type_to_service
@@ src/pybind/mgr/cephadm/upgrade.py: class CephadmUpgrade:
- return True, self._limit_gateway_upgrade_batch(to_upgrade)
+ return True, to_upgrade
+ def _maybe_set_cephx_allowed_ciphers(self) -> None:
+ """Set auth_allowed_ciphers for mixed-version upgrade, unless already aes256k-only."""
@@ src/pybind/mgr/cephadm/utils.py: ROTATION_CIPHER = 'aes256k'
+ return names == {ROTATION_CIPHER}
+
+
- DEFAULT_SSH_CONFIG = """
- Host *
- User root
+ class ContainerInspectInfo(NamedTuple):
+ image_id: str
+ ceph_version: Optional[str]Deviation in Backport 1ab2a6d (cherry-pick of d972708)
Affected File(s)
src/pybind/mgr/cephadm/upgrade.pysrc/pybind/mgr/cephadm/utils.py
Range Diff
Click to expand
--- Original (d972708a)
+++ Backport (1ab2a6d0)
@@ -6,3 +6,7 @@
Fixes: https://tracker.ceph.com/issues/81959
Signed-off-by: Shweta Bhosale <[email protected]>
+(cherry picked from commit d972708af84ad40d22da19958a60c19f8bbd835b)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/upgrade.py - due to some checks moved to function in main
================================================================================
RANGE DIFF
================================================================================
1: d972708af84 ! 1: 1ab2a6d0ce3 mgr/cephadm: don't mute auth health warnings on already-secure clusters
@@ Commit message
Fixes: https://tracker.ceph.com/issues/81959
Signed-off-by: Shweta Bhosale <[email protected]>
+ (cherry picked from commit d972708af84ad40d22da19958a60c19f8bbd835b)
+
+ Conflicts:
+ src/pybind/mgr/cephadm/upgrade.py - due to some checks moved to function in main
## src/pybind/mgr/cephadm/tests/test_upgrade.py ##
@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: from ceph.deployment.service_spec import PlacementSpec, ServiceSpec
@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: from cephadm.utils import (
auth_allowed_cipher_names_from_mon_map,
+ auth_service_cipher_name_from_mon_map,
)
- from orchestrator import OrchestratorError, DaemonDescription, HostSpec, daemon_type_to_service
+ from orchestrator import OrchestratorError, DaemonDescription
from .fixtures import _run_cephadm, wait, with_host, with_service, \
-@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: def test_to_upgrade_rgw_listener_batching(
+@@ src/pybind/mgr/cephadm/tests/test_upgrade.py: def test_upgrade_start_blocks_on_insufficient_cpu_isa_level(cephadm_module: Ceph
pytest.param({'auth_allowed_ciphers': [{'name': 'aes', 'value': 1},
{'name': 'aes256k', 'value': 2}]},
['aes', 'aes256k'], False, id='dump-aes-and-aes256k'),
@@ src/pybind/mgr/cephadm/upgrade.py: class CephadmUpgrade:
def _unmute_upgrade_related_health_warnings(self) -> None:
for health_warning_name in MID_UPGRADE_MUTED_WARNINGS:
@@ src/pybind/mgr/cephadm/upgrade.py: class CephadmUpgrade:
-
- image_settings = self.get_distinct_container_image_settings()
-
+ if self.upgrade_state.hosts is not None:
+ logger.debug(f'Filtering daemons to upgrade by hosts: {self.upgrade_state.hosts}')
+ daemons = [d for d in daemons if d.hostname in self.upgrade_state.hosts]
- if not self.upgrade_state.health_warnings_muted:
- self._mute_upgrade_related_health_warnings()
- self.upgrade_state.health_warnings_muted = True
@@ src/pybind/mgr/cephadm/upgrade.py: class CephadmUpgrade:
+ else:
+ self.upgrade_state.health_warnings_mute_skipped = True
self._save_upgrade_state()
- daemons = self._get_filtered_daemons()
-
+ upgraded_daemon_count: int = 0
+ for daemon_type in CEPH_UPGRADE_ORDER:
## src/pybind/mgr/cephadm/utils.py ##
@@ src/pybind/mgr/cephadm/utils.py: SERVICE_CIPHER = 'aes256k'
@@ src/pybind/mgr/cephadm/utils.py: def allowed_ciphers_are_aes256k_only(cipher_nam
+ return str(name) if name else None
+
+
- DEFAULT_SSH_CONFIG = """
- Host *
- User root
+ class ContainerInspectInfo(NamedTuple):
+ image_id: str
+ ceph_version: Optional[str]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.
|
✅ Audit Override Applied by @batrick. |
|
This PR has been added to wip-yuri10-testing-20261106.171551-umbrella. |
|
This PR has been added to umbrella integration testing by pdonnell started 2026-11-21-05:14. |
backport tracker: https://tracker.ceph.com/issues/82632
backport of #72911
parent tracker: https://tracker.ceph.com/issues/81826
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh