distribution detection

Bug #1745235 reported by Robert Schweikert on 2018-01-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Robert Schweikert

Bug Description

Upstream Python has deprecated platform.linux_distribution()[1] and the implementation is being removed in 3.7. This has an effect on template rendering during install and possibly other places in the code during runtime.

Options are to use an external module [2] or implement logic in cloud-init to detect the distribution.

During a brief IRC discussion on January 24th, 2018, started at 3:39:23 P.M. EST it was concluded that cloud-init should not have a dependency on the external distro module.

[1] https://docs.python.org/3.6/library/platform.html#platform.linux_distribution
[2] https://github.com/nir0s/distro#distro---a-linux-os-platform-information-api

Related branches

Chad Smith (chad.smith) on 2018-05-14
Changed in cloud-init:
status: New → In Progress
assignee: nobody → Robert Schweikert (rjschwei)
importance: Undecided → Medium
Chad Smith (chad.smith) wrote :

An upstream commit landed for this bug.

To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=bbcc5e82

Changed in cloud-init:
status: In Progress → Fix Committed

This bug is believed to be fixed in cloud-init in version 18.3. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers