/srv/irclogs.ubuntu.com/2013/12/04/#cloud-init.txt

smosergondoi, i do have a pretty good handle on upstart events and dependencies yes.00:28
harlowjagondoi can u provide the upstart config that starts nova-agent, that might help00:57
harlowja*since its likely a rackspace upstart config00:58
smosergondoi, is this something i could jsut start on rackspace ?01:36
smoserie , just public instances ?01:36
smoseri haven't started instances there in quite some time01:36
harlowjai can try also smoser, i deleted mine though since i got a damn bill for it01:46
harlowjaalthough i wasn't aware that rackspace images had cloudinit01:46
harlowja*since they have that agent thingy01:46
harlowjahttps://github.com/rackerlabs/openstack-guest-agents-unix01:47
smosergondoi, looking at an instance of saucy i started on rackspace14:28
smoserin general sysvinit will *start* only after cloud-init has finished.14:28
smoserso first glance, the reason for that (by design) is14:29
smoser cloud-inti starts on14:30
smoser(cloud-init.conf)14:30
smoserstarts on14:30
smoser start on mounted MOUNTPOINT=/ and stopped cloud-init-nonet14:30
smosercloud-init-nonet is a a job who's only purpose is to block running of cloud-init until static-networking is up14:30
smoser'mounted MOUNTPOINT=/' is blocking event14:31
smosermeaning /etc/init/rc-sysinit.conf (start on (filesystem and static-network-up) or failsafe-boot)14:31
smoserwill not run until that has finished.14:31
smoserso nova-agent, which is set to run via sysvinit will not run until after cloud-init has run14:31
smoserthis is by design from cloud-init's perspective14:32
smoserhm..14:33
* smoser wonders if gondoi was running a 'hvm' instance, because i just ran one, and it doesn't seem to get networking up.14:33
gondoismoser, sorry i had to leave yesterday15:47
gondoijust catching up on your messages15:47
gondoiwhat is an hvm instance?15:47
gondoii was using the performance class if that's what you mean15:48
smoserin my rackspace control panel, there was an option to run 13.10 (ubuntu) in something called "pvhvm"15:48
smoserwhich i suspect is xen HVM rather than PVM.15:49
gondoiohhh no i was not using that one15:49
smoserbut it never came up.15:49
smoserthat was an image type.15:49
smoser(oddly an image type, not a instance type)15:49
gondoiyeah i'm not sure about that one :D15:50
gondoilet me see which one I was usning15:50
gondoiusing15:50
gondoii'm using Ubuntu 13.10 (Saucy Salamander) in ORD15:53
gondoiyeah the start on and stop on for rc is confusing to me since it's just looking for a runlevel change15:53
smosergondoi, well its the 'rc-sysinit.conf' that emits that15:54
gondoismoser, i'm sorry i don't see the connection.. I believe that's how it works, i'm just trying to understand it... 'start on mounted ...' that blocks cloud-init right?15:59
smosercloud-init is 'start on mounted'16:00
smoserwhich is "really early"16:00
smoserand combined with the 'static-networking"16:00
smoserforces a "networking up and root mounted rw" bottleneck16:00
smoserso cloud-init blocks boot on itself16:00
smoserafter cloud-init is done, rc-sysinit.conf can run16:01
smoserwhich will emit the 'runlevel'16:01
smoserwhich will trigger rc.conf to run the sysvinit scripts for the given runelvel (2)16:02
gondoiokay... i guess my confusion is on the filesystem state and fired events in upstart.. sorry16:03
gondoiupstart is async right?16:03
smoseryes.16:04
smoserbut rc is not.16:04
gondoior does it fire an event mounted MOUNTPOINT=/ and wait for the cloud-init task to finish before finishing all mounts and firing filesystem?16:05
smoserand by design cloud-init forces a synchronous bottleneck16:05
smosermounted MOUNTPOINT= events are blocking16:05
smoserand nothing happens until after 'mounted MOUNTPOINT=/'16:05
smoserso that specific event is very globally blocking16:05
smoserthis is all by design16:06
smoserso that cloud-init can do boothooks or config changes16:06
smoserand those things not be race condition enducing16:06
smoserinducing16:06
gondoiyeah16:07
gondoithanks for the clarification... upstart is much more confusing than I ever expected it to be :/16:07
gondoithe docs are great on upstart.ubuntu.com, but i failed to find this one nugget of information in trying to troubleshoot this16:08
smosergondoi, well, part of this is "upstart"16:08
smoserand part is "ubuntu"16:08
smoserie, part of this is ubuntu-usage of upstart. not specifically upstart.16:09
gondoioh ....16:09
smoserso thats why you didn't/don't find documentation on some of it on upstream upstart.16:09
gondoioh man, it just clicked.. I think that's why this all works with the rackspace debian image.........16:10
gondoiis it blocking in debian too?16:10
smoserprobably blocking in debian, yes.16:11
gondoioh .. hmm16:11
smoseri'd have to actually look at debian16:11
smoserie, do they use upstart there?16:11
smoseron rackpace debian ?16:11
gondoioh... well.. i actually don't know the answer to that16:11
gondoii'd have to boot one and check it out16:12
smoserif they're just using the sysvinit scripts, then ideally cloud-init forces a similar boot order16:12
gondoiyeah16:12
smoser(ie, it shoudl block just about everything other than '/' is mounted and network is up)16:12

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