canonical / canonical/cloud-init
Gentoo generates broken network config
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
This bug was originally filed in Launchpad as [LP: #1843686](https://bugs.launchpad.net/cloud-init/+bug/1843686)
Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2019-09-12T08:36:57.613358+00:00
date_fix_committed = None
date_fix_released = None
id = 1843686
importance = wishlist
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1843686
milestone = None
owner = monstermunchkin
owner_name = Thomas Hipp
private = False
status = triaged
submitter = monstermunchkin
submitter_name = Thomas Hipp
tags = []
duplicates = []
_Launchpad user **Thomas Hipp(monstermunchkin)** wrote on 2019-09-12T08:36:57.613358+00:00_
As the title says, Gentoo generates an unusable network config. In includes 'mac_eth0' although no such thing was specified. Also, it adds the unnecessary 'netmask' keyword in the config.
The network-config (/var/lib/cloud/seed/nocloud-net/network-config):
#cloud-config
version: 1
config:
- type: physical
name: eth0
subnets:
- type: static
address: 1.2.3.4/24
gateway: 1.2.3.1
dns_nameservers:
- 1.2.3.10
The broken result (/etc/conf.d/net.eth0):
config_eth0="1.2.3.4/24 netmask None"
mac_eth0="None"
routes_eth0="default via 1.2.3.1"
dns_servers_eth0="('1.2.3.10')"
A correctly working config would be:
config_eth0="1.2.3.4/24"
routes_eth0="default via 1.2.3.1"
dns_servers_eth0="('1.2.3.10')"
I'd be great if this could be fixed.
Contributor guide
Assessment
This issue has not been assessed yet.