Project

General

Profile

Actions

Bug #62172

open

mgr/dashboard: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")

Added by Pere Díaz Bou 9 months ago. Updated 9 months ago.

Status:
Pending Backport
Priority:
Normal
Category:
General - Back-end
Target version:
-
% Done:

0%

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

Description

Description of problem

dashboard/plugins/feature_toggles.py:12: note: In module imported here,
dashboard/module.py:54: note: ... from here,
dashboard/__init__.py:60: note: ... from here:
dashboard/controllers/rbd.py: note: In member "status" of class "RbdStatus":
dashboard/controllers/rbd.py:209: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")
dashboard/plugins/feature_toggles.py:13: note: In module imported here,
dashboard/module.py:54: note: ... from here,
dashboard/__init__.py:60: note: ... from here:
dashboard/controllers/rbd_mirroring.py: note: In member "status" of class "RbdMirroringStatus":
dashboard/controllers/rbd_mirroring.py:654: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")
Found 2 errors in 2 files (checked 32 source files)
ERROR: InvocationError for command /home/yuvalif/ceph4/src/pybind/mgr/.tox/mypy/bin/mypy --config-file=../../mypy.ini -m alerts -m balancer -m cephadm -m crash -m dashboard -m devicehealth -m diskprediction_local -m hello -m influx -m iostat -m localpool -m mds_autoscaler -m mgr_module -m mgr_util -m mirroring -m nfs -m orchestrator -m pg_autoscaler -m progress -m prometheus -m rbd_support -m rgw -m rook -m snap_schedule -m selftest -m stats -m status -m telegraf -m telemetry -m test_orchestrator -m volumes -m zabbix (exited with code 1)

Environment

  • ceph version string:
  • Platform (OS/distro/release):
  • Cluster details (nodes, monitors, OSDs):
  • Did it happen on a stable environment or after a migration/upgrade?:
  • Browser used (e.g.: Version 86.0.4240.198 (Official Build) (64-bit)):

How reproducible

Steps:

  1. ...

Actual results

Please add logs and/or screenshots

Expected results

here

Additional info

here


Related issues 1 (1 open0 closed)

Copied to Dashboard - Backport #62342: reef: mgr/dashboard: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]")NewPere Díaz BouActions
Actions #1

Updated by Nizamudeen A 9 months ago

  • Category set to General - Back-end
  • Status changed from New to Pending Backport
  • Assignee set to Pere Díaz Bou
  • Backport set to reef
  • Pull request ID set to 52647
Actions #2

Updated by Backport Bot 9 months ago

  • Copied to Backport #62342: reef: mgr/dashboard: error: Incompatible types in assignment (expression has type "str", target has type "Optional[bool]") added
Actions #3

Updated by Backport Bot 9 months ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF