Project

General

Profile

Actions

Bug #55758

closed

ModuleNotFoundError: No module named 'object_format'

Added by Venky Shankar almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Some tests are failing with the following traceback in ceph-mgr

2022-05-25T01:13:21.133+0000 7fb6aadb9e80 -1 mgr[py] Traceback (most recent call last):
  File "/usr/share/ceph/mgr/cephadm/__init__.py", line 1, in <module>
    from .module import CephadmOrchestrator
  File "/usr/share/ceph/mgr/cephadm/module.py", line 30, in <module>
    from cephadm.serve import CephadmServe
  File "/usr/share/ceph/mgr/cephadm/serve.py", line 15, in <module>
    import orchestrator
  File "/usr/share/ceph/mgr/orchestrator/__init__.py", line 3, in <module>
    from .module import OrchestratorCli
  File "/usr/share/ceph/mgr/orchestrator/module.py", line 25, in <module>
    from object_format import Format
ModuleNotFoundError: No module named 'object_format'

E.g.: https://pulpito.ceph.com/vshankar-2022-05-24_14:47:38-fs-wip-vshankar-testing-20220523-112412-testing-default-smithi/6847390/

This seems to be introduced with commit

 git show 006c33895f4b
commit 006c33895f4b7559219821bcfafbe82e789e9e41
Author: John Mulligan <jmulligan@redhat.com>
Date:   Mon Mar 14 11:29:50 2022 -0400

    pybind/mgr: start a new object_format.py for general formatting

    Currently, there's some auto-formatting logic in the orchestrator
    module and a lot of ad-hoc formatting scattered around the mgr modules.
    This new module aims to bring some of that together in a central
    location.
    Start by moving the Format enum from the orchestrator.

Probably just requires `object_format' package to be added as a dep.

Actions

Also available in: Atom PDF