Project

General

Profile

Actions

Bug #38627

closed

insights is not Python 3 compatible

Added by Sebastian Wagner about 5 years ago. Updated almost 5 years ago.

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

0%

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

Description

/src/scripts/run_mypy.sh revealed some type errors in the insights module:

pybind/mgr/insights/module.py: note: In member "do_prune_health" of class "Module":
pybind/mgr/insights/module.py:298: error: Name 'errno' is not defined
pybind/mgr/insights/module.py: note: In member "testing_set_now_time_offset" of class "Module":
pybind/mgr/insights/module.py:310: error: Name 'long' is not defined
pybind/mgr/insights/module.py: note: In member "handle_command" of class "Module":
pybind/mgr/insights/module.py:320: error: Name 'cmd' is not defined

Especially "Name 'long' is not defined" looks like a Python 3 incompatibility

Actions #1

Updated by Kefu Chai almost 5 years ago

  • Assignee set to Kefu Chai
Actions #2

Updated by Kefu Chai almost 5 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 27925
Actions #3

Updated by Kefu Chai almost 5 years ago

  • Pull request ID changed from 27925 to 27926
Actions #4

Updated by Kefu Chai almost 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF