/srv/irclogs.ubuntu.com/2017/07/21/#cloud-init.txt

smoserblackboxsw, right.01:35
smoserit *should* be ok to do what we're doing.01:35
smoserand this path (dhcp and use that address) is actually less likely to cause any issues01:35
smoserthan using the ipv4 link local path.01:35
smoserwe can talk about that... maybe we don't need a fallback path.01:35
smoserhave to think more01:35
=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
=== shardy is now known as shardy_mtg
=== shardy_mtg is now known as shardy
powersjsmoser: rharper if I want to run a single cloud-init module and pass in user data how do I do that with: cloud-init single -n hostname15:54
smosercloud-init single --name=hostname --frequency=always16:05
smoserand for changing the config that that thing sees....16:06
smoseri always just end up writing different content into /etc/cloud/cloud.cfg.d/99-smoser.cfg16:06
smoserand re-running boave16:06
rharperif you to pass in user-data, you need --file /path/to/cfg16:08
smoserrharper, blackboxsw https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32753217:28
smoserthat is updated with commits for your feeback (and flake fixes too)17:28
rharperk17:31
smoserquick view of https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32789617:38
smoserwould be helpful too17:38
blackboxswhrm trying to test freebsd instances with the dhclient changes I can't seem to ssh to the instance w/ root@ec2-..... and the pem file. It's prompting me for a password17:49
blackboxswwill check those branches now smoser17:49
smoserhrm indeed. :)17:53
blackboxswhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/327896 approved17:53
blackboxswyour extensions to mock in https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/327532 remind me about adding linters which should balk if we are importing mock directly17:54
smoserblackboxsw, ?17:56
smoseri think it doesnt matter though17:57
smoserunless you know otherwise17:57
smoseri wondered about this and tested quickly17:57
smoserif a test does import the 'helpers'17:57
smoserand then (before or after) import mock via 'import mock'17:57
smoserthen the mock is still patched everywhere17:57
smoseris that what you were meaning?17:58
blackboxswhrm, I lemme check on that. I probably misinterpreted what mock monkey patching we were doing there in helpers.18:01
smoserblackboxsw, theres only one "copy" of an import18:06
smoserjust differntly namespaced based on how its imported18:07
smoserright?18:07
smoserthat fact is part of the reason on why you can fail to un-mock something in a unit test and have another unit test affected.18:07
blackboxswsmoser, ok confirmed the proper behavior as you suggested. Anything that imports helpers will have the properly patch mock.Mock which has assert_not_called since the import already "happened" in original helpers import18:07
blackboxswyeah correct18:08
smosereither before or after18:08
smoserimport mock18:08
smoserimport helpers18:08
smoseror the other way18:08
smoserdoesn't matter18:08
blackboxswso we *don't* have to worry about where we import mock as we have  enxtended mock.Mock at helper module import time18:10
blackboxswright18:10
smoseras long as helper gets loaded18:39
smoserugh19:36
smosercloud-init in archive now depends on nplan | ifupdown19:36
smoserupdated, then purged ifupdown19:36
smoserin lxc container19:37
smosercleaned out /var/lib/cloud19:37
smoserreboot19:37
smoserdoes not have an ipv4  dhcp address19:37
smoser:-(19:37
smoserhm.. maybe it did19:39
larskssmoser: around?19:48
smoserlarsks, here.20:04
smosersorry... slow reply20:04
larsksNo worries.  So, (a) approved for cloud-init summit.20:05
larsks(b) does this seem like a reasonable explanation of the ovirt issue?20:05
larskshttps://gist.github.com/larsks/62841738dbfad27155628a2560cb818c20:05
smosera. \0/20:06
smoserlarsks, that sounds pretty reasonable yes.20:07
larsksExcellent. Thanks.20:07
smoserlarsks, i think we *could* keep both the instance id and the previous dmi id around and compare20:07
smoseri think that woudl work.20:07
larsksJust an extra symlink in /var/lib/cloud/instances, maybe?20:08
smoserwell, cloud-init loads /var/lib/cloud/instance/obj.pkl20:08
smoserand that, which is the ConfigDrive class20:08
smoserhas the ability to look around and decide if it is new or not20:08
smoseri think ... (memory here)20:08
smoserwe could keep the uuid from dmi and the instance id.20:09
smoserand if uuid did not change, we could assume we were same.20:09
larsksI guess. It seems better if ovirt were to fix things, since they're pretending to be an openstack data source.20:09
smoseryes.20:09
blackboxswhrm, I'm not sure our is_connected function in cloudinit/net/__init__ works on aws cloud instances20:46
blackboxswcat /sys/class/net/eth0/carrier20:46
blackboxsw120:46
blackboxswI'm seeing a 1 returned from my active eth0 interface (so is_connected returns False)20:46
blackboxswahh wait a sec, sorry n/m. we check iflink first20:47
blackboxswok ignore the peanut gallery: python3 -c 'from cloudinit.net import is_connected; print(is_connected("eth0"))'20:49
blackboxswTrue20:49
smoserrharper, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/327921 should be good now.21:18
rharperk21:48

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