/srv/irclogs.ubuntu.com/2010/03/17/#upstart.txt

nokia3510hello04:30
nokia3510I'm having a luks issue and I don't know for sure if it's upstart related or not, maybe you could confirm my hunch04:31
nokia3510I'm testing luks in Vbox-Karmic, fstab and crypttab are setup properly, manual mount works just fine04:33
nokia3510however, when booting karmic, the boot process stops for a moment asking for luks password, yet it continues before I finish typing the pass and pressing enter, leaving the luks hdd unmounted04:34
nokia3510i've done similar tests in mandriva, opensuse and fedora - for learning purposes - discovered a few distro specific quirks but finally all's setup properly04:36
nokia3510in karmic however, I dunno now where's the problem really, since it reaches the pass entering state but automatically continues after a few seconds regardless of my input04:37
sadmac2nokia3510: that's an ubuntu question not an upstart question. even if upstart is involved the problem is specific to their configuration of upstart.04:59
nokia3510thanks sadmac2 for clarifying it for me05:00
sadmac2nokia3510: I'd try #ubuntu if you can, or the appropriate bug tracker05:00
nokia3510 the #ubuntu is full of "halp...my win7 has an ubuntu issue"05:01
nokia3510I use fedora on daily basis but never had much to do with upstart05:01
nokia3510also I'm more at leisure with fedora's cli, not debian05:02
nokia3510but thanks anyway, I'll find some way to digg more info about upstart configs in karmic05:03
taurenit seems that there is no value for $USER when processes in a user crontab file run. is that correct?06:42
taurenoops, wrong window. sorry.06:42
edgecase1Keybuk, hey what about upstart knowing state of system before it's started... ie netbooting leaves NIC configured when starting /sbin/init?14:22
Keybukwhat about it? :)14:22
edgecase1does it do that now, or any plans to...14:23
edgecase1i see 2 options... pass the info to upstart, or probe the system to figure it out14:23
edgecase1i think one of the blueprints is talking about that14:25
KeybukUpstart doesn't know anything about NICs ...14:25
Keybukso why would it need to know about their state14:25
edgecase1that's just one use-case for the functionality of knowing system state14:25
Keybukwhat other kind of system state?14:25
Keybukall Upstart knows about is pids14:25
edgecase1the ifup/ifdown scripts know about NIC state14:26
edgecase1well vaguely i thought that nic state might be equal to started/starting state of the network.conf or similar jobs14:26
edgecase1ok I think i'll assume probing method, until i'm thinking clearly about it14:28
Keybukit's definitely something to think about14:54
Keybuktransfer of state from initramfs14:54
Keybukwe have a sneaky hacky patch in ubuntu14:54
Keybukfor each file /dev/.initramfs/*.pid, if there is an equivalent /etc/init/*.conf then Upstart marks the job as running with the pid in the pid file14:54
wasabihi edgecase115:10
wasabiKeybuk, you have an infrastructure for inplace upgrades of upstart, right? :)15:11
wasabiSounds dangerous, but use that to exchange state.15:12
Keybukno15:12
Keybukbut that's one of the ideas15:12
wasabiHmm. Thought there was a way to dump the state out of it and have it exec a new version of itself.15:12
wasabiOr something.15:12
Keybukhasn't been for ages15:12
Keybukit's hard to maintain it while redeveloping upstart15:13
wasabiI haven't paid attention for ages. =(15:13
sadmacKeybuk: wrt dumping object state, I had thoughts to implement an nih-json on top of nih-parse when it was done, and then produce a complimentary nih-serialize15:19
Keybukjson was my idea too15:20
Keybukit's a nice format15:20
Keybukyou can read it quickly15:20
Keybukyou can debug it15:20
Keybuketc.15:20
sadmacindeed15:20
sadmacnih-serialize is still a very rough idea I'm having. not sure what I would want it to be.15:21
KeybukI'd vaguely thought as well that root should be able to get a dump of all init state this way15:22
Keybuke.g. why a job hasn't started => get the json of the state to see15:22
sadmacKeybuk: I'd hope that'd be a last-resort measure. There should be more straightforward presentations of that information for hyoomans15:24
sadmacor at least most of them15:24
Keybuka client could interpret that15:25
Keybukie. initctl15:25
sadmacI'd see a json state dump as being one step before a core dump in your debugging tool box15:25
Keybukit just seemed like a nice way to transfer data15:25
sadmacah15:25
Keybukright15:25
sadmacyeah I could see that15:25
sadmacKeybuk: my only worry would be app writers would forego the much saner dbus ways of getting (some of) that information and start trying to do everything that way.15:27
Keybukyeah that's true15:28
sadmacpython programers lurve them some json15:29
Keybukwhich is ironic really15:31
sadmacI'm a ruby programmer, so I lurve me some YAML. But its context-sensitive, so there's no fucking way I'm writing a parser for it.15:33
edgecase1wasabiiiiiiiiiII!15:41
sadmacKeybuk: a blog commenter suggested we use augeas to do config parsing15:51
sadmacjust thought I'd mention it15:51
Keybukwhat's that?15:54
edgecase1how many MB of unaudited code would that add :P15:54
sadmacKeybuk: its a general-purpose config file parser/editor tool. Its designed to give you a safe api to do things like update grub.conf. He's suggesting we use it to parse our own config files, with the added benefit that other tools can introspect our config files via the same grammar definition.15:55
sadmacKeybuk: its intriguing. edgecase1 has a big point though. Its kinda big afaict15:55
nottingis the commenter dlutter himself?15:56
sadmacnotting: I think it was. I remember he said "shameless plug" at the start15:56
sadmacnotting: yep. it was.15:56
Keybuksadmac: ask him what his test suite code coverage is :p15:56
sadmacKeybuk: done.15:59
edgecase1what's librt used for?16:05
edgecase1just async io?16:05
Keybuksadmac: also, obviously, what his approach to NULL returns from malloc and realloc are :p16:05
sadmacKeybuk: if we seriously think its a good idea we could audit his code.16:07
sadmacKeybuk: the lenses themselves appear to have a builtin testing framework16:10
Keybukwithout looking, I can't tell16:11
edgecase1what about an external utility to parse, that just connects like initctl cmd does, to feed in the objects16:12
edgecase1keep /sbin/init small16:12
edgecase1it links libc, librt, libdbus, libpthread now16:12
edgecase1is librt needed?16:12
sadmacwhy is it linking libpthread?16:13
sadmaclibrt might come with glibc in some cases16:13
Keybukcause librt does16:13
Keybukand I think libdbus does16:14
sadmacKeybuk: augeas.net16:14
sadmacif you want to look into that more16:14
* sadmac can't really be the one to decide that he just wrote a parser for no good reason16:15
ionErlang has an incredibly good facility for runtime upgrades of everything. It sort of depends on all the state being on the stack, though.16:19
Keybuksadmac: will look in a bit16:20
edgecase1the trick is changing the in-core format on upgrade16:20
Keybukcurrently debugging a plymouth issue that causes our beta installer to crash X :)16:20
edgecase1is anyone working on updating bridge and vlan networking to use upstart?17:03
sadmacedgecase1: in which distro? :)17:04
edgecase1ubuntu... but if any distro is, that'd be useful17:04
sadmacedgecase1: from fedora's side I'm pretty sure init is going to get out of that business altogether and let network manager take it over17:04
edgecase1for servers too?17:04
sadmacedgecase1: yep17:05
sadmacedgecase1: network manager is growing a command line in F1317:05
edgecase1ic17:05
* sadmac needs to play with nmcli a little17:06
edgecase1i wonder what the target audience is... i suspect it will have a smaller scope than "anything linux networking can do"17:06
edgecase1nmcli might end up as clone of cisco, or quagga17:07
sadmacedgecase1: maybe at the moment. The idea is that it should replace everything you ever loved though.17:07
edgecase1maybe the networking "power-users" will just use bash scripts and be forced to rip out network-manager17:07
edgecase1running a BGP router makes me skeptical of things, i'll admit to bias17:08
edgecase1is network manager sending events to upstart already?17:11
sadmacedgecase1: no. that will come too. mostly to replace the old "dispatcher" stuff17:13
edgecase1i wonder if the economics are what keeps the advanced networking out of "nice" tools like network-manager... there are too few BGP routers vs webservers vs laptops to get developer interest17:14
edgecase1might be worth some thought about how quagga could leverage what NM does well17:15
sadmacedgecase1: the laptops needed it most. they got their features first./17:15
sadmacedgecase1: but its all coming17:15
edgecase1exactly17:15
edgecase1BGP routers are like Waiting for Gaudot though17:15
sadmacedgecase1: that's why fedora does things like rip out all the old bash scripts (not that we're doing that yet). sure its a pain in the ass and people will flame and things will break. But that's what will make it work :)17:16
edgecase1reasonable compromise might be to fine some mutual agreement so NM doesn't trample quagga and vice-versa17:16
edgecase1netlink is pretty good for sharing network stuff17:17
edgecase1only conflict is if 2 daemons want to set the IP addrs of the same interface17:18
edgecase1there is no arbiter saying NM or quagga or bash scripts "own" a certain interface17:18
edgecase1i immagine there's #network-manager for that discussion?17:19
sadmacedgecase1: I'm guessing17:20
sadmacedgecase1: You should talk to Dan Williams about this stuff17:20
edgecase1he at ubuntu or redhat or ?17:21
sadmacedgecase1: red hat17:21
sadmacedgecase1: he's upstream for network manager though17:21
edgecase1how can i reach him?17:21
edgecase1upstream, what's the significance of that?17:22
edgecase1distro agnostic?17:22
Keybukostensibly17:22
Keybukwhen RH people say "upstream", they're either17:22
Keybuk - complaining that Ubuntu didn't use RH's code17:23
sadmacedgecase1: dcbw17:23
Keybuk - pretending that Fedora's packages maintained by RH developers aren't "authorative" :p17:23
Keybuk - avoiding "patches welcome"17:23
Keybuk<g>17:23
sadmacedgecase1: dcbw on freenode17:23
sadmacedgecase1: but dunno if he's on17:23
edgecase1i'll check out #nm17:24
sadmacKeybuk: just because you guys are trying to make a proprietary linux by making nobody /want/ your patches....17:24
Keybuksadmac: says the guys writing GNOME Shell ;-)17:25
nottingdcbw works on the networking stack. makes 100% IRC availability tricky17:26
edgecase1physician heal thyself!17:26
sadmacKeybuk: that's going to be part of gnome 3.17:27
Keybuksadmac: uh-huh :p17:27
Keybukwhich is released when? :p17:27
Keybukwasn't that supposed to be last week? :p17:27
nottingno, that was upstart 1.0! (we all can play this game... ;) )17:27
Keybukedgecase1: this is just inter-distro banter ;p  we like each other really17:28
Keybukwe all agree to hate Mandriva17:28
sadmacKeybuk: this is why I love that we /use/ upstart. Its the giant logical fallacy in your argument. Or maybe the fact that you take our patches is the giant logical fallacy in our argument. The point I'm trying to make is I have a giant logical phallus.17:29
edgecase1heh17:29
Keybuksadmac: :D17:29
Keybukif it wasn't for Fedora, we'd have to actually write our own code :-/17:30
sadmacand now its waaay past lunch time and I haven't found anyone to eat with. To the lonely food!17:30
Keybuktalking of which17:31
* Keybuk goes back to debugging broken Fedora code17:31
Keybukyay plymouth! :D17:31
Keybukoh arse18:03
Keybuksee, I go and sarcastically accuse plymouth of being crap18:03
Keybukbut it turns out that the bug is actually in upstart!18:03
nottingsadmac: did you ever make progress on the display manager starting weirdness?18:25
sadmacnotting: which weirdness?18:43
nottingwhere we were trying to have both generic and specific events, and have the specific one  1) start when the generic one is called with an argument 2) call 'stop <generic>' in its post-start18:45
nottingit wasn't working 18:45
sadmacnotting: oh yeah. the way I said to do it should have worked I believe. Keybuk suggested the bug may have already been filed.18:45
KeybukI liked what halfline said18:46
Keybukhave a display manager task18:46
Keybukgdm, kdm, etc. start on starting display-manager18:46
Keybukcheck if they want to run, and if they do, stop display-manager so that fallback doesn't18:46
nottingyeah. didn't work.18:47
sadmacKeybuk: right, that's what we were doing. We did the latter "if they do" part by putting stop display-manager in the post-start of gdm/kdm/etc18:47
Keybukit didn't work?18:47
sadmacKeybuk: iirc display-manager remained running and the service killed itself18:47
Keybukthat's odd18:47
Keybukit should work18:47
Keybukwe do tricks likat18:48
Keybuklike that18:48
Keybukthat's how our installer works, for example18:48
sadmacKeybuk: I mentioned it to you I think, and you said there was a filed bug from ubuntu, though I don't know if we were totally clear on what was happening.18:48
nottingKeybuk: mail bounced.18:48
sadmacand I get all the launchpad mail, so I would have seen it I'd think18:49
Keybukoh18:50
Keybukbar.conf shouldn't be "task" no?18:50
Keybukshouldn't make much difference tho18:51
sadmacnotting: was it?18:51
nottingi don't think that made a difference... it was just that way as it made testing it much simpler if it didn't respawn all the time18:52
nottingbut i can dig up a test rig and try again18:52
halflinefor reference, previous discussion about this is here: http://rstrode.fedorapeople.org/quest_to_find_a_dm.txt18:53
Keybukhttp://pastebin.ubuntu.com/396866/18:54
nottingthis also, for all i know, could have been fixed somewhere between 0.6.3 and 0.6.518:54
KeybukMar 17 18:53:47 quest init: bar post-start process (30448) terminated with status 118:54
KeybukNO SUCH INSTANCE innit18:55
sadmacoh. that could explain it.18:55
sadmacwhy isn't it finding er then?18:55
KeybukI think18:55
Keybukhmm18:56
nottingfoo hasn't started enough yet for there to be something to stop?18:56
Keybukshouldn't be, goal should still be same18:56
sadmacno it should still find the instance...18:56
Keybukquest scott% cat /tmp/bar-ps.3047518:56
Keybukinitctl: invalid option: --no-wait18:56
KeybukTry `initctl --help' for more information.18:56
nottingok, *that's* a 0.6.3 vs 0.6.5 difference :)18:57
KeybukMar 17 18:57:29 quest init: Connection from private client18:57
KeybukMar 17 18:57:30 quest init: foo goal changed from start to stop18:57
Keybukno18:57
Keybuk--no-wait has to come after stop18:57
Keybukinitctl stop --no-wait foo18:57
Keybukthat's your bug18:57
sadmacwow. that was silly18:58
nottingseriously? it's positional?18:58
Keybukit follows the same convention as svn, git, etc.18:58
Keybukinitctl <global options> command <command or global options> ...18:58
halflinecan't you just run "stop" instead of "initctl stop" ?18:58
Keybukhalfline: yes ;)18:58
nottingi always wondered whether some other package shoved a start/stop command in $PATH, though. meh.18:59
nottingcan always pass the full path18:59
Keybukplus Upstart always runs in sane PATH anyway18:59
Keybukadmittedly, /sbin is near the end18:59
sadmacnotting: I wanted to recommend a patch also to unset UPSTART_JOB at the top of /etc/rc . If its set anything in the init scripts that runs "start" or "stop" without arguments will derail the whole runlevel transition. The oVirt guys managed to do this with a typo just the other day. Probably safer to make it go away.19:00
* Keybuk goes back to fixing the upstart-takes-a-chainsaw-to-plymouth's-vt bug that's blocking Ubuntu β1 ;-)19:00
Keybuksurprised you guys haven't noticed that one yet <g>19:01
Keybukmaybe you have19:01
Keybukmaybe *that's* why plymouth sets the console to unbuffered mode before every write ;-)19:01
sadmacKeybuk: I've got one now where using the serial console makes us kernel panic. plautrba has an upstart patch that fixes it, but nhorman came back and said "wait, I don't know if upstart is where we should fix that one..."19:02
Keybukwhat's the patch?19:02
halflineyea plymouth puts it back in unbuffered more for every write because for i did that there were cases where it'd get thrown back into cooked mode19:04
halflinei don't remember the details, that change went in a long time ago19:04
Keybukhalfline: like when you're starting X19:04
sadmacKeybuk: https://bugzilla.redhat.com/attachment.cgi?id=39962119:04
Keybukand doing a transition19:04
sadmacdoesn't look right to me19:04
Keybukand it's very interesting19:04
sadmacoh, I don't know if you can even see that19:04
halflineKeybuk: nah, remember we quit plymouth before X starts right now19:04
Keybukwhat happens when X has its VT changed back into raw mode19:04
KeybukEnter looks a bit like C-\ <char>19:04
Keybukit's amazing what C-\ does to X ;-)19:04
Keybukhalfline: :D19:05
Keybuksadmac: You are not authorized to access bug #568418.19:05
halflinereally? that's bizarre19:05
sadmacKeybuk: that makes sense. lemme pastebin that...19:05
Keybukhalfline: we took out the set_unbuffered a while back19:05
Keybukbut just had another occurance of a similar bug19:05
Keybukplymouth sets console to uncooked19:06
Keybukupstart resets it cooked19:06
KeybukX resets it to uncooked19:06
sadmacnotting: also why does plautrba have upstart in a git repo? I hate bzr too, but... come on.19:06
Keybukplymouth resets it to cooked on its way out19:06
nottingsadmac: i dunno19:06
KeybukX dies when you press Enter ;-)19:06
sadmacKeybuk: http://pastebin.com/zu4n14gG19:06
halflinedies with SIGQUIT ?19:06
sadmacKeybuk: looks like he fixed it the way debian fixed those SSL warnings awhile back :)19:06
Keybukhalfline: yup19:07
Keybuksadmac: no idea why that would avoid a panic19:07
halflinei wonder if plymouth's "put back in cooked mode" code is wrong...19:07
Keybuksadmac: that's removing the code that guards against SysRq-K from killing upstart19:08
Keybukhalfline: no, it isn't - it's just inconveniently timed19:08
halflineit's hard for me to bridge "in cooked mode" to "enter sends sigquit"19:08
Keybukwell sorry19:08
Keybukthere is a small plymouth bug19:08
Keybukbut yeah, apparently enter and sigquit look very similar to X19:11
halflinehmm looking at the tcsetattr man page19:13
halflineit appears  picked my terminal settngs19:14
halflineby taking the cfmakeraw settings and invertng them19:14
halflinethis was probably not the wisest move19:14
Keybukheh19:14
halflinetime to switch it to use the values from stty 's sane mode19:15
* Keybuk is trying to remember why upstart sets terminal settings in the first place19:16
sadmacKeybuk: I remember a bug when we first used upstart where I think the gettys were set uncooked, and you couldn't actually hit enter to punch in your username19:17
sadmacforget what made that go away19:17
sadmacnotting: do you have a quick reproduction environment for 568418?19:18
* Keybuk afk for about an hour, will read scrollback19:19
sadmacnotting: if not any tips on testing serial+kvm?19:21
nottingsadmac: haven't seen it, but haven't tried to reproduce19:36
nottingserial + kvm is a PITA19:36
nottingdig up the magic qemu flags and start it by hand19:37
halflinevirt-manager has a serial console display... isn't addng console=ttyS0 enough?19:39
halflineon kernel cmdline i mean19:39
nottinghalfline: i'm told due to perms it doesn't actually work in virt-manager yet19:45
halflineah19:51
halflinei had some fun with virt manager permissions the other day.  i had to vim /usr/lib*/python*/site-packages/something-or-other and add a fchmod call to get to create a vm19:52
sadmachalfline: my option to switch to serial console is greyed out in the menu. guess that's the solution20:08
nottingcole said it theoretically works if you run virt-manager as root. 20:14
sadmachmm. might try that20:16
=== rberger_ is now known as rberger
=== rberger_ is now known as rberger
=== robbiew is now known as robbiew_

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