Merge ~bregeer-ctl/cloud-init:bugfix/centos7_resolv into cloud-init:master
| Status: | Rejected |
|---|---|
| Rejected by: | Scott Moser on 2016-09-07 |
| Proposed branch: | ~bregeer-ctl/cloud-init:bugfix/centos7_resolv |
| Merge into: | cloud-init:master |
| Diff against target: |
64 lines (+24/-3) 1 file modified
cloudinit/net/sysconfig.py (+24/-3) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Bert JW Regeer (community) | Disapprove on 2016-09-07 | ||
| cloud-init commiters | 2016-09-06 | Pending | |
|
Review via email:
|
|||
Description of the Change
| Scott Moser (smoser) wrote : | # |
| Lars Kellogg-Stedman (larsks) wrote : | # |
This all looks fine as far as fixing the immediate problem.
I can't help but feel that there must be a better way to cooperate with networkmanager, because there are some situations in which it's really useful to have nm managing dns (vpn environments in which you want certain domains to resolve via one set of nameservers and everything else via another comes to mind), but this patch is certainly an improvement over the existing situation.
| Lars Kellogg-Stedman (larsks) wrote : | # |
Re: smoser's comment:
> Some of those have per-interface dns configuration, some do not. It'd be nice to render this
> per-interface information when we can.
If we tell networkmanager not to manage /etc/resolv.conf, those interface-specific nameservers are going to be effectively ignored. I think that this would only work in the case where there are no globally defined nameservers (everything is interface-
| Bert JW Regeer (bregeer-ctl) wrote : | # |
I am not willing to sign the CLA as it currently stands. I have no issues with providing my changes under the GPLv3, I do have issues signing a document that states Canonical is allowed to re-license my changes under any license they deem necessary. I also refuse to agree to the patent clause further than what the GPLv3 requires.
Feel free to pull this change under the GPLv3 or re-implement.
For now I will have my fork available at https:/
Unmerged commits
- 54ed5cd... by Bert JW Regeer on 2016-09-06
- 2397d42... by Bert JW Regeer on 2016-09-06
- d8ce950... by Bert JW Regeer on 2016-09-06


This generally looks good.
cloud-init gets network configuration from a variety of sources (openstack config drive in 'interfaces(5)' format, config drive in network_data.json format, Nocloud in 'network_config' format....
Some of those have per-interface dns configuration, some do not. It'd be nice to render this per-interface information when we can.
And even in the openstack interfaces 5 format it *could* declare per-network-device dns entries (the parser supports maintaining that information).
The second thing, you need to sign the canonical contributors agreement (http:// www.ubuntu. com/legal/ contributors). Please do so, and mention to me that you have in irc or here. Let me know if you have any questions on that.