Project

General

Profile

Actions

Bug #62739

closed

cephfs-shell: remove distutils Version classes because they're deprecated

Added by Dhairya Parmar 8 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Code Hygiene
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
task(easy)
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

python 3.10 deprecated distutils [0]. LooseVersion is used at many places in cephfs-shell.py, suggest switching to packaging module's version.parse instead

[0] https://peps.python.org/pep-0632


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #62998: reef: cephfs-shell: remove distutils Version classes because they're deprecatedResolvedJos CollinActions
Actions #1

Updated by Venky Shankar 8 months ago

Dhairya Parmar wrote:

python 3.10 deprecated distutils [0]. LooseVersion is used at many places in cephfs-shell.py, suggest switching to packaging module's version.parse instead

[0] https://peps.python.org/pep-0632

So its only cephfs-shell that's using LooseVersion. Let's make the switch.

Actions #2

Updated by Venky Shankar 8 months ago

  • Assignee set to Jos Collin
  • Target version set to v19.0.0
Actions #3

Updated by Jos Collin 8 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 53529
Actions #4

Updated by Jos Collin 8 months ago

  • Status changed from In Progress to Fix Under Review
Actions #5

Updated by Venky Shankar 8 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to reef
Actions #6

Updated by Backport Bot 8 months ago

  • Copied to Backport #62998: reef: cephfs-shell: remove distutils Version classes because they're deprecated added
Actions #7

Updated by Backport Bot 8 months ago

  • Tags set to backport_processed
Actions #9

Updated by Jos Collin 7 months ago

  • Subject changed from cephfs-shell: remove distutils Version classes cause they're deprecated to cephfs-shell: remove distutils Version classes because they're deprecated
Actions #10

Updated by Jos Collin 6 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF