/srv/irclogs.ubuntu.com/2016/08/19/#cloud-init.txt

=== rtheis__ is now known as rtheis
=== rangerpbzzzz is now known as rangerpb
smoserharmw, https://code.launchpad.net/~harmw/cloud-init/growfs-gpart-fixes_for_fbsd/+merge/24607514:02
smoserstill needed ?14:02
smoserrangerpb, hey.16:18
smoserone more question...16:18
rangerpbyessir smoser16:18
smoserconfig/cloud.cf16:19
smoseryou set dhclient_lease to null i guess16:19
smoseri dont think that should be necessary16:19
smoseri think i need to revert the other changes to that file too16:20
smoserOdd_Bloke, around ?16:32
Odd_Blokesmoser: In half an hour.16:33
smoserOdd_Bloke, https://git.launchpad.net/cloud-init/commit/?id=648dbbf6b090c81e989f1ab70bf99f4de16a6a7016:33
smoserrangerpb set the 'agent_command' to __builtin__16:35
smoserwhich, you had (i believe) added that support, but as far as i can tell its not used in ubuntu16:35
rangerpbsmoser, the __builtin__ was the key/value that lets it go down the route of discovery on azure16:48
rangerpbwithout it, none of the code is used16:48
smoseryeah.16:48
rangerpbdhclient_lease should probably be set to something distro specific16:48
rangerpbit allows fallback to a lease file which at present was only defined for ubuntu16:49
Odd_BlokeThe __builtin__ code there was written when we were building all-snaps images for Ubuntu Core Series 15, where walinuxagent wouldn't run.16:49
Odd_BlokeWe aren't presently using it for anything, as we don't publish Series 15 images any more.16:50
rangerpbfine but it is a conditional in the current code16:50
rangerpbtotally open to change16:50
rangerpbi never much liked the conditional which was there, it seems in cloud-init we chase down every possible avenue16:51
rangerpbsmoser, u follow?16:51
smoseri have no idea what a series 15 image is16:52
rharperubuntu-core16:53
rharperbased on 15.04/10 IIRC16:53
smoseroh. ok.16:53
smoserrangerpb, does fedora/centos run the agent ?16:53
smoserOdd_Bloke, what does the agent do for us ? why not use the new path.16:54
rangerpbthe agent still has some upside over the current16:54
rangerpbnot really in provisioning but more in configuration, etc16:54
rangerpbfor example, you can pass a script "through" the agent and it will end up getting executed on the vm16:54
smoserwell, cloud-init does that too :)16:55
Odd_Blokesmoser: I think just because we've always been relying on walinuxagent.16:55
rangerpbsmoser, i think the agent can do it anytime, not just on boot16:55
Odd_BlokeWe will still need to run walinuxagent in Ubuntu images (for other Azure-specific things to work), so we'd have to check that the two don't conflict.16:55
Odd_BlokeBut walinuxagent is reasonably configurable, so if it isn't already possible to stop it doing things that we want to do, we could probably request it.16:56
smoserOdd_Bloke, but does the agent start itself ?16:56
smosercloud-init starts it, but is that necessary ?16:57
rangerpbthe answer is it depends on what you are trying to do imho16:57
rangerpbhttps://git.launchpad.net/cloud-init/tree/cloudinit/sources/DataSourceAzure.py#n231 <-- this was the conditional i was referring to16:57
rangerpbbasically two paths to do the same thing, agree Odd_Bloke ?16:58
Odd_BlokeYeah, but __builtin__ doesn't rely on walinuxagent.16:58
rangerpbyeah16:58
rangerpbso it might be better? that the conditional check for the existance of the agent?16:59
Odd_BlokeBut it was only ever used in an environment where walinuxagent _would not_ run, so we don't actually know how it works in an environment where we do __builtin__ _and_ walinuxagent runs.16:59
rangerpbwell i do16:59
rangerpbi didnt see any harm in running both16:59
Odd_BlokeYeah, I don't see any harm in it.16:59
Odd_BlokeUnless it breaks. ;)17:00
Odd_BlokeBut, fundamentally, the two should be fine side-by-side.17:00
Odd_BlokeIt's just whether or not there's something unconsidered that needs to be cleaned up.17:00
Odd_BlokeIt sounds like there isn't.17:00
Odd_BlokeSo that's good.17:00
rangerpbthe problem is that the one path *requires* an agent, which might not be there17:00
rangerpbwhich is why i said, if the agent is present, prob prefer it; if not, go the "newer" route17:01
rangerpbthen there is no collision on provision17:01
rangerpbsmoser, Odd_Bloke however, if you prefer, I can run this by MS17:01
smoserrangerpb, sure. i'll have a few changes to my dhclient hook cleanup that i'll point you at.17:02
Odd_BlokeI thought you just said you'd identified that you had run the two and there wasn't a collision?  Did I misunderstand?17:02
smoserwe can have the default behavior to do as you suggest17:02
Odd_Bloke(Or just being cautious?)17:02
rangerpbbeing cautious17:02
Odd_BlokeOK, cool.17:02
smoserbut still want it to be configurable17:02
rangerpbsort of like, where does provisioning start/stop and other stuff begin17:02
smoserso that you could set the agent command17:02
smoserOdd_Bloke, in our images, if cluod-init did not start the agent...17:03
smoserwould it not run ?17:03
rangerpbi would like to see the configuration have something like azure_provision: cloud-init|agent17:03
rangerpbor one is override, perhaps better17:03
rangerpbi.e. default is still agent and override with cloud-init17:04
rangerpbi gotta grab some vittles, will read back when i return17:04
Odd_BlokeSo I think the only restriction we would need is that it be easy for the default to be cloud-init.17:04
Odd_BlokeSo that we can backport changes more easily, without having to carry a large patch to do that.17:05
Odd_BlokeBut even that isn't a hard blocker.17:05
Odd_Blokesmoser: http://paste.ubuntu.com/23070971/ is the walinuxagent unit file, which I believe means it would come up anyway.17:07
Odd_BlokeWe just start it earlier.17:07
smoserok17:07
smoserhttp://paste.ubuntu.com/23070985/17:15
smoserrangerpb, Odd_Bloke ^ is what i'm looking at17:27
smoserrangerpb, that'd mean that right now fedora would have to carry the agent_command setting17:28
smoserbut i'm open to "if agent is installed" logic17:28
rangerpbok18:15
=== rangerpb is now known as rangerpbzzzz

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