Comment 17 for bug 1776452

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1776452] Re: Fail to set DNS server and search domain when customize Ubuntu18.04 to DHCP IP by cloud-init

On Mon, Apr 15, 2019 at 9:21 AM Pengzhen(Peter) Cao <email address hidden>
wrote:

> Hi Ryan,
>
> As you said, "cloudinit/sources/helpers/vmware/imc/config_nic.py" now
> generates v1 network_state dictionary. Should I just add a "DHCPFROMDNS:
> true/false" key as V1 format or should I update the output to v2
> together with other fields?
>

Hi Pengzhen,
I would transition to v2 since that now supports DNSFROMDHCP. I do think
we should add a key in v1, but I'd like to think about what that looks like
before we add it.
For now, both sysconfig (PEERDNS) and netplan (v2) (DNSFROMDHCP) have keys
that
indicate on a per-interface basis whether they should obtain DNS
server/search
from DHCP results.
This will need to be parsed and stored in network_state under the interfaces
dictionary, and then in the renderers, for each interface, if the boolean
is true
emit the correct configuration value (PEERDNS=yes|no, dnsfromdhcp:
true|false).
We can follow up with a change to eni renderer once we determine how to
implement
that under ifupdown/dhclient.

>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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
>