/srv/irclogs.ubuntu.com/2018/01/26/#cloud-init.txt

bartuss7Hello. I'm trying to inject dns to /etc/resolv.conf using userdata, but doesnt work. I'm using heat to inject resolv config. Here is my config: https://pastebin.com/dhW2SgZy10:27
chelehi there, how can i disable dhcp and provide static network config?11:25
chelei saw this bugs from last summer but not resolution so far https://bugs.launchpad.net/cloud-init/+bug/163365611:26
ubot5Ubuntu bug 1633656 in uvtool "Can't disable DHCP network config on xenial" [Undecided,New]11:26
smoserbartuss7: any time someone pastes a pastebin.com, my eyes make me tell them 2 things14:05
smosera.) pastebinit (pacakge, installed in ubuntu by default) . uses http://paste.ubuntu.com .14:06
smoserb.) my favorite pastebin (although i fear it wont last long) https://hastebin.com/14:06
smosernow... done witih public service announcement, i'll look at what you have.14:07
smoserbartuss7: a few things i suspect.14:11
smosera.) the 'resolv_conf' module isnt enabled by default. you'd have to add it to /etc/cloud/cloud.cfg (init_modules).14:12
smoserb.) i dont know if heat will magically add the '#cloud-config' header or not14:12
smoserbut you have to have that or cloud-init will not pay attention to the content (it does  not assume that all data is always for it).14:13
smoserc. in openstack... y ou can proably manaage your nameservers differentlky through network settings and it should all get through.14:13
smoserchele: need some more data.14:14
smoserare you using uvtool ?14:14
chelesmoser right14:15
chelei think my college solved with user_data.cfg14:15
smoserchele: so i assume that its just a missing feature.14:15
smoserlet me see if there is a way in uvtool to manage it via network-config14:16
chelebut according to the bug report it still tried dhcp and ...14:16
cheleright14:16
smoserchele: http://paste.ubuntu.com/26464399/14:44
smoseri'll update that bug with this14:44
chelesmoser right, so this doesn't fire dhcp req?14:46
smosercorrect. it gives the static configuration describec by that ENI file14:46
smoserand should work 14.04 -> 18.0414:47
cheleright. ok so i guess bug might be fixed but nobody update the bug report...anyway thanks.14:47
smoserchele: well this is not an ideal situation really.14:50
smoserit will work. just not ideal. see the caveats i wrote there.14:51
smoserhi might be wrong about 14.0414:52
cheleright.14:53
=== simpoir is now known as simpoir|lunch
smoserrharper blackboxsw powersj fyi, yesterday i turned on auto-expire of Incomplete bugs.19:02
smoserwhich is why you might see some mail19:02
powersj"some"19:02
powersj;) and yes got 40+ this morning19:03
smoserrharper: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33663019:04
smoseryou want to finish-approve that ?19:04
rharpersmoser: looking19:19
rharpersmoser: approved; but generally I didn't understand why we wouldn't have the list of labels we recognize in one place (or at least one in python and one for ds-identify )19:23
smoserrharper: it *is* in one place.19:24
smoseronly in ds-identify.19:24
rharperok19:26
smoserpowersj: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33672221:22
smoserthat i think would magically start working when lxd 3 lands in whaever snap channel we're using.21:23
powersjsmoser: thanks! where did you find the info about lxd 3.0?21:25
powersjI can give it a shot in a bit too21:25
powersjoh sorry now I see your comment in the bug21:26
smoseryeah, ikind of would like to have the currrently-working path in place too21:27
smoseri dropped the _setup_console_log bit before i knew that '--show-console-log' didn't actually work  :)21:27
blackboxswthanks for the reviews smoser rharper thanks for the good review on my doc branch, I think I addressed all comments and reworked a lot of the content and cross reference links.23:21

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!