Created attachment 1815758 [details] OCS 4.8.0 script incompatible with python 2.x Description of problem (please be detailed as possible and provide log snippests): The script "ceph-external-cluster-details-exporter.py" is incompatible with python 2.x Following error occurs when trying to run the script with python 2.7.5 --- # python --version Python 2.7.5 # python ceph-external-cluster-details-exporter.py --rbd-data-pool-name rbd --rgw-endpoint 10.1.8.29:8080 --run-as-user client.test File "ceph-external-cluster-details-exporter.py", line 578 except subprocess.CalledProcessError as exec: ^ SyntaxError: invalid syntax --- Version of all relevant components (if applicable): OCS 4.8.0 Python 2.7.5 Does this issue impact your ability to continue to work with the product (please explain in detail what is the user impact)? Yes, the user will not be able to generate JSON output if they don't have python3 on the RHCS cluster node. Is there any workaround available to the best of your knowledge? NA Rate from 1 - 5 the complexity of the scenario you performed that caused this bug (1 - very simple, 5 - very complex)? 1 Can this issue reproducible? Yes Can this issue reproduce from the UI? No If this is a regression, please provide more details to justify this: Yes, Script from latest OCS 4.7 (GA) works fine Last known OCS 4.8 internal build version where script used to work with python 2.x - OCS 4.8.0-398.ci Steps to Reproduce: 1. Install OCS operator 2. Create StorageCluster -> Select External mode -> Download the script 3. Try to run the script using python 2.x version Actual results: SyntaxError when running the script with python 2.x Expected results: Script should be compatible with python 2.x Additional info:
Python 2 is past end of life and Python 3 has been out for 13 years. From where is the requirement to run with 2.x?
(In reply to Travis Nielsen from comment #3) > Python 2 is past end of life and Python 3 has been out for 13 years. From > where is the requirement to run with 2.x? Python 2.x support would be required when RHCS 4.x cluster is deployed on RHEL 7.x Related Bug 1883866 Relevant Note in our current docs[1] for the requirement ``` Use python instead of python3 if the Red Hat Ceph Storage 4.x cluster is deployed on Red Hat Enterprise Linux 7.x (RHEL 7.x) cluster. ``` [1] https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/4.8/html-single/deploying_openshift_container_storage_in_external_mode/index
Arun can you take a look?
*** Bug 1998292 has been marked as a duplicate of this bug. ***
PR up for review: https://github.com/rook/rook/pull/8623
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat OpenShift Data Foundation 4.9.0 enhancement, security, and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:5086