distribution detection

Bug #1745235 reported by Robert Schweikert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
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)
Changed in cloud-init:
status: New → In Progress
assignee: nobody → Robert Schweikert (rjschwei)
importance: Undecided → Medium
Revision history for this message
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
Revision history for this message
Scott Moser (smoser) wrote : Fixed in cloud-init version 18.3.

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
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.