IBM FlashSystem driver using py3.5 incompatible code

Bug #1777926 reported by Sean McGinnis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Unassigned

Bug Description

The string.maketrans() call was deprecated in python 3.1 and appears to have been removed in python 3.5.

https://github.com/openstack/cinder/blob/master/cinder/volume/drivers/ibm/flashsystem_common.py#L185

This code will break when run under python 3.5, and since our pylint job now picks up whatever is the installed python 3 version, that results in the error:

"Module 'string' has no 'maketrans' member"

summary: - IBM FlashSystem driver using py3.6 incompatible code
+ IBM FlashSystem driver using py3.5 incompatible code
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/855479

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/855479
Committed: https://opendev.org/openstack/cinder/commit/6d023cfd55f545149742609e55d9ea8a133fc0ba
Submitter: "Zuul (22348)"
Branch: master

commit 6d023cfd55f545149742609e55d9ea8a133fc0ba
Author: tushargite96 <email address hidden>
Date: Thu Sep 1 12:59:28 2022 +0530

    IBM FlashSystem driver using py3.5 incompatible code

    The string.maketrans() call was deprecated in python 3.1 and
    appears to have been removed in python 3.5

    [1] https://docs.python.org/3/library/stdtypes.html#bytes.maketrans
    [2] https://docs.python.org/3/whatsnew/3.1.html#other-language-changes

    Closes-Bug: #1777926
    Change-Id: I78c51e80063c5c290bc32aa90ae53255934bbe24

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 22.0.0.0rc1

This issue was fixed in the openstack/cinder 22.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.