Fail to set DNS server and search domain when customize Ubuntu18.04 to DHCP IP by cloud-init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
The dns servers and search domain was NOT written to /etc/netplan/
From cloud-init.log, I can see it applying network configuration with dns servers and search domain:
2018-06-12 09:50:19,852 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'version': 1, 'config': [{'type': 'physical', 'name': 'ens160', 'mac_address': '00:50:
To attach cloud-init logs by 'cloud-init collect-logs' and 50-cloud-init.yaml
Note: If customize the same VM with Static IP and DNS servers/search domain, they will be written to /etc/netplan/
cloud-init logs