sde | I need to override the search domain set through DHCP, but of course resolv.conf is generated by NetworkManager from /etc/sysconfig/network-scripts/ifcfg-eth0, which in turn is generated by cloud-init. Been digging, but can't get cloud-init to alter ifcfg-eth0. | 14:41 |
---|---|---|
sde | This on a Redhat image in AWS | 14:41 |
rharper | I don't think the RedHat AWS image has cloud-init new enough to generate networking config; it's likely the ifcfg-eth0 is baked into the image as-is (dhcp on eth0 was a common default in cloud-images). It may be possible to have a dhcp hook script which can append/prepend DNS settings | 14:47 |
sde | The image I'm working on is using cloud-init 0.7.9, which seems to tie with the docs I was looking at that suggested this was possible, and at the top of the ifcfg-eth0 it states it was generated by cloud-init. | 14:49 |
sde | I've tried putting in cloud.cfg - | 14:50 |
sde | manage_resolv_conf: true resolv_conf: searchdomains: - vpc01.grn.poc.tbaws.com domain: vpc01.grn.poc.tbaws.com | 14:50 |
sde | (mangled format in cut-n-paste, sorry) | 14:50 |
rharper | Ah, 0.7.9 is new enough | 14:50 |
rharper | it maybe that the fallback network configuration doesn't look at those cloud-configs; would you be able to file a bug against cloud-init on launchpad with details? https://bugs.launchpad.net/cloud-init/+filebug | 14:52 |
sde | Sure, I can do that. Have I got the settings in the right location and format through? I've never looked at cloud-init before today, and I got confused reading the docs about exactly where I should be putting things | 14:54 |
rharper | sde: w.r.t format, not quite sure since your paste didn't have newlines. but I suspect you want it to look something like: http://paste.ubuntu.com/25376871/ | 14:58 |
sde | Yes, that's exactly what I've got. Directly in cloud.cfg is the correct/acceptable location for that, rather than as a separate file under cloud.cfg.d/ ? | 15:00 |
sde | Need to step away, but thanks for your assist, appreciate the time. I'll get that bug raised later. Thanks | 15:11 |
smoser | rharper, wrt "what image for development release on ec2" | 15:11 |
smoser | http://paste.ubuntu.com/25376930/ | 15:11 |
rharper | ah, search by ami number | 15:14 |
smoser | image status is https://github.com/smoser/talk-simplestreams/blob/master/bin/image-status | 16:03 |
smoser | rharper, blackboxsw fyi, the instance-data roadmap entry | 16:45 |
smoser | https://trello.com/c/AYaCdQyT | 16:45 |
rharper | k | 16:48 |
blackboxsw | rharper: /smoser trial run ipv6 from AWS metadata :) https://us-east-2.console.aws.amazon.com/ec2/v2/home?region=us-east-2#Instances:sort=desc:statusChecks | 19:54 |
blackboxsw | oops | 19:54 |
blackboxsw | http://paste.ubuntu.com/25378444/ | 19:54 |
blackboxsw | looks like generating the network V1 worked | 19:55 |
blackboxsw | I'm throwing together some unit test coverage | 19:55 |
blackboxsw | ehem, I mean I'm all TDD and must already have the unit tests around some place | 19:55 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!