canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.92k stars 871 forks source link

cloud-init should support iproute2 tools #3086

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1739023

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2022-11-03T09:36:08.477807+00:00
date_created = 2017-12-19T13:09:21.925056+00:00
date_fix_committed = 2022-11-03T09:36:08.477807+00:00
date_fix_released = 2022-11-03T09:36:08.477807+00:00
id = 1739023
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1739023
milestone = None
owner = rjschwei
owner_name = Robert Schweikert
private = False
status = fix_released
submitter = rjschwei
submitter_name = Robert Schweikert
tags = []
duplicates = []

Launchpad user Robert Schweikert(rjschwei) wrote on 2017-12-19T13:09:21.925056+00:00

Older ifconig, route, netstat, and arp tools are being deprecated on Linux distributions. cloud-init should in all cases support the newer iproute2 tools.

ifconfig used in: cloudinit/sources/DataSourceAzure.py cloudinit/netinfo.py tools/mock-meta.py

netstat used in: cloudinit/netinfo.py

route used in: cloudinit/config/cc_disable_ec2_metadata.py

ubuntu-server-builder commented 1 year ago

Launchpad user Robert Schweikert(rjschwei) wrote on 2017-12-19T18:23:13.957547+00:00

cloudinit/sources/DataSourceAzure.py -> ifconfig used only in freeBSD block tools/mock-meta.py -> ifconfig in comment

No changes needed for those files.

ubuntu-server-builder commented 1 year ago

Launchpad user James Falcon(falcojr) wrote on 2022-11-03T09:36:02.666037+00:00

iproute2 tools are now only used as a fallback when ip tools aren't installed.