Skip to content

mgr_module tox failure fix - #67954

Merged
batrick merged 3 commits into
ceph:mainfrom
NitzanMordhai:wip-nitzan-mgr-module-tox-failure-fix
Mar 24, 2026
Merged

batrick merged 3 commits into
ceph:mainfrom
NitzanMordhai:wip-nitzan-mgr-module-tox-failure-fix

Conversation

@NitzanMordhai

@NitzanMordhai NitzanMordhai commented Mar 23, 2026 •

Copy link
Copy Markdown
Contributor

tox failure didn't catch during PR #67327 ci tested

flake8:

mgr_module.py:680:1: E302 expected 2 blank lines, found 1
mgr_module.py:854:1: E302 expected 2 blank lines, found 1

mypy:

/root/GIT/ceph/src/python-common/ceph/deployment/service_spec.py: note: In member "getnewargs" of class "ServiceSpec":
/root/GIT/ceph/src/python-common/ceph/deployment/service_spec.py:939: error: Function is missing a return type annotation [no-untyped-def]
mgr_module.py: note: In member "init" of class "MgrRootHandler":
mgr_module.py:681: error: Function is missing a type annotation [no-untyped-def]
mgr_module.py: note: In member "emit" of class "MgrRootHandler":
mgr_module.py:687: error: Function is missing a type annotation [no-untyped-def]
mgr_module.py: note: In member "_configure_logging" of class "MgrModuleLoggingMixin":
mgr_module.py:734: error: "MgrModuleLoggingMixin" has no attribute "module_name" [attr-defined]
mgr_module.py: note: In member "getLogger" of class "MgrModuleLoggingMixin":
mgr_module.py:849: error: Function is missing a type annotation [no-untyped-def]

unit tests:

ERROR cephadm/tests/test_ssh.py::TestWithSSH::test_offline - AttributeError: 'CephadmOrchestrator' object has no attribute '_module_logger'
ERROR cephadm/tests/test_ssh.py::TestWithSSH::test_ssh_remote_cmds_execution - AttributeError: 'CephadmOrchestrator' object has no attribute '_module_logger'

Signed-off-by: Nitzan Mordechai [email protected]

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.

After changes of PR ceph#67327

Signed-off-by: Nitzan Mordechai <[email protected]>
@batrick

batrick commented Mar 23, 2026

Copy link
Copy Markdown
Member
=================================== FAILURES ===================================
_____________________________ test_handle_command ______________________________

    def test_handle_command():
        cmd = {
            'prefix': 'orch daemon add',
            'daemon_type': 'mon',
            'placement': 'smithi044:[v2:172.21.15.44:3301,v1:172.21.15.44:6790]=c',
        }
        m = OrchestratorCli('orchestrator', 0, 0)
        r = m._handle_command(None, cmd)
>       assert r == HandleCommandResult(
            retval=2, stdout='', stderr='No orchestrator configured (try `ceph orch set backend`)')
E       AssertionError: assert HandleCommand...et backend`)') == HandleCommand...et backend`)')
E         
E         Omitting 2 identical items, use -vv to show
E         Differing attributes:
E         ['retval']
E         
E         Drill down into differing attribute retval:
E           retval: -2 != 2
E         Use -v to get more diff

orchestrator/tests/test_orchestrator.py:145: AssertionError

@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

That one looks like #67652 issue, will add new commit to fix it soon

@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-module-tox-failure-fix branch from 767e01c to dede880 Compare March 24, 2026 11:50
@NitzanMordhai
NitzanMordhai requested a review from rkachach March 24, 2026 11:52
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@rkachach can you please review the test changes?

@batrick
batrick merged commit f665b96 into ceph:main Mar 24, 2026
6 checks passed
@tchaikov

tchaikov commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

tox failure didn't catch during PR #67327 ci tested

it did. see #67327. unfortunately, the jenkins jobs were trimmed. but the red cross is still there:
image

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.

5 participants