Bug 40846

Summary: RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: ceph-deployAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: shaba, snejok
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2021-09-02 16:07:48 MSK
# ceph-deploy new ceph-hosta ceph-hostb ceph-hostc
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (2.0.1): /usr/bin/ceph-deploy new ceph-hosta ceph-hostb ceph-hostc
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  mon                           : ['ceph-hosta', 'ceph-hostb', 'ceph-hostc']
[ceph_deploy.cli][INFO  ]  ssh_copykey                   : True
[ceph_deploy.cli][INFO  ]  fsid                          : None
[ceph_deploy.cli][INFO  ]  cluster_network               : None
[ceph_deploy.cli][INFO  ]  public_network                : None
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf object at 0x7fb6174c4d30>
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.cli][INFO  ]  func                          : <function new at 0x7fb6174c74c0>
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO  ] making sure passwordless SSH succeeds
[ceph-hosta][DEBUG ] connected to host: ceph-hosta 
[ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'

ceph-deploy-2.0.1-alt3

Аналогичная ошибка и в p10.

В p9 не воспроизводится.
Comment 1 Alexander Makeenkov 2021-09-02 16:12:42 MSK
В p9:

$ python3 -c "import platform; print(platform.linux_distribution())"
-c:1: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
('ALT', '9.2', 'altlinux')

В p10 и сизифе:

# python3 -c "import platform; print(platform.linux_distribution())"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'platform' has no attribute 'linux_distribution'
Comment 2 Alexey Shabalin 2021-09-04 01:42:17 MSK
Исправлено в 2.1.0-alt1.