Also tried the following:

network:
  version: 1
  config:
    - type: nameserver
      address:
        - 172.29.248.2

This version is picked up, but is broken for the same reason xenial is
broken:

2018-11-07 14:33:06,581 - util.py[DEBUG]: Read 18 bytes from 
/sys/class/net/eth0/address
2018-11-07 14:33:06,581 - stages.py[DEBUG]: applying net config names for 
{'config': [{'address': ['172.29.248.2'], 'type': 'nameserver'}], 'version': 1}
2018-11-07 14:33:06,581 - __init__.py[DEBUG]: no interfaces to rename
2018-11-07 14:33:06,581 - __init__.py[DEBUG]: Datasource DataSourceEc2Local not 
updated for events: System boot
2018-11-07 14:33:06,581 - stages.py[DEBUG]: No network config applied. Neither 
a new instance nor datasource network update on 'System boot' event
2018-11-07 14:33:06,581 - main.py[DEBUG]: [local] Exiting. datasource 
DataSourceEc2Local not in local mode.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776452

Title:
  Fail to set DNS server and search domain when customize Ubuntu18.04 to
  DHCP IP by cloud-init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1776452/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to