Activity log for bug #1864993

Date Who What changed Old value New value Message
2020-02-27 11:51:07 Albert Damen bug added bug
2020-04-08 17:02:27 Launchpad Janitor ceph-deploy (Ubuntu): status New Confirmed
2020-04-10 13:48:18 C Prinse bug added subscriber C Prinse
2020-08-26 12:29:59 Robert Sander bug added subscriber Robert Sander
2020-09-30 15:48:43 Rgpublic bug added subscriber Rgpublic
2022-09-23 09:33:02 James Page nominated for series Ubuntu Focal
2022-09-23 09:33:02 James Page bug task added ceph-deploy (Ubuntu Focal)
2022-09-23 09:33:09 James Page ceph-deploy (Ubuntu): status Confirmed Invalid
2022-09-23 09:35:29 James Page description Running ceph-deploy in focal, using python3.8, results in an error message: [ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution' It turns out platform.linux_distribution has been removed from python 3.8 (bpo-28167: Remove platform.linux_distribution, which was deprecated since 3.5.) One option may be to use the new distro module from https://pypi.org/project/distro/ As ceph-deploy already can use os-release as a fall-back option, I changed ceph-deploy to use that as the first option and could create a working ceph cluster. --- /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py.bak 2020-02-21 16:12:36.716000000 +0000 +++ /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py 2020-02-21 16:13:14.376000000 +0000 @@ -13,10 +13,10 @@ def platform_information(_linux_distribution=None): """ detect platform information from remote host """ - linux_distribution = _linux_distribution or platform.linux_distribution - distro, release, codename = linux_distribution() - if not distro: - distro, release, codename = parse_os_release() + #linux_distribution = _linux_distribution or platform.linux_distribution + #distro, release, codename = linux_distribution() + #if not distro: + distro, release, codename = parse_os_release() if not codename and 'debian' in distro.lower(): # this could be an empty string in Debian debian_codenames = { '10': 'buster', [Impact] ceph-deploy is not usable with Python >= 3.8 as found in Ubuntu Focal. [Test Case] Initialise ceph deployment using ceph-deploy using Ubuntu 20.04 LTS machines Errors with "RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'" [Original Bug Report] Running ceph-deploy in focal, using python3.8, results in an error message: [ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution' It turns out platform.linux_distribution has been removed from python 3.8 (bpo-28167: Remove platform.linux_distribution, which was deprecated since 3.5.) One option may be to use the new distro module from https://pypi.org/project/distro/ As ceph-deploy already can use os-release as a fall-back option, I changed ceph-deploy to use that as the first option and could create a working ceph cluster. --- /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py.bak 2020-02-21 16:12:36.716000000 +0000 +++ /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py 2020-02-21 16:13:14.376000000 +0000 @@ -13,10 +13,10 @@  def platform_information(_linux_distribution=None):      """ detect platform information from remote host """ - linux_distribution = _linux_distribution or platform.linux_distribution - distro, release, codename = linux_distribution() - if not distro: - distro, release, codename = parse_os_release() + #linux_distribution = _linux_distribution or platform.linux_distribution + #distro, release, codename = linux_distribution() + #if not distro: + distro, release, codename = parse_os_release()      if not codename and 'debian' in distro.lower(): # this could be an empty string in Debian          debian_codenames = {              '10': 'buster',
2022-09-23 09:35:34 James Page ceph-deploy (Ubuntu Focal): status New Triaged
2022-09-23 09:35:36 James Page ceph-deploy (Ubuntu Focal): importance Undecided High
2022-09-23 09:35:38 James Page ceph-deploy (Ubuntu Focal): assignee James Page (james-page)
2022-09-23 09:35:41 James Page ceph-deploy (Ubuntu Focal): status Triaged In Progress
2022-09-23 09:37:46 James Page description [Impact] ceph-deploy is not usable with Python >= 3.8 as found in Ubuntu Focal. [Test Case] Initialise ceph deployment using ceph-deploy using Ubuntu 20.04 LTS machines Errors with "RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'" [Original Bug Report] Running ceph-deploy in focal, using python3.8, results in an error message: [ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution' It turns out platform.linux_distribution has been removed from python 3.8 (bpo-28167: Remove platform.linux_distribution, which was deprecated since 3.5.) One option may be to use the new distro module from https://pypi.org/project/distro/ As ceph-deploy already can use os-release as a fall-back option, I changed ceph-deploy to use that as the first option and could create a working ceph cluster. --- /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py.bak 2020-02-21 16:12:36.716000000 +0000 +++ /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py 2020-02-21 16:13:14.376000000 +0000 @@ -13,10 +13,10 @@  def platform_information(_linux_distribution=None):      """ detect platform information from remote host """ - linux_distribution = _linux_distribution or platform.linux_distribution - distro, release, codename = linux_distribution() - if not distro: - distro, release, codename = parse_os_release() + #linux_distribution = _linux_distribution or platform.linux_distribution + #distro, release, codename = linux_distribution() + #if not distro: + distro, release, codename = parse_os_release()      if not codename and 'debian' in distro.lower(): # this could be an empty string in Debian          debian_codenames = {              '10': 'buster', [Impact] ceph-deploy is not usable with Python >= 3.8 as found in Ubuntu Focal. [Test Case] Initialise ceph deployment using ceph-deploy using Ubuntu 20.04 LTS machines Errors with "RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'" [Where problems could occur] The commit that fixes this issue is typically Pythonic and should have both good forwards and backwards compatiblity; its accepted upstream and present in later releases (2.1.0). [Original Bug Report] Running ceph-deploy in focal, using python3.8, results in an error message: [ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution' It turns out platform.linux_distribution has been removed from python 3.8 (bpo-28167: Remove platform.linux_distribution, which was deprecated since 3.5.) One option may be to use the new distro module from https://pypi.org/project/distro/ As ceph-deploy already can use os-release as a fall-back option, I changed ceph-deploy to use that as the first option and could create a working ceph cluster. --- /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py.bak 2020-02-21 16:12:36.716000000 +0000 +++ /usr/lib/python3/dist-packages/ceph_deploy/hosts/remotes.py 2020-02-21 16:13:14.376000000 +0000 @@ -13,10 +13,10 @@  def platform_information(_linux_distribution=None):      """ detect platform information from remote host """ - linux_distribution = _linux_distribution or platform.linux_distribution - distro, release, codename = linux_distribution() - if not distro: - distro, release, codename = parse_os_release() + #linux_distribution = _linux_distribution or platform.linux_distribution + #distro, release, codename = linux_distribution() + #if not distro: + distro, release, codename = parse_os_release()      if not codename and 'debian' in distro.lower(): # this could be an empty string in Debian          debian_codenames = {              '10': 'buster',
2022-09-23 09:37:53 James Page bug added subscriber Ubuntu Stable Release Updates Team
2022-09-23 09:54:42 Peter Sabaini bug added subscriber Peter Sabaini
2022-10-21 10:01:43 Timo Aaltonen ceph-deploy (Ubuntu Focal): status In Progress Fix Committed
2022-10-21 10:01:45 Timo Aaltonen bug added subscriber SRU Verification
2022-10-21 10:01:49 Timo Aaltonen tags verification-needed verification-needed-focal
2022-10-25 09:12:20 Albert Damen tags verification-needed verification-needed-focal verification-done verification-done-focal
2022-11-16 14:18:58 Launchpad Janitor ceph-deploy (Ubuntu Focal): status Fix Committed Fix Released
2022-11-16 14:19:01 Robie Basak removed subscriber Ubuntu Stable Release Updates Team