Solving `module 'platform' has no attribute 'linux_distribution'` for ceph-deploy with Python 3.8

CLOUD/Ceph|2021. 7. 9. 11:38

When running ceph-deploy on Python 3.8, you may encounter the following error:

[ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'

 

This is because of the deprecated platform.linux_distribution function in Python3.8.

To correct this issue, if your pip3 instance does not install the latest release of ceph-deploy, you can install it directly from Git:

pip3 install git+https://github.com/ceph/ceph-deploy.git

 

and then proceed to run your configuration:

ceph-deploy --username ceph install node00 node01 ... node06

 

to complete the process.

반응형

댓글()