Project

General

Profile

Actions

Bug #40429

closed

mgr/volumes: subvolume.py calls Exceptions with too few arguments.

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

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

0%

Source:
Development
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

mypy revealed

+pybind/mgr/volumes/fs/subvolume.py: note: In member "get_subvolume_path" of class "SubVolume":
+pybind/mgr/volumes/fs/subvolume.py:167: error: Too few arguments for "VolumeException" 
+pybind/mgr/volumes/fs/subvolume.py: note: In member "_get_ancestor_xattr" of class "SubVolume":
+pybind/mgr/volumes/fs/subvolume.py:203: error: Too few arguments for "NoData" 

both of these errors are actual bugs in the code and needs to get fixed.


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #40569: nautilus: mgr/volumes: subvolume.py calls Exceptions with too few argumentsResolvedRamana RajaActions
Actions #1

Updated by Sebastian Wagner almost 5 years ago

  • Project changed from mgr to CephFS
  • Component(FS) mgr/volumes added
Actions #2

Updated by Patrick Donnelly almost 5 years ago

  • Priority changed from Normal to Urgent
  • Target version set to v15.0.0
  • Start date deleted (06/19/2019)
Actions #3

Updated by Ramana Raja almost 5 years ago

  • Pull request ID set to 28706
Actions #4

Updated by Ramana Raja almost 5 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Ramana Raja almost 5 years ago

+pybind/mgr/volumes/fs/subvolume.py: note: In member "_get_ancestor_xattr" of class "SubVolume":

+pybind/mgr/volumes/fs/subvolume.py:203: error: Too few arguments for "NoData"

I don't get the above error, when I run `./script/run_mypy.sh` against ceph master.

Actions #6

Updated by Sebastian Wagner almost 5 years ago

Ramana Raja wrote:

+pybind/mgr/volumes/fs/subvolume.py: note: In member "_get_ancestor_xattr" of class "SubVolume":

+pybind/mgr/volumes/fs/subvolume.py:203: error: Too few arguments for "NoData"

I don't get the above error, when I run `./script/run_mypy.sh` against ceph master.

That's because mypy cannot inspect cython bindings without type hints added in

https://github.com/ceph/ceph/pull/26769/files#diff-c1f4bb1fdcc925889b5d9e38148ee07eR16

Actions #7

Updated by Venky Shankar almost 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #8

Updated by Ramana Raja almost 5 years ago

  • Copied to Backport #40569: nautilus: mgr/volumes: subvolume.py calls Exceptions with too few arguments added
Actions #9

Updated by Patrick Donnelly almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF