Skip to content

umbrella: mgr/cephadm: don't mute auth health warnings on clusters with auth_allowed_ciphers if already aes256k-only - #73464

Merged
batrick merged 2 commits into
ceph:umbrellafrom
ShwetaBhosale1:wip-82632-umbrella
Nov 24, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
ShwetaBhosale1:wip-82632-umbrella

Conversation

@ShwetaBhosale1

Copy link
Copy Markdown
Contributor

@ShwetaBhosale1
ShwetaBhosale1 requested a review from a team as a code owner November 4, 2026 06:22
@ShwetaBhosale1 ShwetaBhosale1 added this to the umbrella milestone Nov 4, 2026
@github-actions github-actions Bot added the pybind label Nov 4, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Nov 4, 2026
@ShwetaBhosale1
ShwetaBhosale1 force-pushed the wip-82632-umbrella branch 3 times, most recently from f868d4f to 457a7cf Compare November 4, 2026 06:37
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
@ShwetaBhosale1 ShwetaBhosale1 removed the releng-audit-fail Release engineering: failed backport verification audit. label Nov 4, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Nov 4, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@yuriw

yuriw commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri10-testing-20261106.171551-umbrella.

@batrick

batrick commented Nov 21, 2026

Copy link
Copy Markdown
Member

@batrick
batrick merged commit 77e8b7f into ceph:umbrella Nov 24, 2026
23 of 25 checks passed
yuriw added a commit that referenced this pull request Nov 30, 2026
Pick up 10 PRs merged since the last changelog generation
(#73625 #73464 #72913 #72967 #72345 #74280 #73453 #73259 #73261 #72691).

Signed-off-by: Yuri Weinstein <[email protected]>
yuriw added a commit that referenced this pull request Nov 30, 2026
Pick up 10 PRs merged since the last changelog generation
(#73625 #73464 #72913 #72967 #72345 #74280 #73453 #73259 #73261 #72691).

Assisted-by: Claude-v2.1.332:claude-sonnet-5
Signed-off-by: Yuri Weinstein <[email protected]>
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.

4 participants