/srv/irclogs.ubuntu.com/2011/05/03/#upstart.txt

twbI told libvirtd that its sockets should be grouped by a group that comes from LDAP05:58
twbUnfortunately, libvirtd fails to start now because "runlevel 2" triggers before DHCP has finished coming up, so LDAP isn't available.05:59
twbWhat's the *right* way to tell libvirtd to wait until DHCP is done?05:59
twbThis is in ubuntu 10.04, if that matters.06:03
* twb guesses net-device-up IFACE!=lo is the filthy hack that everyone uses06:07
twbNope, that doesn't work.  It comes up on eth0's state being up, rather than DHCP finishing -- I think.06:12
SpamapStwb: In Oneiric we'll be changing runlevel 2 to go after ifup -a has returned06:45
twbGood, I guess06:45
SpamapStwb: so I think if you change /etc/init/rc-sysinit.conf to 'start on filesystem and started networking' it should work.. or maybe 'stopped networking'06:45
twbobviously dhclient will background itself if it takes too long, but I'm prepared to live with 'stuff breaks" in that case06:46
twbSpamapS: I've spent an hour or two on this, so I'm giving up and just adding a dhclient exit hook that chgrps06:46
SpamapSoh you need libvirt to go after dynamic interfaces..06:46
SpamapSstart on net-device-up IFACE=ethX06:46
twbI tried net-device-up IFACE!=lo and it didn't work06:46
SpamapSthe only reason that shouldn't work is that you have multiple interfaces06:47
twbIt still tried to bring it up immediately before dhclient06:47
SpamapSdo you have a physical, static interface maybe?06:47
twbAh, you're right, I am still bringing up the second interface06:47
twbBut then why isn't it trying to bring libvirt-bin up AGAIN when the dhcp interface comes up?06:48
twbhttp://paste.debian.net/115826/ <-- interfaces, FYI06:48
SpamapSi want to add another event which is "all of the automatic interfaces are up" .. meaning all static, and all network-manager interfaces06:48
twbFWIW this is a server, so no NM06:48
SpamapSprobably because it was in a goal of "start" but just thrashing, respawning06:48
twbI will try specifying a specific iface06:49
SpamapSeven w/o nm you have dhclient backgrounding itself06:49
twbSpamapS: nod06:49
twb15:46 <twb> obviously dhclient will background itself if it takes too long, but I'm prepared to live with 'stuff breaks" in that case06:49
SpamapSThe question of "what are all of the automatic interfaces that we know about?" can be answered very easily.. once thats known.. we can trigger something to emit an event whenever all of those are up.06:49
twbI even tried "start on remote-filesystems", but that didn't work06:51
twbI assumed it would because mountall would send that after it finished mounting NFS06:51
SpamapSit most certainly does06:51
SpamapSIIRC it sends it when there are no remote filesystems.06:52
twbI do have NFS filesystems06:52
SpamapSAnd sometimes NFS isn't a "remote" filesystem.06:52
twbas a client, I mean, not a server06:52
twbomega:/home    /home    nfs intr,bg06:53
twbomega's a remote host, "omega" won't even resolve until DHCP is done06:53
twbOK, net-device-up IFACE=br-unmanaged seemed to work06:54
twbThanks06:55
twbAnd sorry for losing my temper06:56
SpamapSMeh.. it does that. We need to put some fences around it.06:56
SpamapSalso to be fair, your temper did not bleed through into IRC.. which is amazing.. usually an oz. of real temper becomes several metric tons of flames in the brain->keyboard->internet conversion process06:57
twbSpamapS: you aren't seeing the worst of it06:58
SpamapStwb: well I'm nodding off quite a bit.. need to either get caffeine or a pillow. :)06:59
twbNo worries06:59
dcorbin_wkI want to write an upstart script for my service.  It should only start after certain old-style (init.d) scripts have run.  Do have to manually modify them to trigger upstart events?14:42
SpamapSdcorbin_wk: there are two ways to handle that..17:01
SpamapSdcorbin_wk: the best way would be to port those init.d scripts to upstart as well17:01
SpamapSdcorbin_wk: but if thats not possible, you can definitely add calls to 'initctl emit' to the init.d scripts that will help signal to your upstart job that its time to run17:02
JanCsome services also provide "hooks" of course17:29
Mdhow can I debug why an ubuntu system with upstart hangs at boot? only plymouth and mountall are running17:47
mbieblMd: you can use the --debug boot option17:51
mbieblbut I guess your problem is mountall related17:51
MdI did, but it did not help17:51
MdI have an open console and initctl list reports that plymouth and mountall are the only jobs running17:52
mbiebldo you have a special setup, like lvm, cryptsetup or something like this?17:52
Mdno. actually this is the server of a customer17:53
Mdhe fucked up something while upgrading and asked us to install the last backup. which now does not work17:53
Mdso for all I know the server could have been broken earlier, but I do not know where else to look17:54
Mdmountall is just sitting there17:54
mbieblI've seen something like that17:58
mbiebla partition was defined in fstab17:58
mbieblbut the actual device was no longer attached to the server17:59
Mdindeed that was it17:59
Mdthe swap partition now has a new uuid17:59
mbiebland mountall was just sitting there waititing for the device to turn up17:59
Mdthis is fucking unbelievably stupid17:59
mbieblyeah, I lost a ec2 instance that way17:59
mbieblI cursed a whole day18:00
mbieblI hope you have (physical) access to fixup the fstab18:01
mbieblMd: that was some time ago, iirc a karmic installation. not sure if mountall is more clever nowadays and has timeouts 18:03
dcorbin_wkSpamapS: thanks.  I'm the init.d scripts are part of common ubuntu packages.  Minimal changes are preferred.18:04
SpamapSdcorbin_wk: on the contrary, we'd love to have things converted to upstart jobs. :)18:05
dcorbin_wkSpamapS: well, of course.  but this is "old ubuntu", well off of 'head'18:05
=== marrusl is now known as marrusl_afk

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