/srv/irclogs.ubuntu.com/2014/09/05/#ubuntu-devel.txt

mterryrobert_ancell, http://paste.ubuntu.com/8254607/00:02
mterryworth the wait!00:02
robert_ancellmterry, hmm, so that log looks good. There's definitely a logind session open and we activated it00:03
robert_ancellmterry, have you tried running loginctl and checking everything looks happy there?00:04
mterryrobert_ancell, it does yes00:04
mterryrobert_ancell, it's a cgroup thing as far as I can tell00:04
mterryroot@ubuntu-phablet:/# cat /proc/`pidof unity8`/cgroup00:04
mterry4:name=systemd:/00:04
mterry3:freezer:/user.slice/user-32011.slice/session-c1.scope00:04
mterry2:cpuacct:/user.slice/user-32011.slice/session-c1.scope00:04
mterry1:cpu:/user.slice/user-32011.slice/session-c1.scope00:04
robert_ancellmterry, right, but the cgroups are all set by pam_systemd aren't they?00:05
robert_ancellmterry, have you confirmed 1.11.7 works fine?00:05
mterryrobert_ancell, it does for me yes00:05
mterrylet me try downgrading on this same image to double confirm00:06
cjwatsonsiretart: right, cool, I'll just keep ploughing through the equivalent rebuilds then ...00:08
* cjwatson wants binNMUs00:08
ScottK+100:09
robert_ancellmterry, can you get a lightdm.log from 1.11.7 so we can diff00:09
mterryrobert_ancell, yup, downgrading works fine00:09
robert_ancellthere's just nothing significant in the diff in how we interact with PAM... very odd...00:10
mterryrobert_ancell, http://paste.ubuntu.com/8254652/00:10
mterryand more relevantly:00:10
mterryroot@ubuntu-phablet:/# cat /proc/`pidof unity8`/cgroup00:10
mterry4:name=systemd:/user.slice/user-32011.slice/session-c1.scope00:10
mterry3:freezer:/user.slice/user-32011.slice/session-c1.scope00:10
mterry2:cpuacct:/user.slice/user-32011.slice/session-c1.scope00:10
mterry1:cpu:/user.slice/user-32011.slice/session-c1.scope00:10
robert_ancellmterry, that's on a good run?00:11
robert_ancellWhat does "loginctl session-status $XDG_SESSION_ID" say on a good and bad run00:11
mterryrobert_ancell, right00:11
mterryroot@ubuntu-phablet:/# loginctl session-status c100:12
mterryFailed to query ControlGroup: No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/systemd1/unit/session_2dc1_2escope00:12
mterryc1 - phablet (32011)00:12
mterry           Since: Fri 2014-09-05 00:07:59 UTC; 4min 11s ago00:12
mterry          Leader: 1439 (lightdm)00:12
mterry            Seat: seat0; vc100:12
mterry         Service: lightdm-autologin; type unspecified; class background00:12
mterry           State: active00:12
mterry            Unit: session-c1.scope00:12
mterrythat's a bad run00:12
mterryWould need to reflash to get good run00:12
mterryrobert_ancell, like I said, logind thinks everything is fine00:12
mterryrobert_ancell, the problem is that apps don't think they are part of the active session00:13
robert_ancellnot sure about "class background"00:13
mterryrobert_ancell, I don't know what that means either00:13
robert_ancellmterry, you can't just update lightdm back to 1.11.8?00:13
mterryrobert_ancell, oh right!  ahem00:14
mterryrobert_ancell, I forgot I had downgraded in fact00:14
mterryrobert_ancell, so this is from a good run00:14
mterrylet me upgrade again00:14
robert_ancellrsalveti, did we confirm if your krillin does the PK stuff right with lightdm 1.11.8?00:14
mterryrobert_ancell, I'm a little loopy right now00:14
robert_ancellno worries00:14
mterryroot@ubuntu-phablet:/# loginctl session-status c100:16
mterryFailed to query ControlGroup: No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/systemd1/unit/session_2dc1_2escope00:16
mterryc1 - phablet (32011)00:16
mterry           Since: Fri 2014-09-05 00:15:09 UTC; 44s ago00:16
mterry          Leader: 1359 (lightdm)00:16
mterry            Seat: seat0; vc100:16
mterry         Service: lightdm-autologin; type unspecified; class background00:16
mterry           State: active00:16
mterry            Unit: session-c1.scope00:16
mterryrobert_ancell, that's the bad00:16
mterryseems identical00:16
robert_ancellyeah00:16
hallynwill be really curious to see how lightdm could cause it00:16
robert_ancellhallyn, if we were setting up PAM incorrectly that would do it, but I can't see any significant change there00:17
robert_ancellmterry, could you do a bisect?00:17
robert_ancellmterry, also, is it just you or is this widespread?00:17
mterryrobert_ancell, widespread00:17
mterryon krillin00:17
mterryrobert_ancell, sure, I can bisect... let me get a build env set up for krillin00:18
robert_ancellIt's got to be either r2037+r2038 or r204100:19
mterryok, will check those explictly00:21
mterryrobert_ancell, looks like it wasn't 204100:45
robert_ancellmterry, how's it going with the bisecting?01:22
mterryrobert_ancell, good but ran into a problem with re-running a debuild without cleaning (didn't seem to like that)01:22
mterryrobert_ancell, I'm now testing the 2037/2038 commits01:22
robert_ancellso to confirm - it works with 2036 (1.11.7) and not 2043 (1.11.8)01:23
robert_ancellwhat other revs?01:23
siretartcjwatson: thanks. let me know if you encounter problems!01:23
cjwatsonsiretart: jitsi and lightspark are my undiagnosed failures so far01:24
mterryrobert_ancell, it does not work with 204001:25
mterryrobert_ancell, and I'm testing 2038 now01:26
siretartcjwatson: jisti is debian bug #75983501:27
ubottuDebian bug 759835 in src:jitsi "jitsi: FTBFS: [javadoc] /«PKGBUILDDIR»/lib/src/jsip/src/gov/nist/javax/sip/header/AuthenticationHeader.java:443: error: unmappable character for encoding ASCII" [Serious,Open] http://bugs.debian.org/75983501:27
mterryrobert_ancell, as expected, 2038 doesn't work either01:28
cjwatsonsiretart: is it?  seems to be a warning in our build ...01:28
mterryrobert_ancell, is it worth trying 2037 specifically?01:28
cjwatsonsiretart: oh, sorry, apparently I can't read01:28
robert_ancellmterry, have you tried a locally built 2036?01:28
mterryrobert_ancell, yes, it worked01:28
robert_ancellyou should probably try for completeness, but 2038 is probably the candidate01:29
siretartlightspark looks kindof unrelated to libav: /build/buildd/lightspark-0.7.2/src/scripting/abc.cpp:38:36: fatal error: llvm/Analysis/Verifier.h: No such file or directory01:30
cjwatsonsure, unrelated but nevertheless a blocker01:31
cjwatsonrelatedness is irrelevant if it's in the list :)01:32
cjwatsonthere was a recent llvm change I think ...01:32
cjwatson(no details, I just saw it go by in my mirror update)01:32
robert_ancellmterry, what method are you using to build on your device? Remount rw then bzr-buildpackage?01:32
mterryrobert_ancell, uh, I put the device in rw mode sure.  Not remounting each time though01:33
mterryrobert_ancell, and then debuild sure01:33
robert_ancellmterry, you just do a "# mount / -o,remount,rw" to go from a stock image? No other special tricks?01:34
=== Ursinha is now known as Ursinha-afk
mterryrobert_ancell, there's a file you can put in  /userdata that makes the image rw on boot01:34
robert_ancellah, what is that?01:35
mterryrobert_ancell, than I can do normal stuff like apt-get build-dep lightdm etc01:35
mterryrobert_ancell, uh I think the file is .writable_image, but I usually just run "phablet-config writable-image" from my host device01:35
robert_ancellawesome, thanks01:35
mterryrobert_ancell, do you have a krillin?01:36
siretartcjwatson: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-March/071087.html indicates that Verfier.h moved post 3.4 to llvm/IR/Verifier.h01:36
robert_ancellmterry, no, I was hoping I might be able to reproduce on mako01:36
mterryrobert_ancell, I have not been able to myself01:36
robert_ancell:(01:36
cjwatsonsiretart: ah, plausible01:37
robert_ancellmterry, The only thing I can think of now is to manually start removing parts of r2038 to find out what's actually triggering it.01:38
mterryrobert_ancell, nothing seems especially suspicious to you?01:39
siretartcjwatson: https://github.com/lightspark/lightspark/commits/master/src/scripting/abc.cpp indicates that upstream didn't port it to llvm 3.5 yet01:39
robert_ancellmterry, I've been reading through the code here and there's nothing that stands out. We listen to move D-Bus events from logind, we activate sessions slightly differently (but from reading the systemd source both methods should have the same outcome) and we check CanGraphical on the seat. But the logs indicate that's always TRUE in your case so it should be the same behaviour as previously01:40
robert_ancellmterry, dmesg doesn't show logind complaining about anything does it?01:42
mterry[    9.925763] (1)[1099:systemd-logind]systemd-logind[1099]: New seat seat0.01:43
mterry[   11.310221] (0)[1099:systemd-logind]systemd-logind[1099]: Failed to start unit user@32011.service: Unknown unit: user@32011.service01:43
mterry[   11.311741] (0)[1099:systemd-logind]systemd-logind[1099]: Failed to start user service: Unknown unit: user@32011.service01:43
mterryrobert_ancell, but those are normal errors I think01:43
robert_ancellyeah, I get them here01:43
robert_ancellmterry, I have a "New session c1 of user lightdm." on my desktop, do you get those on a good run?01:44
siretartwhat's going on with llvm in ubuntu? it seems to me that debian testing has both llvm 3.4 and 3.5, whereas ubuntu dropped 3.4 already. why is that?01:44
mterryrobert_ancell, hold on, testing 203701:44
robert_ancellk01:44
mterryrobert_ancell, 2037 is good01:45
robert_ancellwell, that confirms it, 2038 it is01:45
mterryrobert_ancell, you have that message in your dmesg?01:45
robert_ancellmterry, on my desktop01:45
mterryrobert_ancell, I don't here, even on a good run01:46
mterryrobert_ancell, ok...  shall I start disassembling 2037?01:46
mterry*203801:46
robert_ancellyes please01:47
=== Ursinha-afk is now known as Ursinha
cjwatsonsiretart: I'll finish uploading the remaining rebuilds tomorrow.  sleep now, night01:49
cjwatsonI've probably loaded up the buildds enough for a while anyway :)01:53
siretartcjwatson: sure, thanks for your help, and have a good night!01:53
RAOFrobert_ancell: Are you trying to work out why sound doesn't work now? :)01:56
robert_ancellmterry, ^?01:56
robert_ancellis the symptom no sound?01:57
RAOFOn the desktop.01:57
robert_ancellRAOF, sound works for me..01:57
RAOFMaybe you don't VT switch enough :)01:58
mterryno that's a separate issue I think :)01:58
mterryfrom this krillin thing01:58
robert_ancellRAOF, still works after VT switch01:58
RAOFHm. *Something* was messing with my logind sessions, because I didn't have an X11 session and none of my sessions were marked as active.02:02
robert_ancellRAOF, what version of lightdm?02:05
RAOF1.11.802:05
RAOFrobert_ancell: ck-list-sessions output: http://paste.ubuntu.com/8255328/02:06
robert_ancellRAOF, don't you mean loginctl?02:07
RAOFApparently not :)02:08
robert_ancellloginctl show-session to show the current session properties02:08
RAOFhttp://paste.ubuntu.com/8255346/02:09
RAOFWell, that's all of them.02:09
RAOFObviously I can't run that command in the failing case :)02:09
RAOFWell, not now.02:09
robert_ancellRAOF, you're c2 right?02:10
robert_ancellThat's the active session02:10
RAOFRight. I *gained* an active session by running ck-launch-session02:10
robert_ancellThat would have been c4 - it's the last session added02:11
RAOFBut it was run on vt702:12
mterryrobert_ancell, ah hrm...  I looked in the folder I built my 2038 bisect in, and it wasn't valid -- rebuilding 2038 and it works.02:18
robert_ancellmterry, ah02:19
robert_ancellmterry, so where does that leave the range of possibilities?02:19
robert_ancellRAOF, can you check lightdm --show-config02:19
mterryrobert_ancell, I no longer have my 2040 folder lying around.  But assuming I did do that one right, either 2039 or 2040 are broken02:20
robert_ancellmterry, 2040 was reverted in 204202:20
robert_ancellmterry, and 2039 is only test changes02:20
mterryhrm.  Then let me redo my 2040 bisect02:21
RAOFrobert_ancell: http://paste.ubuntu.com/8255461/02:21
robert_ancellRAOF, urgh, how did you get a (null) in there...02:21
robert_ancellRAOF, are you in unity8?02:22
RAOFNo.02:22
RAOFHeh. This was after removing a .dpkg-bak file in /etc/lightdm/conf.d that was causing lightdm to segfault on startup... :)02:23
* RAOF needs to go out and get lunch; back later.02:23
mterryrobert_ancell, 2040 works too, will try 204102:38
mterrywhich I'm guessing will fail?02:38
robert_ancellthat's the guess02:39
mterryrobert_ancell, OK 2041 seems to work too...  Are the later commits risky?02:51
mterryOr am I just screwing up my bisects02:52
robert_ancell2042 is a reversion and 2043 is the release02:52
mterry:(02:53
robert_ancellis 2043 working now?02:54
mterrygrr, it better not be02:54
mterryrobert_ancell, ok 2043 did not work03:12
mterryso that's good I guess03:12
robert_ancellI guess?03:12
mterryAssuming my 2041 test was valid, which I'm not guaranteeing, I'll test 2042 next...  Is that likely to be a problem commit?03:13
mterryYou indicated no03:13
* mterry is beginning to doubt his ability to bisect03:15
* mterry tries 2041 again -- that really should be the problem commit03:16
robert_ancellmterry, how goes 2041?03:37
mterryrobert_ancell, it was good again03:37
mterryrobert_ancell, trying 2042 for the lulz03:37
robert_ancellmterry, do you have all the packages built so you can easily switch between?03:37
mterryrobert_ancell, I unfortunately have been building the .debs over each other.  But I have the build directories sitting there so could regenerate debs in relatively shorter order03:38
mterryrobert_ancell, and 2042 predictably fails (if it worked and 2043 failed, I'd just give up)03:39
mterryrobert_ancell, so assuming my 2041 tests have been valid, and I did redo it...  That means 2042 is the problem03:40
robert_ancellthat makes no sense03:41
mterryrobert_ancell, I do see something about add_login1_seat in that commit...  any chance that is odd?03:41
mterrys/odd/buggy/03:42
robert_ancell2042 = "Revert globbing changes - there are problems with it"03:42
mterryright... so we're going back to historical behavior03:42
robert_ancellonly has changes in src/lightdm.c regarding configuration loading03:43
robert_ancellAnd they only relate to multi-seat anyway, which is not being used on krillin03:43
mterryrobert_ancell, :(03:44
mterryrobert_ancell, so I'm guessing I mis-tested 2041...  twice03:44
robert_ancellmterry, does repeated runs have the same result?03:45
mterryrobert_ancell, it always has in the past03:45
robert_ancellmterry, So to summarise: LightDM 1.11.8 is breaking PolicyKit on krillin, but not mako. 1.11.7 doesn't break PolicyKit on krillin, but does have a race-conditn triggered crash. The bisect it indicating r2042 could cause the problem, but it doesn't make sense. There's been some inconsistency in the bisecting03:51
robert_ancellI should also say "not mako or desktop"03:51
mterryrobert_ancell, the inconsistency in the bisecting so far was just me building the wrong revisions -- not actual inconsistencies in results observed -- i.e. so far each revision has exhibited reliable behavior03:52
mterryI think03:53
mterryrobert_ancell, I take that back -- I built the same 2041 deb and this time it is broken03:53
mterryso maybe I need to do more reboots before declaring a given revision as "clean"03:54
robert_ancellI have to head out soon, and you must be almost falling asleep. What do you think we should do?03:54
mterryI'll go back and test the 2040 revision03:54
mterryrobert_ancell, I think the likely culprit is 2041 -- but if this problem isn't 100% reproducable, I need to retest my older bisects03:55
mterryrobert_ancell, but my 2041 test has proven that the problem existed in at least 20403:55
mterry204103:55
mterryeven if it doesn't always show up03:55
mterryrobert_ancell, I am about to fall asleep, so I'm going to bed.  I can continue testing tomorrow.  But I'm not sure I'm qualified to fix it, especially since I don't have the context for the original 2041 commit03:56
robert_ancellmterry, 2041 is the fix for bug 136472503:57
mterryrobert_ancell, and it's tough for you to investigate without a krillin03:57
ubottubug 1364725 in lightdm (Ubuntu Trusty) "logind session ID not used due to race condition" [High,In progress] https://launchpad.net/bugs/136472503:57
robert_ancellyeah, I'm just guessing here03:57
mterryrobert_ancell, so I can continue tomorrow and work on it myself03:58
mterryrobert_ancell, but if you have any guesses, email them to me and I can try03:58
robert_ancellmterry, an option is trying r2040.1.1 which is the sticking plaster solution to the above bug instead of the proper solution in r204103:58
mterryrobert_ancell, OK, will try that tomorrow03:58
robert_ancellmterry, thanks for staying up. bye03:59
mterrybut first I should probably stress test r2040 itself to make sure that it doesn't exhibit the bug03:59
mterryit's annoying that it creeped back03:59
mterryI thought it was always reproducable03:59
mterryanyway, bye03:59
pittidoko_: pgrouting> ah right; thanks for the sync04:34
pittidoko_: I'll sort out postgis04:34
pittidoko_: I wedged the mysql-5.5 result for gcc-4.9, will go in now05:24
pitti(new mysql-5.5 version itself will still stay in -proposed)05:25
=== catbus is now known as Guest90389
dholbachgood morning07:01
mlankhorstmorning07:49
mlankhorstdoko_: don't you mean llvm 3.5 final?07:49
=== Tribaal_ is now known as Tribaal
robert_ancellRAOF, who is the nvidia person who I should subscribe bug 1365336 to? And which package collects nvidia issues?08:07
ubottubug 1365336 in lightdm (Ubuntu) "Lightdm update=No desktop" [Undecided,Confirmed] https://launchpad.net/bugs/136533608:07
robert_ancellIt has some udev rules to make nvidia cards work with logind and CanGraphical08:07
dholbachzul, lamont: happy birthdays! :)08:08
seb128robert_ancell, try tseliot or mlankhorst08:10
mlankhorstalberto milone08:10
seb128robert_ancell, did you figure out/resolve that "lightdm not working" issue that started this week? I saw a few people mentioning it, including kenvandine08:11
robert_ancellseb128, there seem to be a few issues08:11
seb128seems sil2100 might have issues as well (but I missed the start of the irc discussion so just assuming there)08:11
seb128robert_ancell, ken said lightdm failed to start (or start a session) where gdm is working08:12
seb128that was yesterday08:12
robert_ancellneed bugs and information...08:12
seb128the bug you just listed doesn't have info?08:12
robert_ancellseb128, that one does, don't know if they have the same issue08:13
seb128k08:15
sil2100Not sure if my bug is related08:16
sil2100Since I get Unity launching, I can see that I can actually do stuff on it (as the mouse cursor changes and such), but nothing refreshes the screen08:17
sil2100i.e. Unity always stays like a screenshot08:17
sil2100If I restart unity I can see the new changes, like Nautilus or terminals that I open, but it hangs again and nothing refreshes08:18
sil2100Even though I clearly am able to move around the windows that I open (as per cursor)08:18
Saviqogra_, no mtp (or adb for that matter) on boot latest mako, had to toggle developer mode back'n'forth, that expected?08:19
Saviqogra_, is passlock required for mtp?08:19
ogra_Saviq, only for adb08:19
Saviqok yeah, no mtp here08:19
sil2100I didn't see anything useful in logs though...08:19
ogra_Saviq, i'm just writing an announcement mail :)08:19
Saviqogra_, maybe hold off on that :D08:19
ogra_Saviq, ??08:20
Saviqogra_, I've dev mode enabled (even though I have no passcode... so can't disable)08:20
Saviqogra_, mtp nowhere to be seen08:20
ogra_why would one have anything to do with the other ?08:20
ogra_is mtp-server running ?08:20
ogra_also what device ?08:21
Saviqogra_, now I added passcode, disabled devmode, MTP up08:21
Saviqogra_, mako r22308:21
* Saviq reboots08:21
Saviqogra_, the problem seems to be that you can disable passcode without disabling devmodwe08:26
Saviqdevmode08:26
ogra_Saviq, known bug08:26
ogra_next on my list08:26
Saviqogra_, that results in no mtp or adb08:26
Saviqkk08:26
ogra_mtp shouldnt be affected at all, could you file a bug ?08:26
Saviqogra_, yeah, will do, against what?08:27
* ogra_ needs to see if he can reproduce that 08:27
ogra_Saviq, heh, good question, thats most likely the gadget driver itself (property settings)08:27
ogra_start with dbus-property-service ... not really accurate but the closest i can think of08:28
sil2100I'll be in the meeting in a moment, just need to fetch the HO link08:30
Saviqogra_, devmode toggles on for me on reboot...08:52
Saviqogra_, yeah, I can't seem to disable devmode so that it would stick across a reboot...08:54
ogra_Saviq, yeah, thats still hardcoded until we have found all issues08:55
ogra_(the boot toggle)08:55
Saviqogra_, so it's always enabled on boot, that explains things...08:55
ogra_yeah, that needs a change on the android side08:55
ogra_which will be the very last step in landing this08:56
Saviqkk08:56
Saviqogra_, bug #136591108:58
ubottubug 1365911 in dbus-property-service (Ubuntu) "MTP not working on boot if passcode not set" [Undecided,New] https://launchpad.net/bugs/136591108:58
ogra_thanks09:00
=== sgnb` is now known as sgnb
rbasakinfinity: I tried a dist-upgrade from my (now built) PPA with C/R today. That wants to also remove mysql-server :-(10:16
rbasakinfinity: so I don't see any way to make progress on this now, save for uploading and keeping the window for processing NBS short, and telling people caught in that window to re-install mysql-server manually again.10:25
jamespagedoko: my latest mysql-5.5 upload should resolve the autopkgtest failure10:29
jamespagehopefully that unblocks your stuff10:29
jamespagerbasak, mysql-5.6 is suffering from the same problem as mysql-5.5 - are you planning an upload?10:36
rbasakjamespage: yes. I'll cherry-pick your patch shall I?10:46
jamespagerbasak, yes please - I'm also looking at the main.ctype_uca failure - seems it does not like running as a non-root user10:46
rbasakjamespage: I'm not sure about the dep8 test failures for 5.6 though. They failed previously though, so I didn't see it as a regression to prioritise the migration first.10:47
rbasakjamespage: I'm also doubtful about the benefit they provide anyway, since they're not package integration tests.10:47
jamespagerbasak, there are three - my patch resolves two of them10:47
jamespagerbasak, I'd suggest we skip the ctype_uca test for now in the autopkgtests - it wants to write a file to the CHARSETSDIR which bad10:50
=== MacSlow is now known as MacSlow|lunch
rbasakjamespage: do I want fix-func_math-test-failure.patch for 5.6 in Ubuntu?10:52
rbasakJust noticed a merge conflict in series.10:53
rbasak(hence I'm wondering)(10:53
rbasakand fix-mysqlhotcopy-test-failure.patch doesn't apply either :-/10:53
* rbasak investigates10:53
jamespagerbasak, lemme push it to the debian git repo - you can pick from there if you like10:54
rbasakThanks10:56
jamespagerbasak, ok - added three commits - http://anonscm.debian.org/cgit/pkg-mysql/mysql-5.6.git/log/11:02
rbasak(hence I'm wondering)(r 5.6?11:04
rbasakArgh11:04
rbasakjamespage: ah, so dep8 tests now pass for debian on 5.6?11:04
jamespagerbasak, testing now but they should I think11:04
rbasakNice. Thanks!11:04
jamespagerbasak, they don't get run anywhere automatically right now due to being in experiemtnal only11:05
rbasakI'm still not convinced we want them at all though. If the tests being run on package build are different, can we shove this test run into the build also?11:05
rbasakOr would regressions in dependencies actually cause a test failure?11:06
jamespagerbasak, they do indeed cause failures - the hotcopy ones where due to the perl 5.20 bump11:06
rbasakFair enough11:07
rbasakThat's enough for me.11:07
jamespagerbasak, I don't think you need the func_math one with mysql-5.6 - can't see that failing11:07
rbasakOK11:07
rbasakjamespage: Bjoern applied my apport patch to Debian. Is that right, or is that an issue?11:09
rbasakMakes it easier for me in Ubuntu mind.11:09
jamespagerbasak, he did indeed11:09
rbasakAlso it's all flattened into one commit? :-/11:09
rbasakI suppose it does no harm to install something into /usr/share/apport/package-hooks/ into Debian. I don't know if that's really allowed though.11:10
ogra_Saviq, your mtp issue will be fixed in the next image ... fix uploaded11:10
jamespagerbasak, hrm yes it is11:10
jamespagerbasak, I was justing thinking about that11:10
jamespageits pretty easy to scope that to derives-from ubuntu11:10
rbasakYeah that would work well.11:10
rbasakAnd then there's the postinst debhelper change, which I was just a little concerned about for Debian and SysV. I don't know the implications, since there was presumably a reason it was removed in the first place.11:11
jamespagerbasak, let me make that change11:11
rbasakjamespage: please do. It looks like I can just upload from Debian VCS then, or sync if you upload to experimental.11:11
rbasak(when we're ready)11:11
rbasakThere's still this upgrade path question for infinity, but I don't see that as a problem in experimental.11:12
rbasakjamespage: oh, one more thing though. infinity said that Conflicts/Replaces is more correct than Breaks/Replaces here. I checked each Breaks and they all should be changed to Conflicts. I've done that in my PPA, but that needs committing to Debian, too.11:13
jamespagerbasak, how does this look - http://paste.ubuntu.com/8258806/11:14
rbasakjamespage: that looks fine. I wouldn't include the unrelated noise in 21/22 in that commit, but it doesn't matter.11:15
rbasakjamespage: also, shouldn't the tag line in 11 change? Again, doesn't matter.11:15
jamespagerbasak, nah - team upload11:16
rbasakOK11:16
jamespagenot released yet - that can still change tho11:16
jamespagerbasak, will use of Conflicts break the swap out variants stuff?11:17
infinityrbasak: I disagree that you changed all your relationships.11:17
infinityrbasak: mysql-client-core-5.6 has no Conflicts, only Breaks.11:18
infinityrbasak: And if you run the upgrade with "-o Debug::pkgProblemResolver=true", you can see that's where it starts to fall down.11:18
infinityjamespage: "Swap out variant stuff"?11:19
infinityjamespage: Fundamentally, nothing has changed here as far as co-installability.  YOu had unversioned Breaks (usually a sure sign you're doing something wrong), so those packages couldn't be co-installed anyway.11:19
infinityjamespage: But all those virtuals should be C/P/R, not B/P/R, and the straight upgrades should be C/R, not B/R11:20
jamespageinfinity, no - co-installability was not supported, but installing say mariadb-server would swap out mysql-server automatically11:20
infinityjamespage: This won't make anything worse.  Doing it right will make some things better, though.11:21
jamespageinfinity, OK - nice to have another pair of eyes on that stuff11:21
infinityrbasak: So, yeah, your claim that you changes all the Breaks to Conflicts in your PPA is a blatant lie, from the PPA I'm testing. ;)11:21
infinityrbasak: Which would explain why it no workie.11:22
infinityOr, at least, would be one of the reasons.11:22
* rbasak looks11:22
rbasakinfinity: https://launchpadlibrarian.net/184032264/mysql-5.6_5.6.19-1~exp1ubuntu1~dev3_5.6.19-1~exp1ubuntu1~dev4.diff.gz11:22
infinityOh, wait, there's three versions published in here.11:23
infinityTHAT'S NOT CONFUSING ME AT ALL.11:23
rbasakThe changelog is wrong mind, since it didn't fix it. But I didn't know that when I uploaded.11:23
rbasakI thought older versions got superceded?11:23
rbasakhttps://launchpad.net/~racb/+archive/ubuntu/experimental/+packages only shows me the latest.11:24
infinityIf anything went NBS, they'll stick around.11:24
rbasakOh11:24
infinityPlus, things stick around for a short while regardless.11:24
rbasakI'd never considered NBS inside a PPA before.11:24
rbasakThey're sort of hidden from the web view.11:25
infinityAnyhow, I think I need to unwind this (and maybe tag-team with mvo) when I'm more awake.11:25
rbasakOK11:25
rbasakDo you mind extending your FFe deadline in the bug though, please?11:25
infinityBut if I don't get to anything interesting by Monday, let's opt for uploading something that's mostly correct and make sure we sort it before release.11:25
infinityFeel free to copy and paste the above. :P11:26
rbasakOK, thanks.11:26
rbasakI will check again, but I believe it'll be sorted by release just by processing NBS.11:27
jamespagerbasak, oh - we need to fix the arm64 build failure for 5.6 as well11:27
jamespagewell workaround it at least11:28
rbasakMaybe drop to -O1 for arm64 universally? Probably easier than messing with the buildsystem to pick out one file.11:28
cjwatsonI noticed recently that it's possible to fiddle with optimisations on a per-function basis11:29
jamespagerbasak, yes - that was my thinking but if we can apply something like cjwatson suggests that might be nice11:29
rbasakAh, so patch in a #if defined(arm64) #pramga?11:29
infinityrbasak: No, "just processing NBS" doesn't magically make the bug go away.  It's not actually entirely uncommon for people to have multiple releases in sources.list, and we certainly don't stop people from doing so.11:30
rbasakIt'll be annoying to test though. I don't have access to an arm64 machine right now.11:30
cjwatson__attribute__ ((optimize ("O1"))11:30
rbasakinfinity: OK. I didn't think that case was one that we considered. If we do, then I guess we need to dig further.11:30
cjwatsonor __attribute__ ((optimize ("no-tree-dce"))) or whatever11:30
rbasakThanks cjwatson11:31
cjwatson(oh yes I missed a ")" off my previous example)11:31
infinityrbasak: Well, define "we".  Some people don't, some people do.  It's a bug if that breaks, but probably not as horrendous a bug as not being able to upgrade at all.11:31
infinityrbasak: But, more to the point, anything that breaks like that is also either a sign of messy dependencies that make apt think too hard, or an apt bug, and the latter would want fixing, while the former should be made less scary to not make upgrades needlessly complex.11:32
infinity(Cause the more complex you make an upgrade, the more likely you are to have things like this happen)11:32
rbasakOK, that makes sense.11:33
infinityThe curious thing in a debug run is that it gets the first couple of swaps right, then starts choking.  So, it needs a closer look.11:33
infinityWhich I'll try to get to when I'm not asleep.11:34
rbasakGiven the binary package structure we have at the moment, I'm not sure how to declare things any better or in a way that would fix things without being wrong. So I'll wait for you to take a look.11:34
rbasakIt may be that the set of binary packages we have is needlessly complex (I think it is, anyway), but I'd like some justification to start messing with it (and it's extra work).11:34
infinityI'm curious why you suddenly sprouted a new mysql-common-N.N package.11:34
rbasakThat's one thing I can get rid of.11:35
rbasakIt's because mysql-common was previously provided by src:mysql-5.5.11:35
rbasak(I presume; I didn't do it).11:35
rbasakThe mysql-common package is pretty broken in itself IMHO. I don't think it makes sense for a single binary package from one variant's source package to be providing a my.cnf for all variants' packages.11:36
rbasakThe variants shouldn't be sharing the same /etc/mysql either, IMHO.11:36
rbasakIt's a mess.11:36
infinityIt is indeed.11:36
infinityBut even weirder to still have both the unversioned and versioned one when you're taking over the former.11:36
infinitySo, I assume you want that to become just mysql-common11:36
infinityAnd drop -5.611:37
rbasakYes. I can do that.11:37
rbasakI was trying to address this, but with release timing it seemed easier to drop 5.5 and reduce the complexity that way first.11:37
infinityI doubt that'll magically make apt happy, but any subtle change in dependencies (and this would drop a dep) might help. :P11:37
rbasakSo I was trying to do the minimal thing to get the 5.6 move done without messing with the other pieces at the same time.11:38
infinityWell, you're messing the the other pieces anyway...11:38
infinityYou're taking over mysql-common.11:38
infinity*and* shipping a new mysql-common-5.6 that depends on it.11:38
infinityWhich is weird.11:38
rbasakSure. I was just going for the minimal change.11:38
rbasakIf you think it might help, I'll fold the two packages together as well.11:39
rbasakI'll experiment now.11:39
infinityDoesn't actually matter if it'll help or not (though that would be nice), let's not upload half-finished stuff. ;)11:39
infinityTake those packages over with purpose and zeal.11:39
rbasakI see fixing up mysql as a multi-release gradual improvement. I don't think it's feasible to do it all at once.11:40
rbasakThere's some debate in Debian over the best way to do this as well, because all the other variants are tangled up in it (since they depend on mysql-common)11:40
rbasakAnd so there are other maintainers involved.11:41
rbasakHence the glacial pace.11:41
infinityrbasak: Also, I'm sure you have done this, but can you be explicit in the bug as to how you've made sure upstream didn't break ABI in their supposedly-the-same SONAME library?11:43
infinityrbasak: Maybe Debian's yelled at them enough over the years and they get it now, but they've broken ABI a few times in the past without bumping.11:44
rbasakinfinity: I just believed them. I'll ask upstream to comment in the bug confirming it.11:44
infinityrbasak: Well, or actually run an ABI checker against the libraries.11:44
rbasakinfinity: can you point me to a tool? Happy to do that, but I should ask as presumably ABI can break even if no symbols have disappeared?11:46
rbasakOr is there a tool that can check prototypes from the source also? Though that will has the same catch.11:46
infinityrbasak: Symbols can remain but argument sizes/positions can change, for example.11:46
infinityrbasak: xnox gave a talk about this at Debconf actually. :P11:46
infinityrbasak: IIRC, abi-compliance-checker is the tool he was recommending for checking both binaries and headers.11:48
rbasakThanks11:48
* infinity decides to try harder to sleep, starting with not typing.11:49
=== MacSlow|lunch is now known as MacSlow
=== jincreator is now known as 6A4AAKWKH
cjwatsonsiretart: I'm working around the lightspark thing13:03
mterryjamesh, hello!  How can I get debug output from upstart itself about job timings and such?13:03
cjwatsonsiretart: also working on jitsi, so that's all the build failures I currently know about13:07
jodhmterry: Run upstart with --debug' (or 'initctl log-priority debug' for an already booted system). However, Upstart doesn't keep timestamp information itself. But pid 1 uses kmsg so dmesg. For session init jobs, try 'sudo apt-get install upstart-monitor && upstart-monitor -n'. Alternatively, just listen for the D-Bus EventEmitted signal yourself and timestamp their receipt.13:11
mterryjodh, thanks!13:12
mterryjodh, I guessed wrong on what your nick was  ;)13:12
pittirbasak, jamespage: FTR, apport is in Debian as well, so I don't think it's a really bad thing to install hooks in Debian13:19
rbasakAh, I didn't realise that. Thanks!13:19
* rbasak wonders if the hook itself is Ubuntu-specific though13:19
jamespagepitti, awesome13:19
mterryjodh, I'm trying to monitor bootup sequencing, how do I pass --debug to upstart on boot?13:20
jamespagerbasak, reverted that commit13:20
jodhmterry: add --debug to the kernel command-line via the bootloader13:20
=== _salem is now known as salem_
mterryjodh, fair enough, thanks!13:20
jodhmterry: what specifically are you trying to do?13:20
mterryjodh, there is some race between lightdm and *something* which triggers on krillin but not on mako.  I'm trying to see if it's an upstart job (though I think it may be a dbus-activated issue)13:21
jodhmterry: is there an bug number?13:24
mterryjodh, bug 1365095 righ tnow13:24
ubottubug 1365095 in unity8 (Ubuntu) "Greeter not asking for pin code in image 11 (krillin)" [High,Confirmed] https://launchpad.net/bugs/136509513:24
=== udevbot_ is now known as udevbot
pittijamespage: "error 9,11,2304,255" -- strangest error code list ever :)13:34
pittijamespage: thanks for fixing mysql!13:34
jamespagepitti, np and yes its odd13:34
mterryhallyn, hello again!  So remember my cgroup oddity from the other day?13:58
mterryhallyn, still having problems, but now I've traced it down to a possible race with lightdm...13:59
=== JanC_ is now known as JanC
lagzillaSorry is this is the wrong place to ask but I can't seem to find it on google. Where can I find the build flags used to make the bind9 package.14:00
pittilagzilla: the build log should provide a good first start: https://launchpadlibrarian.net/174230080/buildlog_ubuntu-utopic-amd64.bind9_1%3A9.9.5.dfsg-4_UPLOADING.txt.gz14:01
pittilagzilla: from https://launchpad.net/ubuntu/+source/bind9 -> current version -> architecture of your choice -> "build log"14:02
=== salem_ is now known as _salem
=== _salem is now known as salem_
pittilagzilla: otherwise you see the package specific flags in debian/rules (after apt-get source bind9)14:03
pittilagzilla: i. e. the flalgs which are different from the defaults (call dpkg-buildflags to see those)14:03
lagzillapitti: Thank you!!14:04
LocutusOfBorg1cjwatson, may I ask you something?14:17
cjwatsonjust ask, don't ask to ask14:18
LocutusOfBorg1can you please instead of rebuilding hedgewars for libav11 just sync from debian?14:18
hallynmterry: so when you login, exactly what is it that calls pam to setup login session?  is it the init --user?  is it lightdm?14:18
=== mpt_ is now known as mpt
mterryhallyn, lightdm does that14:19
LocutusOfBorg1the two changes between the utopic verion are: enable --parallel switch, patch cmake to work with cmake 3.0 (two " " added)14:19
LocutusOfBorg1it will build I hope in less time, and with cmake 3.0 compatibility14:20
cjwatsonLocutusOfBorg1: sure, done14:20
LocutusOfBorg1thanks14:20
LocutusOfBorg1I hope in the next release when I'll upgrade to utopic to install cmake 3.014:23
hallynmterry: I assume this is an autologin?  Is there a way to logout and log back in?14:26
mterryhallyn, not really no, Touch just does one autologin the whole time14:27
hallynmterry: i saw you were bisecting last night - can you paste a debdiff of the last good and first bad?14:27
hallynmterry: does sleeping 10 secs before doing the actual login make a difference?14:28
mterryhallyn, yes, sleeping for 5 seconds before running the session command fixes it.  *but* sleeping for 5 seconds before launching lightdm does not14:28
mterryin the upstart job14:28
mterryhallyn, http://bazaar.launchpad.net/~lightdm-team/lightdm/trunk/revision/2041 is the troublesome commit14:29
hallynso you mean 5 seconds before calling or at top of session_set_pam_service?14:29
mterryhallyn, we think the change in session-child.c to not call a dbus command changed the timing enough to expose this problem14:29
hallynmterry: one thing to possibly try would be to create an upstart job to start systemd-shim, start on starting lightdm14:30
mterryhallyn, in that diff, I added sleep(5) to where we get the XDG_SESSION_ID var from pam14:30
hallynthx looking at the diff14:30
mterryhallyn, but pam-systemd would start logind and all that shim stuff, right?14:31
pittismoser, jamespage: hm, I just noticed that our cloud images still use grub-legacy? I tried to change kernel params in /etc/default/grub and /etc/default/grub.d/50-cloudimg-settings.cfg, but they still don't become active in /boot/grub/menu.lst14:32
pittismoser, jamespage: what's the appropriate place to set them?14:32
pittiapparently update-grub doesn't update menu.lst from the files above14:32
cjwatsonsmoser,jamespage: speaking of which, pv-grub2 is making progress again, see #75901814:32
cjwatsoner that's Debian #75901814:32
ubottuDebian bug 759018 in src:grub2 "please provide prebuilt grub-xen binaries for host (dom0) use" [Wishlist,Open] http://bugs.debian.org/75901814:32
hallynmterry: in login.c, could you add a sanity check to make sure that session->priv->login1_session and console_kit_cookie are right?14:33
cjwatsonso hopefully we'll eventually be able to actually use that :)14:33
hallyni dunno that's reaching tough14:34
pittismoser, jamespage: I tried to call update-grub-legacy-ec2 explicitly and that also said "Updating /boot/grub/menu.lst", but apparently still doesn't take GRUB_CMDLINE_LINUX_DEFAULT into account?14:34
mterryhallyn, the values are right in the child session at least14:34
mterryhallyn, I checked /proc/pid/environ14:34
jamespagepitti, I'd defer to smoser or utlemming - this is more their area if expertise!14:34
pittijamespage: ah, thanks14:34
pittismoser, utlemming: it seems that menu.lst doesn't even have the options that we set by defualt -- console=tty1 console=ttyS0 ?14:35
mterryhallyn, systemd-shim isn't a job?14:36
pittimterry: it's d-bus activated14:36
mterrypitti, what does it do different from logind or whatnot?14:36
pittimterry: I'm not sure it's sensibly comparable to logind; but it only offers a D-BUS API and doesn't need to run all the time, so D-BUS activation seems fine?14:37
mterrypitti, sure I'm just trying to figure out whether it might be related to my problem.  not sure what it did14:37
pittimterry: it mostly just translates requests like "start unit suspend" or "create a cgroup" into calling "pm-suspend" or cgmanager14:37
mterrypitti, ooh...  that cgroup thing sounds related14:38
pittimterry: so if you look for it, it shouldn't run most of the time (it times out after 10 s of not talking to it)14:38
hallynpitti: not for long :(14:38
pittimterry: so you'll only see it on new logins (or logouts), or suspend/resume etc.14:38
mterryhm.  but if it's dbus-activated, I'm not sure what the timing issue would be14:38
hallynmterry: it'd be a bug in logind or libdbus i guess, not waiting unti lit actuall starts up to return a nerror14:39
hallynmterry: what is v2 of the login protocoal?14:39
pittihm, we've been using d-bus activation for years with tons of stuff; quite unlikely that d-bus activation still has such blatant bugs14:40
pittisystemd-shim could of course still have bugs, the cgmanager integration is still rather new14:40
hallynseems to demand extra newlines.14:40
pittionly a few days ago there was a race condition between lightdm starting earlier (or too early) than cgmanager; stuff of that sort14:40
mterryhallyn, v2 returns both logind and consolekit cookies, rather than just the appropriate one14:41
mterryhallyn, one of which is now always NULL14:41
pittiwow, are we still concerned about CK?14:41
mterrypitti, lighdm is14:41
pittiah, interesting14:41
hallynpitti: looking at the process table yesterday cgmanager and cgproxy definately started before lightdm on the bad krilin system14:42
pittiright, that shoudl work now14:43
hallynbut, the cgproxy.log doesnt' show any requests on behalf of lightdm14:43
hallynmight rebuild libpam-systemd with some introspection (fprintfs :) added to see if it's being called at all14:43
pittihave you tried modifying /etc/pam.d/common-session to append "debug=true" to pam_systemd.so?14:44
pittithen you get some nice debugging in /var/log/auth.log14:44
ogra_if i use dh_installudev in debian/rules and have multiple packages, does the order of the dh_installudev commands matter ? (i.e. if the generic one comes last will it override the named ones above ?)14:44
pittiogra_: you mean you call it with different -p options?14:45
mterrypitti, good point, will try that14:45
pittiorder shouldn't matter at all14:45
ogra_verride_dh_installudev:14:45
ogra_        dh_installudev --name=android-tools-adbd --priority=9814:45
ogra_        dh_installudev --priority=7014:45
ogra_pitti, like that14:45
ogra_oh, crap14:45
pittiogra_: ah; still,order shouldn't matter at all, as long as the files are named correctly14:46
ogra_indeed i did use --name not -p14:46
pittiah :)14:46
ogra_hmm14:46
rbasakinfinity: I've folded mysql-common-5.6 into mysql-common now, but apt still wants to remove mysql-server :-(14:46
ogra_it doesnt know -p14:46
pittiogra_: then you should call the other with -Nandroid-tools-adbd14:46
ogra_according to the manpage14:46
pittiogra_: or --remaining-packages14:46
pittiogra_: otherwise the second command will install debian/android-tools-adbd.rules again with prio 7014:47
pittiogra_: as by default it acts on all pacakges14:47
ogra_pitti, right, it ends up with 70 currently14:47
pittiogra_: right, so in that regard the order matters, if you install a rules several times with different prio14:48
mterryhallyn, pitti: yeah libpam-systemd is being called, can see the output in auth.log.  I mean, it was returning the correct XDG_SESSION_ID to lightdm already.  Logind thinks everything is fine, the session is active, etc.  No problem with logind.  It's just that the session doesn't have proper cgroup paths defined, they are all the root path14:49
=== salem_ is now known as _salem
=== _salem is now known as salem_
smoserpitti, update-grub-legacy-ec2 does not do that.14:56
smoserand i wouldn't plan on it doing that.14:56
pittismoser: yeah, I just tried it as the usual update-grub didn't14:56
smoserit *should* correctly allow you to edit /boot/grub/menu.lst14:56
smoserthe way things used to work with grub 0.9714:57
pittismoser: ah, so I'm supposed to edit that file directly?14:57
smoseri think that file has information in it on how to update it14:57
smoserits "legacy"14:57
hallynmterry: can you build a version of systemd-shim with the src/cgmanager.c call to cgmanager_call("RemoveOnEmpty") commented out?14:57
smoserbut it should behave the same way grub 0.97 did. ie, what was that , prior to lucid ?14:57
pittismoser: ok, WFM, thanks; sorry, I have completely forgotten how grub-legacy works, it seem s:/14:58
LocutusOfBorg1have a nice weekend14:58
pittismoser: I'll do that then14:58
pittismoser: it's nothing permanent anyway; I'm writing tests for booting with systemd as init14:58
didrockshey barry, do you need any help for nose-cov? (I can ship the file if you +1 on it)14:59
barrydidrocks: you'd be shipping an init_cov_core.pth file in nose-cov?  that doesn't seem right.  would you mind filing a bug on cov-core in debian describing the issue?  i will take a look at it and test it when i do a cov-core update, and i will try to get to that today15:02
didrocksbarry: sorry, I meant cov-core actually. I can open a bug, sure15:03
barrydidrocks: awesome, thanks15:03
bdmurray_slangasek: Did you setup a test for whoopsie with daisy.staging.ubuntu.com?15:03
didrocksyw!15:03
mterryhallyn, yeah ok I could try that15:03
=== bdmurray_ is now known as bdmurray
slangasekbdmurray: I didn't15:10
mterryhallyn, didn't help15:10
slangasekbdmurray: is that something you were expecting me to do, or did somebody do this and you're trying to figure out who?15:10
hallynmterry: mterry or maybe build with http://paste.ubuntu.com/8260445/   (so we can also see if it's getting called)15:10
hallynmterry: oh.  ok, well that's good on the one hand, at least we know it's not that race again15:10
mterryhallyn, shall I try that debdiff still?15:11
hallynmterry: yeah, and then pastebin /tmp/debug and ps -ef output so we can check whether shim is being called to set the cgroups15:11
bdmurrayslangasek: I was thinking of this https://code.launchpad.net/~vorlon/ubuntu-test-cases/better-whoopsie-testing/+merge/22915215:15
didrocksbarry: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760583 FYI15:16
ubottuDebian bug 760583 in cov-core "cov-core should ship the generated .pth file to enable subprocess coverage tracking with nose-cov" [Normal,Open]15:16
mterryhallyn, http://paste.ubuntu.com/8260524/15:18
mterryhallyn, those cgroup paths look right!15:18
mterryhallyn, so... process 1450 has the right cgroup paths15:19
mterryhallyn, but the session it spawns (init --user) does not15:20
barrydidrocks: got it15:20
barrylet me work on that now15:20
didrocksthanks :)15:20
mterryhallyn, the session is created by a fork() in that same function I mentioned adding a sleep(5) to earlier15:22
mterryhallyn, is process 1450 granted the cgroup info after the fork?15:22
mterryhallyn, how does cgroup assignment work?15:22
mterryhallyn, I don't even know where the call to the shim to create the cgroup is made...15:24
slangasekbdmurray: oh - /that/ test, yes, I did point the smoketesting at staging, sorry15:26
bdmurrayslangasek: was it ever merged though?15:27
slangasekbdmurray: hmm - it was merged somewhere, but that MP suggests that the target branch is some ancient thing15:29
mterrypitti, can you explain a little bit about who calls the shim for cgroup stuff?  I'm confused on when/where cgroups are created15:29
pittimterry: logind calls shim's (or systemd's) StartTransientUnit() which creates a new group, and then that contains the new session15:29
pittimterry: I don't know much detail about that though, that'd be desrt or hallyn15:30
slangasekbdmurray: so it was merged, but I think someone rearranged the branches15:30
mterrypitti, ah...  ok thanks15:30
desrthi :)15:30
slangasekbdmurray: apparently the new branch target is https://code.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/touch15:30
mterrydesrt, hello!  I'm investigating some race we have with lightdm and cgroups....  let me do a little investigation first15:31
desrtmterry: can you ping again in half an hour or so?  in a meeting....15:31
slangasekbdmurray: but my change isn't merged there either.  so I really don't know what happened here15:31
* pitti waves good bye, enjoy the weekend everyonr15:31
mterrydesrt, sure!15:31
mterrypitti, bye!15:31
=== catbus is now known as Guest37301
mterryhallyn, so yeah...  "cgroups being set for the process" racing with the fork() call fits the facts...  any ideas if that's possible?15:38
tedghallyn, Do you have a reviewer for the systemd-shim MR?15:41
hallynmterry: that really shouldn't be possible. pam should be synchronous15:44
mterryhallyn, yeah looking at all the logind calls into cgmanager, it certainly seems all sync15:45
mterryhallyn, is some part of our cgmanager daemon async?15:46
hallynmterry: only removeonempty15:46
hallynjodh: ^ is it possible that 'init --user' spawned by lightdom as phablet user could be doing a movepidabs?15:46
hallynI only see one such call, in init/cgroup.c:cgroup_create,15:47
hallynand it only does it if ! user_job15:47
hallynso is that considered a user job?15:47
hallyn(but really, why would that change with lightdm version?)15:48
jodhhallyn: only system-level cgroup jobs do that, so no.15:48
hallynyeah that cna't be it15:48
hallynso something in that lightdm delta must be changing the synchronous flow15:48
mterryhallyn, well the lightdm change just affected the timing we think15:49
hallynso that the fork is happening before the call to pam_session_init15:49
mterryhallyn, like I said, if I add a sleep(5) it goes back to working behavior15:49
mterryhallyn, pam_start is called far before the fork15:51
hallynbut yo uput the sleep at the top of pam-start right?  not the fork?15:51
hallynis it always the case that lightdm --session-child is in the right cgroup and init --user is not?15:52
mterryhallyn, I can test more15:52
mterryhallyn, I put the sleep between pam_start/pam_open_session and the fork15:53
hallynmterry: ok so I guess I haven' tlooked at that part of the logind code itself.  pam itself should be completely synchronous, and shim and cgmanager in that part are.  But i guess i'ts possible that logind sets everything else up, queues a task to do the dbus call to shim, and immediately returns15:56
* hallyn goes to look15:56
mterryhallyn, the seemingly most relevant code is in src/session-child.c15:56
=== salem_ is now known as _salem
mterryhallyn, certainly seems like the session-child/init cgroup delta is consistent (when the problem occurs -- it's not 100% consistent)15:57
hallynmterry: no, src/login/logind-dbus.c:manager_start_scope() blocks on the return from StartTransientUnit, so that's not it15:58
hallyn(that is, no, logind is not th eprolbem)15:58
bdmurrayplars: how can we get this merged / going? https://code.launchpad.net/~vorlon/ubuntu-test-cases/better-whoopsie-testing/+merge/22915215:59
mterryhallyn, sometimes init --user has 3 cgroups set, just not the systemd one.  Other times it is missing all 415:59
mterry(and sometimes it has all 4)15:59
desrtmterry: systemd-shim!!!!16:00
desrtwhoever wrote this shit... my god...16:00
mterrydesrt, agreed!16:01
plarsbdmurray: I was looking for your ack on it. If you are happy with it, then I can get it merged16:01
mterrydesrt, so I don't know how much you've been following, but...16:01
desrti already have a theory16:01
desrtsystemd-shim, in the name of efficiency, submits cgroup requests to cgmanager async16:02
mterrydesrt, it seems like there's a race between lightdm/cgmanager/logind/something16:02
desrtall at the same time16:02
mterrydesrt, aha!  an async achille's heel16:02
desrtwhich means that systemd-shim is capable of returning to its caller "okay!  all done!" before the cgroup is properly setup16:02
hallynfeh16:02
hallyni forgot it did that16:02
hallyniow i lied to mterry16:02
desrti wrote the code in such a way that it would be easy to change if this became a problem16:03
desrtie: should only need to patch one place16:03
hallyndesrt: i don't know if you've been following the Abandon discussoin as well, but systemd-shim now has to become long-lived actually16:03
slangasekplars: surely, this was already merged and that's why the whoopsie smoke test has been failing?  I don't understand what happened with that particular MP though, which is not (no longer?) targeting the correct branch.  http://ci.ubuntu.com/smokeng/utopic/touch/mako/222:20140904.1:20140903.1/10220/default/1631128/16:03
desrthallyn: :(16:03
desrthallyn: what about the idea of poking through sysfs to find the state we need?16:03
hallyndesrt: for what?16:03
plarsslangasek: sec, it's been a while since I looked at it, let me check16:03
desrtthe idea is that we can shutdown existing transient units, right?16:03
desrtthose transient units will be recorded as state in the kernel in the form of cgroups visible in sysfs16:03
plarsslangasek: the mp was against the wrong branch, so that could be why it didn't automatically go away16:04
bdmurrayplars: well, I've approved it now fwiw16:04
mterrydesrt, is this in cgmanager_call()?16:04
desrtmterry: probably.16:04
desrt"Avoid round-trip delays: issue all calls at once and report errors..."16:04
desrtso you have two options16:04
hallyndesrt: no the problem is that we have to listen to object path org.freedesktop.systemd.unit.session_2d${sessionid}_2d.scope16:05
desrtone is to add a counter and block until that counter is reached16:05
hallynthat's where Abandon gets sent16:05
desrtthis would involve using a private maincontext probably16:05
desrtthe other is to just convert it to using sync calls16:05
desrtwill hurt performance, but this isn't exactly an operation that is happening once per second16:05
slangasekplars: yes - but I also can't seem to figure out the right branch16:05
hallyndesrt: add the counter in shim, right?16:05
desrthallyn: we can do that.... and you can also use a subtree watch16:05
desrthallyn: ya... i'm not totally keen on the counter idea16:06
mterrydesrt, I will certainly test the fix with a sync call, testing now16:06
desrti've seen these sorts of things go off the rails before... they're hard to get right16:06
desrtmterry: be sure to unref the return value16:06
bdmurrayslangasek: maybe its failing because of the run in foreground change?16:06
hallyndesrt: but we can't use a subtree for dbus activation right?16:06
mterrydesrt, ok.  I've lived in qt land too long already, unref'ing things seems quaint16:06
plarsslangasek: yeah, it's kind of a pain. I'll check on it right after this call but I suspect you're right that it's already merged16:07
desrtmterry: welcome back, man!16:07
slangasekbdmurray: I really don't know why it's failing; help understanding this is appreciated16:07
desrthallyn: we certainly can16:07
desrthallyn: one merely has to register the subtree watch before taking the bus name16:07
hallyndesrt: !  if so then we can far simply my mp against lp:ubuntu/utopic/systemd-shim16:07
desrtso that it's already there by the time we start receiving messages16:07
desrtman16:08
desrtyou guys have been busy :)16:08
desrtso a bit of theory: on dbus, it's the well-known names that are activated16:09
hallynok well i need to go back to server-land for a few hours.16:09
hallynhm,16:09
desrtthe object paths are solely a concern of the process that owns that name16:09
desrtand that process has a chance to setup whatever object paths it wants to during its activation16:09
hallynbut that never worked for me16:09
desrtso when it comes online it already has a full set16:09
desrtso we could even do things like scan sysfs on startup to decide which objects to export, if we wanted16:09
desrt"exporting" an object is even a bit of a misnomer... we actually do nothing to "export" it... we only make a note to ourselves, that if somebody asks about this object in the future, then we handle it in such a way....16:10
hallyni registered the org.freedesktop.systemd1.Scope name, but never received the org.freedesktop.systemd1.unit.session*.Abandon methods,16:10
hallynand logind said no such interface16:10
desrtthe bus itself has absolutely no concept of objects16:10
* hallyn rereads16:10
desrtis org.freedesktop.systemd1.Scope a name or an interface?16:10
hallynthat is the interface16:10
desrtso how it works is that you register an object with a particular interface, right?16:11
hallynright.  long as i'm running that works fine16:11
desrtyou have to register the object path before we take the name...16:11
hallyni cna't know the object path16:12
desrtie: in shim_bus_acquired16:12
desrtbut you can do subtree...16:12
desrtwhich will watch all paths below /x/y/z/*16:12
hallynon the object path tree?16:12
hallynok, and for the dbus activation, what Name do I use - interface or path subtree?16:12
hallyn(i.e. org.freedesktop.systemd1.Scope or org.freedesktop.systemd1.unit)16:12
desrtneither?16:13
desrtbus activation is always based on bus names16:13
desrtwhich is probably always going to be org.freedesktop.systemd116:13
hallynok16:13
desrtinterfaces are also not a concern of the bus16:13
desrtall of this stuff is only interpreted by the client _after_ it has activated16:14
hallynso i get dbus-actviated for Abandon (not sure that was working, but imght have), then i register subtree for org.freedesktop.systemd1.unit?16:14
hallynI think I only ever tried org.freedesktop.systemd1.Scope16:14
desrtstrictly, you get dbus-activated because someone tried to send a message to org.freedesktop.systemd116:14
hallynright16:14
desrtthen you set stuff up...16:14
desrtthen you claim the name16:14
desrtthen you get the message16:14
hallyni can't claim the name until i know what the name is,16:14
desrtonly at that point do you start making sense of interface, object, method, etc.16:14
desrtbut the name is always org.freedesktop.systemd116:15
hallynoh16:15
desrtthe other things are interface/object/method16:15
hallynok, so i can try all this this way again on monday hopefuly,16:15
desrtwelcome to dbus -- the land of confusion :)16:15
hallynif you wanted to take a stab, the actual cgroup code we wnat is in my mp16:16
desrtk.  i might get a chance to take a look after lunch16:16
hallynlp:~serge-hallyn/ubuntu/utopic/systemd-shim/shim-abandoncg16:16
desrtthis approach seemed to work well last time :)16:16
desrtyou deal with cgmanager, i deal with dbus :)16:16
hallyni would SO much rather get the activation to work tha make shim long-lived!16:17
hallyngreat to have you back :)16:17
desrtsame.16:17
hallynthanks much, ttyl16:17
desrtta16:17
mterrydesrt, seems to be fixing it16:17
desrtmterry: win!16:17
mterrydesrt, trying more runs to reduce the chance I've just been getting lucky16:17
desrtof course, with races, one never truly knows.... :)16:17
desrtmterry: do you want me to just make the chance here and push it?16:18
mterrydesrt, it was happening about 4 out of 5 before, I've run 3 times without it16:18
desrtor should i use your patch?16:18
mterrydesrt, my patch is what you'd imagine -- moving the callback code up to the call itself16:18
desrt(did you do the error handling correctly, etc?)16:18
desrtk16:18
desrti'll just do it locally then16:18
mterrydesrt, 5 successes so far16:19
hallyn\o/16:19
mterrydesrt, yeah, I'm getting tired of rebooting, 7 successes in a row, I'll take it as fixed16:22
desrtawesome16:22
mterrydesrt, bug 1365095 is where I've been tracking it16:23
ubottubug 1365095 in unity8 (Ubuntu) "Greeter not asking for pin code in image 11 (krillin)" [High,Confirmed] https://launchpad.net/bugs/136509516:23
mterrydesrt, I'll add a comment to the bug, but just if you write a changelog entry16:23
desrtcan you take a quick look at http://ur1.ca/i4id7 ?16:23
desrti'm about to push that -- just want to make sure this is the same fix as you had :)16:23
* mterry looks16:25
desrtfor somewhat silly reasons, i am currently unable to login to launchpad :p16:25
mterrydesrt, that is the exact same patch, awesome16:26
mterryonly so many ways to do that  :)16:26
desrt(long story: i attached my yubikey to my dorm-room keyring at debconf... and when i left, i turned it in...)16:26
desrtokay.  pushed upstream.16:26
mterrydesrt, :)16:27
desrtthey were nice enough to drop it in the mail... but now i wait :)16:27
desrthttps://github.com/desrt/systemd-shim/commit/80e9dc98b733a4386c0cca78861892506b2cfae216:27
mterrydesrt, you need a second key!16:27
desrtya16:27
desrti want to wait until their next model comes out, though16:27
desrtsince their website is doing a good job of convincing me not to buy the existing one by saying "next model will support new auth spec.  CURRENT MODEL NOT UPGRADABLE"16:28
mterrydesrt, :)16:28
mterrydesrt, so what's the path into Ubuntu's archive for this package?  This fix is something I'd like to land in shorter order rather than waiting on bundling other shim fixes16:29
desrttalk to pitti, i think?16:29
desrti have no idea how that half of it works :/16:29
desrtmaybe slangasek could also help... i think he was involved in the debian side?16:30
bdmurrayplars: if you find the branch containing the test let me know as I'd like to make some changes to it.16:30
plarsbdmurray: yes, I was just about to check it, one sec16:30
plarsbdmurray: confirmed, it was merged already16:31
slangasekdesrt, mterry: I'm happy to cherry-pick a change into Debian and sync to Ubuntu today.  But we should also resolve https://code.launchpad.net/~serge-hallyn/ubuntu/utopic/systemd-shim/shim-abandoncg/+merge/233280 today16:32
bdmurrayplars: and what branch contains the test so I can make a change to it?16:32
desrtslangasek: if you want to vendor-patch that as well, go ahead... but i'd rather not take it upstream without a closer look first16:32
slangasekdesrt: well, I'm also not vendor patching it without taking it a closer look than I have so far :)  but it's critical urgency16:33
plarsbdmurray: lp:ubuntu-test-cases/touch16:33
desrtokay16:33
mterryslangasek, sure if that's critical too then I have no issues with bundling them16:33
desrtso let me move it from my "i might take a look at it this afternoon" list to "i will take a look at it" :)16:33
hallynslangasek: desrt was going to do a cleaner version of my mp - that lets systemd-shim still timeout16:33
bdmurrayplars: got it, thanks16:34
slangasekhallyn: oh.  Should I hold off then?16:34
hallynslangasek: so given that, i'd prefer to not have my mp make it into any package if possible :)16:34
hallynslangasek: yeah16:34
slangasekdesrt: ^^ is that on your plate for today?16:34
desrtslangasek: yes.16:34
desrthad a few other things, but none of them could be described by anyone as 'critical'16:34
slangasekdesrt: ok, then I'll step back from that and just look at the other cherry pick.  that's https://github.com/desrt/systemd-shim/commit/80e9dc98b733a4386c0cca78861892506b2cfae2 ?16:34
desrtyes16:35
desrtif i land the other thing today i'll probably also do a new release, though16:35
desrtthere is a pitti patch for changing a typesignature there as well16:36
cjwatsonsiretart: landing libav; after that's in I'll demote jitsi and sort out ubuntustudio-meta16:47
cjwatsonthat should hopefully be enough16:47
desrtcjwatson: what ever came of this ffmpeg discussion?16:50
cjwatsondesrt: nothing very concrete as yet16:50
desrthello debian :)16:50
ScottKI think we understand once again why there was a fork.16:51
desrtthat's helpful, at least16:52
ScottKThose of us who were around then, weren't particularly confused on that point.16:53
=== _salem is now known as salem_
awe_slangasek, quick question... if a bug is filed in LP because of a crash, it's marked as private by default.  Can anyone besides the owner look at the bug, or must the owner make it public first?17:23
jtaylorI think bug control members can see it17:29
unstableI want to maintain a change management process for updating deb packages on a lot of ubuntu machines. I know koji/bodhi for rpm based systems works really well ( https://admin.fedoraproject.org/updates / http://koji.fedoraproject.org/koji/ ), or pulp. Is there an equivalent to these systems that the ubuntu team uses?17:38
=== Mikee_C_ is now known as Mikee_C
desrthallyn: hey... are you around again?17:42
slangasekawe_: what jtaylor said, I think17:43
awe_all good now, but thanks17:44
hallyndesrt: for 10 mins17:45
desrthallyn: any reason why you didn't explore the sysfs tree of cgroups yourself?17:45
hallyndesrt: you mean /sys/fs/cgroup/freezer etc?17:45
desrtwas just easier to use the dbus api and get cgmanager to do it for you?17:45
hallynthat usually is not mounted17:45
hallynno, it's because cgroup fs acces is not guaranteed,17:45
hallynespecially not in nested unpriv containers17:46
desrtinteresting.17:46
hallyn(cgmanager's raison d'etre)17:46
desrti suppose that makes sense.  thanks.17:46
* desrt is glad he asked :)17:46
hallynyeah it slows things down a bit, especially through a proxy.  but it's necessary given cgroup kernel maintainer's view on fs access delegation17:46
desrtya... i've read about these views :)17:47
desrtmakes sense, though17:47
desrtfeels slightly odd that we delegate the delegation, ... but meh17:47
desrtit is a shim, after all17:48
hallyndesrt: heh, just wait until we put an fs on top of cgmanager :)17:48
hallyns/we/stgraber/17:48
desrti guess we will not do that soon?17:49
hallyni think we will17:49
desrt(or ever...)?17:49
desrtpost 14.10, aren't we supposed to hop to systemd entirely?17:49
hallynthat will allow systemd to run using it's current fs accesses17:49
stgraberdesrt: not this cycle, but we should have this for 15.0417:49
hallynyeah, and systemd uses fs access17:49
desrtbut i mean... don't we stop using cgmanager then?17:49
stgraberthat's so we can start systemd in an unprivileged container which isn't allowed to mount cgroupfs itself so systemd in that container can still do any cgroup configuration it needs17:49
hallyndesrt: no, then a fuse fs will talk to cgmanager to present what looks like cgroupfs to systemd in a child container17:50
hallynyou thought dbus was bad :)17:50
desrti'm making a face17:50
desrtif this was a videochat, you'd see my face17:50
hallyna happy on ei'm sure17:50
desrt"wince" would probably be the best description17:50
desrtgoogle helpfully gives this result for image search: http://mocoloco.com/art/upload/2007/10/wince/greenberg_wince_oct07.jpg17:51
desrti assume that we've communicated with systemd upstream and they are not interested in implementing this in a more reasonable way?17:52
hallyndesrt: it's always possible that at plumber's we'll come to a magical consensus that stops the need for that17:52
desrti certainly hope so17:52
desrtmakes me wish i didn't turn down my invite to plumbers :(17:52
hallyndesrt: i'm giving a talk on cgmanager at linuxcon.eu and hoping to talk to systemd folks after that17:52
hallynnice fangs btw17:53
hallynoh didn't look clsely enough, tguess that's not what they are17:53
desrtsigh.17:53
desrtmaybe i ought to go after all :/17:53
desrttoo much travel in this month....17:54
hallynyes, oct/nov seems to be busy for everyone travel-wise17:54
hallynbut my goal is to just come to an agreement of how we can get to what we need - unprivileged containers running systemd in a way safe for the host.17:56
=== roadmr is now known as roadmr_afk
bdmurrayplars: https://code.launchpad.net/~brian-murray/ubuntu-test-cases/autoreport-check/+merge/23357118:13
plarsbdmurray: ok, we need to talk to slangasek about that one... I did have that in there before after our last discussion, and slangasek said it used to be needed but shouldn't be anymore, and having it there could hide problems18:14
plarsbdmurray: actually this is slightly different, you're just checking for it, I was previously creating it18:14
plarsbdmurray: so maybe you intend for this to be just a test case, rather than saying the test can't run unless something else sets up autoreporting?18:15
slangasekbdmurray, plars: I'm ok with this change, as the test will still fail and if it's failing due to the lack of this file it's better to explicitly report that problem18:16
plarsack18:16
slangasekplars: I guess we can have the philosophical argument about whether this is part of a test case for whoopsie vs. something else :)18:16
plarsslangasek: I don't think that's necessary :)18:17
plarsslangasek: it's a problem that affects whoopsie, nobody is suggesting that a failure here is necessarily caused by whoopsie18:17
slangasekbdmurray: are you adding this check because you're seeing /var/lib/apport/autoreport missing in practice?18:18
bdmurrayslangasek: no, because the test is failing and we don't know why and it would if autoreport didn't exist.18:19
slangasekbdmurray: ok.  FWIW in my own testing I had ruled this out as the cause of the failures18:20
=== roadmr_afk is now known as roadmr
=== Guest86602 is now known as NCommander
=== NCommander is now known as Guest6455
=== Guest6455 is now known as NCommander
bdmurrayslangasek: another issue is that the whoopsie-test.sh removes all _bin_sleep.0.* files in /var/crash/ so the .uploaded file can be removed before whoopsie-upload-all notices it so it can keep running until its timeout19:15
bdmurraythe second it being whoopsie-upload-all19:15
desrthallyn, stgraber: might it be possible to get an API on cgmanager to dump out all of the cgroups?19:32
desrtand/or one to let me find a cgroup by its basename?19:32
desrtie: i put in session-1.scope and it tells me about user.slice/user-1000.slice/session-1.scope19:32
desrtbecause right now, this sort of sucks....19:33
desrtalso, in light of containers, my approach to this problem may actually be dangerous19:36
hallyndesrt: the code i'd proposed looks under user.slice/* for all children, and looks to see which one has session-1.scope19:36
hallynbc we know that session-1.scope will be unique system-wide19:36
desrtright19:36
desrtexcept in case of containers..19:36
hallyn?19:36
desrtwhere one of the containers could have a nested session-1.scope19:36
desrtbut that wouldn't be inside user.slice19:37
hallynthe container would talk to its own slice no?19:37
hallyni mean its own shim19:37
desrtyes19:37
desrtbut from the outside, we might find it by accident19:37
hallynyou mean with what you were proposing?19:37
desrtif we just naively looked for the first thing we find with the name "session-1.scope"19:37
hallynright19:37
desrti might have an even better idea, though19:37
desrtwe can parse /run/systemd/sessions/1 to find out the user19:38
desrtit's ugly... but hey... this is systemd-shim, after all :)19:38
hallync1?19:38
desrtc1?19:38
hallynseems ok to me19:39
hallynon my ssystem it's /run/systemd/sessions/c1.  oh, that's for console, i guess,19:39
desrtinteresting.19:39
desrtdo you also have a session-c1.scope, then?19:39
mdeslaurmvo_: I'm curious if there's been any progress on bug 109873819:39
ubottubug 1098738 in apt (Ubuntu) "apt-get source only checks md5 hashes in Sources files" [High,In progress] https://launchpad.net/bugs/109873819:39
hallynright when i ssh in i get a '15' in there19:39
hallynyeah, session-c2.scope19:39
hallynwhich actually would break my code i think19:40
desrtya...19:40
desrtyou need to stop using scanf :)19:40
hallynor dbus19:40
desrtthis is something like a red flag when i'm reading code19:40
hallynnonsense19:40
hallyni agree it shouldn't be used in glib code, but i couldn't find the glib thing to use19:40
hallyni really meant for the mp to just be a (working) poc19:40
desrthmm19:41
desrtseems that logind often changes what goes in this file19:41
desrtthat's enough to make me think twice about using it19:41
hallynit's probably also free to change the path layouts though19:41
hallynyou could keep /run/shim/scopes with all the info19:41
desrtthat's not the worst idea i've ever heard....19:41
desrtthat's actually a pretty nice idea19:42
desrtreally all we would need is a mapping of scope names to cgroup paths19:43
desrtso what happens, then?19:43
desrtlogind Abandons the scope?19:43
desrtwhy not shut it down entirely?19:44
hallynwhat do you mean?19:44
hallynyou mean why not use StopUnit?19:44
desrtyes19:44
desrtAbandon seems ... meaningless, really19:44
hallyn<shrug>  screen and tmux?19:44
desrtah.  interesting.19:45
hallynwell, we set removeonempty so the cgroups will eventually go away19:45
hallyni think abandon is there to recognize the design flaw :)19:45
desrtwell, rather, i think screen/tmux are the ones with the design flaw :)19:45
desrtalthough they can't be blamed19:45
desrtprobably in the future these things will need to be moved to a more robust system19:45
hallynfor that matter, on a fedora systemd system, is it set to use abandon?19:46
desrtno idea19:46
hallynor is #KillUserProcesses=no something we add on19:46
desrti guess so...19:46
desrti never noticed problems with screen...19:46
hallynwell it's trivial for screen to be patched to move to another cgroup, of course.  though it the needs privs19:47
desrti was thinking rather that it would switch to some mechanism like dbus activation19:50
hallynhuh19:50
desrtthe client would contact the service via dbus19:50
desrtwhich would start in a new cgroup19:50
desrtdisconnected from the session...19:50
desrtit could even be considered a new login session, if you think about it19:50
hallynstill would require privilege - or help from logind/libpam - to create that new cgroup, but that's an interesting idea19:50
hallynright19:51
hallynthat makes sense19:51
desrtonce we have proper 'user' kdbus, it won't need any help19:51
desrtsince processes launched this way are associated directly with the user -- not the session19:51
hallyni guess i'll have to go watch the kdbus talk19:51
desrtmore reasons to go to plumbers...19:51
desrtsigh19:51
hallynhah - see you there :)19:51
desrtwhat did you mention was coming up in november, btw?19:51
hallynhm, there's openstack early, then a sprint the server team needs to be at later19:52
desrtah19:52
hallynand lots of time off on my part19:52
desrtneither one that i should care about :)19:52
* desrt goes back to beating on cgmanager19:53
desrtbtw: what is the problem with setting Remove at the start?19:54
desrtand just ignoring Abandon?19:54
desrtseems like this might be a massively easier approach to the issue19:57
desrtif people wanted us to kill, then of course we'd still need to handle StopUnit19:57
desrtbut since that's turned off....19:58
* desrt wonders if he has fundamentally misunderstood something19:58
desrtbtw: your killtasks code is racy...19:59
desrtif a fork() goes between our list of the pids and the kill() command, you will leave some pids in the cgroup19:59
desrthallyn: ^ ?20:03
hallyndesrt: so if you just do Remove, and there are active tasks in the cgroup, then the remove will fail, and the cgrou will never be removed20:08
hallyni do removeonempty first, so that if it's not empty now but becomes empty while i'm working, it'll be deleted20:09
hallynthen i remove any subdirectories and then itself;  if it's empty, that will remove it (and, in that case, autoremove would not, bc it only happens when it *becomes* empty)20:09
desrtright... that's what i mean20:09
desrtcan we just remove-on-empty at the start?20:09
desrtand then ignore abandon?20:09
hallynstart of what?20:09
desrtthis seems like a __much__ easier approach, and i can't imagine anything wrong with it20:10
hallynsessoin create?20:10
desrtwhen we first create it20:10
desrtya20:10
hallynwe did that before, and it *does* go wrong :)  bc of upstart20:10
desrtwhy?20:10
hallynupstart creates the same cgroup for pre-start, start, and post-stop20:10
hallynso when pre-start is done, autoremove fires,20:10
hallynthen start tries to create the cgroup which already exists,20:10
hallynthen remove-onempty handler kicks in (kernel-run),20:10
hallyncgroup is removed, now start tries to move the task into cgroup and fails20:11
desrtis there any way we could delay the autoremove call until after we know the session is fully logged-in?20:11
desrtugh.. this is truly dreadful stuff :(20:12
hallynwe (systemd-shim) would have to know whose behalf we are working on20:12
hallyni think what i had generally is ok - other than you're right i'm not working hard enough to kill everything20:12
desrtwe can know that, but i'd prefer not to :)20:12
hallynso yes we should loop over the killtasks until no tasks are left20:12
desrtso after we get Abandon...20:13
hallyn(and then fo rgood measure, if remove fails, re-try the kills I suppose)20:13
desrtdo we know that nobody will ever make a call to this again?20:13
desrt(seems that cgmanager should have a kill-and-remove call)20:13
hallyni think that makes sense for cgmanager20:14
desrta recursive-autoremove might also be nice :)20:14
hallynyeah.20:15
hallynso maybe the thing to do is not fret too much over the code going into shim/src/cgmanager.c today, and then port those fns over to using the right cgmangaer call when available20:15
hallyn(we'll have to check the cgmanager api_version for the support :( )20:15
desrtmy primary concern now is about the stateful thing20:15
desrtnah -- we can just depend on the higher version20:16
hallynright.  so what's your thought on the /run/shim/sessions file?  is ther ea downside?20:16
desrtthere is absolutely no point in using the new API at all if we would have to keep the old code around20:16
hallynok20:16
desrtno downside as long as everything stays in sync20:16
desrtwhich i think it should20:16
desrtsince these files represent units20:16
desrtnot random cgroups20:17
hallynwell i've got two other fns to implement in cgmanager.  since i don't have to spend monday working on longevity of systemd-shim, i can work on those monday :)20:17
desrtcool20:17
desrti'll try to have something for you by then20:17
desrtbut this is rapidly spinning into a not-done-by-today sort of task20:17
desrtmight be able to find a bit of weekend time for it20:18
hallynexcellent.  so meanwhile will you push just your earlier commit to pkg for slangasek ?20:18
desrtthat's up to slangasek20:18
* hallyn expects to lose power soon, storms...20:18
desrtit's already in master...20:18
desrtand i don't maintain the debian package...20:18
NoskcajCan someone please tell me why usb-modeswitch-data hasn't migrated to utopic?20:35
infinitymlankhorst: Along with that mesa 10.3 (when you're ready to upload), can you pull this patch?  http://lists.freedesktop.org/archives/mesa-dev/2014-August/064711.html20:39
hallyndesrt: btw 'Prune' was listed as a low priority method to implement eventually in org.linuxcontainers.cgmanager.xml.  (that's the recursive_rmdir)  maybe that should take too booleans, 'kill' to say kill tasks, and 'recursive' to do recursive rmdir.20:48
hallynstgraber: ^ any opinion on best methods from api point of view?20:48
stgraberhallyn: hmm, not sure it should be cgmanager's job to kill stuff though... recursive remove makes sense because the alternative is a crazy amount of queries to cgmanager, but kill, it's just getTasks + kill() so the clients can do it and can do it in a saner way (send sigterm, wait, send sigkill, ...) and if they want the cgroup to go away when they're done, they can set remove on empty21:00
hallynstgraber: but to kill all tasks reliably you have to keep redoing the getTasks to make sure nothing forked21:08
stgraberhallyn: hmm, indeed21:08
hallynand really, if you're going ot recursively remove-and-kill a cgroup, you'll still hae to getTasks in al lchild cgroups21:08
hallynreally the code doing that was pretty clean on the clien tside,21:09
hallynand i have concerns about cgmanager being able to tell whether the calling task has the rights to kill21:09
hallynin fact, there's no way for cgmangaer to be able to check whether the kill would be allowed by apparmor/yama/etc21:10
stgraberindeed, that'd completely bypass apparmor's signal filtering21:11
hallynSo I guess we can't do that.  and if we can't do that, i'm not sure recursive rmdir makes much sense.21:12
hallynwell, it does,21:12
hallynif it does removeon_empty recursively first, then remove recursively21:12
slangasekbdmurray: that's only a risk if a prior instance of whoopsie-test.sh has triggered, right?  Anyway, doesn't this tie into my proposed apport branch for changing the semantics of the upstart job?21:15
slangasekdesrt: which commits should I be looking at in master that fix our critical problem?21:16
desrtslangasek: none yet21:16
slangasekoh21:16
desrtyou can take the patch from hallyn but i want to substantially rework it before taking it upstream21:16
hallynthe critical problem mterry was having?  that's upstream right?21:17
slangasekI thought you said "it's already in master" - a different "it"?21:17
desrti plan to do that over the weekend21:17
desrtslangasek: ah.. the mterry race problem is already upstream21:17
bdmurrayslangasek: well if there was some other crash before starting the testing, but my change wouldn't help that.21:17
desrti thought when you said "critical" earlier you were speaking of the Abandon thing21:17
slangasekbdmurray: I think the case for /bin/sleep crashing on its own is an ignorable corner case21:17
slangasekdesrt: er, that is what I'm talking about21:17
desrtthe Abandon thing is not ready21:18
slangasekok21:18
desrtunless you want to take hallyn's patch21:18
desrtthe race condition thing is fixed, though21:18
slangasekno, I was just trying to interpret the highlights in my scrollback :)21:18
bdmurrayslangasek: I mean any crash would cause whoopsie-upload-all to run.21:18
desrti mean... in a certain sense, everything is great... because we have a patch for the one problem and as of today we discovered the cause of and patched the other21:18
slangasekbdmurray: ok - true, but if I'm not misremembering, my apport branch changes the job so that it will trigger for each new file21:19
bdmurrayslangasek: okay, I haven't looked at it in a bit21:19
slangasekbdmurray: this problem you describe is certainly precisely one of the things I was trying to fix, I just don't remember now what I concluded about the right way to fix it :)21:20
bdmurrayslangasek: well you should revisit the branch then ;-)21:21
slangasekyes, it's on my todo for this afternoon... :)21:22
slangasekthe other thing was, ev raised it to my attention this morning that whoopsie+apport disagree about inotify and file modes21:23
slangasekwhich I need to read scrollback to understand, but is possibly an argument for my approach to atomic file replacements in spite of pitti's objection21:23
cjwatsonNoskcaj: makes usb-modeswitch uninstallable21:24
mvo_mdeslaur: yes, the fix is in experimental, it breaks ABI unfortunately21:24
Noskcajok21:24
mvo_mdeslaur: it will be in with the next abi break in ubuntu21:25
cjwatsonNoskcaj: because Breaks: usb-modeswitch (<< 2.2.0)21:25
cjwatson(and usb-modeswitch Depends: usb-modeswitch-data, of course)21:25
cyphermoxNoskcaj, cjwatson, I will be fixing usb-modeswitch either tonight or this weekend21:35
Noskcaj:)21:35
cyphermoxthat is, unless someone beats me to it, but I don't wish it on anyone :-)21:35
cyphermoxNoskcaj is it breaking something for you?21:37
cyphermoxIt's always useful to have some help with testing, I don't have the new Huawei devices that need the new code21:37
Noskcajcyphermox, I was just looking at the email to ubuntu-devel, and not looking at the control file for -data before i asked here21:37
cyphermoxOK. It is kind of broken how it is, perhaps the new data should not break things, and instead usb-modeswitch could (and does, I think) ignore the bits it doesn't understand and still do almost the right thing21:40
Saviqso, who's a make guru? say I have targets like foo1-bar1, foo2-bar1, foo2-bar2 etc., can I make a single rule to make those, with foo? and bar? being available as variables in that rule?22:00
=== salem_ is now known as _salem

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