Bug 40846 - RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'
Summary: RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distr...
Alias: None
Product: Sisyphus
Classification: Development
Component: ceph-deploy (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
Depends on:
Reported: 2021-09-02 16:07 MSK by Alexander Makeenkov
Modified: 2021-09-04 01:42 MSK (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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'


Аналогичная ошибка и в 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.