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

blackboxswconfirmed, Azure: zesty hostname updates on the command line don't get auto-posted to dhcp, as such nslookup of your hostname just after setting it is unresolvable. Artful and bionic it works within < 1/2 second06:02
blackboxswok was just a drive by. I'm off06:02
dojordan@blackboxsw, did you have waagent running? it also has some functionality to trigger dhcp on hostname change: https://github.com/Azure/WALinuxAgent/blob/master/azurelinuxagent/ga/env.py#L3917:24
blackboxswgood point dojordan forgot to check settings on the waagent17:25
blackboxswwill spin up zesty & artful again to check both17:25
blackboxswsmoser: manual_cache_clean branch: do we really care about logging dicfg == None? or could we just return with "no di_report found in config"17:56
blackboxswminor comment left on https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33595617:57
blackboxswquestion really17:57
blackboxswI'll actually test that in a minute here. but I don't think we can get to that "di_report is None" logic17:58
smoseryou are correct17:58
smoserblackboxsw: no. you can get there.17:59
smoseroh. wait. no.17:59
smoserblackboxsw: http://paste.ubuntu.com/26373092/ ?18:00
blackboxswdojordan: zesty azure, waagent is running on zesty, but I see systemd-networkd is dead18:01
dojordaninteresting, during cloud init or after boot?18:02
dojordanis it using networkmanager?18:02
dojordando ifdown/ifup exist?18:02
smoserno.18:02
blackboxswsmoser: sure. per your pastebin if we want to differentiate from no di_report and empty di_report I'18:02
blackboxswam +118:02
smoserblackboxsw: http://paste.ubuntu.com/26373186/18:03
smoserno reason to set a default since we've already checked if it was there.18:03
smoserdojordan: ubuntu cloud images dont use networkmanager anywhere18:04
smoserdojordan: you might be right on walinuxagent triggering the hostname update.18:04
smoseri suspect you are18:04
blackboxswsmoser: +1 on di_report 2nd paste because we also check for None in your branch and nondict18:05
smoseri'd forgotten about that.18:05
blackboxswdojordan: how do I tell walinuxagent monitor frequency?18:07
dojordanlet me check18:07
dojordan@blackboxsw, fwiw if you want to disable there is a config flag you can set to disable it18:08
dojordanin /etc/waagent.conf, set Provisioning.MonitorHostName=y18:09
* blackboxsw didn't see anything in /var/log/waagent messaging 'Detected hostname change' on zesty or artful. but the hostname update on artful did update dns18:10
dojordanand it is sleeping 5s18:10
blackboxswProvisioning.MonitorHostName=n on artful18:10
blackboxswso it's gotta be systemd-netweorkd18:10
blackboxswProvisioning.MonitorHostName=n on zesty tii18:11
blackboxswtoo18:11
dojordancan you run sudo tcpdump -i eth0 port 67 or port 68 -e -n?18:11
dojordanin a different screen18:11
dojordanwhile you change hostname18:11
blackboxswdefinitely18:11
blackboxswsudo tcpdump -i eth0 port 67 or port 68 -e -n18:13
blackboxswtcpdump: verbose output suppressed, use -v or -vv for full protocol decode18:13
blackboxswlistening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes18:13
blackboxswnothing came across the wire across multiple sudo hostname newname calls18:13
blackboxswyet nslookup myjunk318:14
blackboxswServer:127.0.0.5318:14
blackboxswAddress:127.0.0.53#5318:14
blackboxswNon-authoritative answer:18:14
blackboxswName:myjunk318:14
blackboxswAddress: 10.0.0.518:14
dojordangotcha, so its not actually re dhcp-ing18:14
blackboxswdoesn't look like it.18:15
blackboxsww/out dhcp in azure, how could dns have been updated?18:16
blackboxswI thought that's the mechanism by which that happened18:16
blackboxsww/out re-dhcp18:16
dojordanthat would be the iDNS18:16
dojordanso if you have another VM in the same vnet, can it hit the new hostname?18:17
dojordan(iDNS being the instance dns server). I'm curious about the DNS thing though...18:18
smoserdojordan: were you looking at using the dhclient and ephemeral ivp4 ?18:30
dojordanyeah, I wrote up some quick and dirty code and am testing it now18:31
=== Beret- is now known as Beret
smoserpowersj: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33595618:36
smoseryou knwo what that failed ?18:36
smoserit doesnt seem like my change18:36
smoser https://git.launchpad.net/~smoser/cloud-init/commit/?id=6f59e49b4ece8eceb43b01a3d7c063ee7899a05118:36
smosercould have gone from green to red18:36
smoserand i just ran c-i here with it.18:37
powersjsmoser: you may need to rebase to pick up the pylxd change18:39
powersjyeah I don't see integration-requirements.txt, which will be required to grab the pylxd of the necessary version to support lxd as snap18:40
smoserk18:44
smoserhm.18:44
smoserit worked here though18:44
smoserodd18:44
smoserblackboxsw: if you want to OK https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33595619:29
smoserofficially, that'd be good19:29
smoserthen we can pull19:29
dojordanstupid question, but I am having problems mocking cloudinit.util.is_freeBSD()...https://pastebin.com/qSpEtASK20:48
dojordanfor some reason when i log the return value in the code to be tested, it is coming back as a magicmock object and not False20:48
rharperdojordan: I think the patch decorator order is backwards, the first line above the fuction is the first parameter21:02
blackboxswmerged https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33595621:26
blackboxsw+1 on mocking param order suggestion21:28
dojordanawesome, that worked. thanks!21:30

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