/srv/irclogs.ubuntu.com/2012/07/06/#ubuntu-installer.txt

CIA-7debian-installer: adconrad * r1715 ubuntu/ (build/config/armel/omap4.cfg debian/changelog): Move omap4 kernels to 3.4.0-203.03:28
jibelxnox, cjwatson if there is no fix for bug 1020574, is there a possibility to revert apt and python-apt (if the problem comes from here) to make the images working again ?08:06
ubot2Launchpad bug 1020574 in ubiquity "SystemError: Broken pipe while installing language packs" [Critical,Confirmed] https://launchpad.net/bugs/102057408:06
cjwatsonhaha, good luck with that08:25
cjwatsonI don't think that's terribly plausible TBH08:25
xnoxcjwatson: well i *think* i can comment the offending line out of apt (it's just a status update message) to unbreak ubiquity.... but it's still weird why that pipe is closed, it is used to communicate progress back to ubiquity08:27
xnox17339 15:57:48.385417 write(79, "pmstatus:dpkg-exec:0:Running dpk"..., 34 <unfinished ...>08:27
xnox20429 15:57:48.385458 <... read resumed> "pmstatus:dpkg-exec:0:Running dpk"..., 4096) = 34 <0.143676>08:27
xnox17339 15:57:53.068803 write(79, "pmstatus:firefox-locale-en:2:Pre"..., 57) = -1 EPIPE (Broken pipe) <0.000025>08:27
cjwatsonis there a useful subset of the strace you can post somewhere?08:28
cjwatsonI would be happy to help analyse it08:28
cjwatson900M is a bit much, but maybe something that starts from the common ancestor of pids 17339 and 2042908:30
xnoxit's only 60MB when xz compressed ;-)08:31
xnoxhttp://paste.ubuntu.com/1077753/08:31
xnoxi should have split the strace per pid/fork08:31
xnoxok, let me try to grep that subset.08:32
brendandcjwatson, any luck reproducing bug 1021293?08:33
ubot2Launchpad bug 1021293 in checkbox-satellite "Ubuntu 12.04 install stalls when doing apt-get upgrade" [Undecided,New] https://launchpad.net/bugs/102129308:33
cjwatsonbrendand: not as yet sorry08:33
cjwatsonxnox: oh, 60M is practical for me to download if it's practical for you to upload08:34
cjwatsonbetter to have the whole thing if possible08:34
xnoxcjwatson: link in the bug 102057408:34
ubot2Launchpad bug 1020574 in ubiquity "SystemError: Broken pipe while installing language packs" [Critical,Confirmed] https://launchpad.net/bugs/102057408:34
xnoxcjwatson: you can even ssh into the box....08:34
xnoxhttp://people.canonical.com/~xnox/ubiquity.trace.xz08:35
cjwatsonETA 4min08:35
xnoxcjwatson: of the fix uploaded? WOW you are quick ;-)08:36
* xnox kidding08:36
cjwatsonhah, no08:37
cjwatsonwell, OK, so the process reading from that pipe has exited08:52
cjwatsonit never does very much; I wonder what it is08:53
xnox-        write(OutStatusFd, status.str().c_str(), status.str().size());08:54
xnox+        FileFd::Write(OutStatusFd, status.str().c_str(), status.str().size());08:54
xnoxthis is the code in apt, which prints the status line back.08:54
xnox... it was changed....08:54
cjwatsonYeah, but my suspicion currently rests on the other end of the pipe08:55
xnoxok.08:55
cjwatsonThis sort of thing can arise from a missing close-on-exec flag08:55
cjwatsonBut just a guess so far08:55
* cjwatson has sudden nostalgia for his first real job interview, which involved on-the-fly strace analysis08:56
cjwatson17339 is plugininstall.py08:56
cjwatsonstring lengths in this strace are unfortunately short, but I guess that was for practicality?08:57
cjwatsonmakes it hard to find some things08:57
xnoxwell, it took ~2-3h to get the stack trace. cause ubiquity was slow under it. I can run it again if you know options which will reduce the cruft and increase additional info.09:01
xnoxsorry, if I missed stuff....09:01
cjwatsonI usually bump -s to something bigger, maybe 512 for this; but don't worry for now09:02
cjwatsonSo, we're in the call to cache.install_archives in commit_with_verify, clearly09:03
cjwatsonThe PROGRESS START message is therefore from DebconfInstallProgress.startUpdate09:03
cjwatsonSo the clone of 20429 is from something called immediately after the startUpdate hook09:04
cjwatsonAh, which is .run of course09:04
cjwatsonHm, it strikes me as a little odd that we're using "while self.update_interface():" but update_interface does not generally seem to return a vaue09:08
cjwatson*value09:08
* cjwatson looks at older python-apt09:08
cjwatsonSo that might well be the real source of the problem; but how are you supposed to tell from update_interface when it's done?09:13
xnox   def update_interface(self):09:13
xnox        apt.progress.base.InstallProgress.update_interface(self)09:13
xnox        self.frontend.refresh()09:13
xnoxwrapped in ubiquity...09:14
cjwatsonAlso wouldn't hurt to update the API09:15
cjwatsonxnox: Not relevantly, that's in auto_update.py09:15
xnoxcjwatson: yeah...09:16
cjwatsonAnd even then, I'm having trouble seeing a way to detect EOF without copying all of update_interface, not just wrapping it09:16
CIA-7ubiquity: cjwatson * r5534 trunk/ (debian/changelog ubiquity/install_misc.py): Update DebconfInstallProgress method names for the python-apt 0.8 API.09:17
cjwatsonAh - python-apt itself uses a select loop09:18
cjwatsonNot sure why it bothers with a timeout09:21
cjwatsonMaybe the simplest answer is (a) use a select loop rather than spinning (b) don't worry about a sensible exit condition and instead just kill the status-to-debconf subprocess when pm.do_install completes09:27
cjwatsonxnox: You're correct, I think, that the apt change you pointed to above exposed this problem, but it was never correct in ubiquity AFAICS09:28
cjwatsonAnd this probably resulted in horrendous inefficiency and/or wildly incorrect progress reporting09:28
cjwatsonSo reverting apt is the wrong answer; we should instead fix the bug it exposed09:29
cjwatsonI'm thinking http://paste.ubuntu.com/1077814/09:30
xnoxhmm... do you want me to test it?09:32
cjwatsonIf you can, though I'm trying too09:33
cjwatsonAlso a sanity check :-)09:33
cjwatson(I need to confirm that I can reproduce the bug first)09:33
xnox=0)))09:34
cjwatsonHmm, that patch gets me to the slideshow with no progress messages10:13
xnoxcjwatson: you did add missing imports right?! =)10:14
cjwatsonplugininstall isn't even running ...10:14
xnoximport select; import signal...10:14
cjwatsonxnox: err, *cough*, I was misled by pyflakes.vim not telling me about them :)10:14
cjwatsonthanks10:14
xnoxcjwatson: i'm off to the office. we'll be back online in ~40minutes10:16
cjwatsonright.  I have to wait for dpkg to be fixed anyway before we can build anything10:17
cjwatsonbah, syntaxerror too10:19
cjwatsonbetter now10:47
CIA-7ubiquity: cjwatson * r5535 trunk/ (debian/changelog ubiquity/install_misc.py):10:48
CIA-7ubiquity: Rearrange DebconfInstallProgress to not assume that update_interface10:48
CIA-7ubiquity: returns a value (LP: #1020574).10:48
CIA-7ubiquity: cjwatson * r5536 trunk/ (d-i/manifest debian/changelog):10:51
CIA-7ubiquity: Automatic update of included source packages: flash-kernel10:51
CIA-7ubiquity: 3.0~rc.4ubuntu5, partman-base 158ubuntu1, partman-target 78ubuntu1,10:51
CIA-7ubiquity: preseed 1.53ubuntu1.10:51
CIA-7ubiquity: cjwatson * r5537 trunk/debian/changelog: releasing version 2.11.910:58
xnoxcjwatson: ubiquity became far more chatty now. "removing this" "configuring that"12:26
cjwatsonyeah, it would do12:27
xnoxpreviously it seemed to me to stick at "installing..." during the langpack installation step =)12:27
xnoxi like it, previously I had to expand the thinggy to see what is going on =)12:27
xnoxcjwatson: is the twitter feed not running intentionally? Can we have it on hashtags #quantal and #12.10 ?12:28
xnoxtoo user friendly, geeks need scrolling text ;-)12:28
cjwatsonno intention on my part12:29
cjwatsonfeel free to make sensible adjustments :)12:29
xnoxcjwatson: well LVM auto-install now succeeds. Upon reboot it drops into initrd shell =) I bet the lvm2 modules were not added... and initramfs was not regenerated....12:31
cjwatsonIIRC d-i does that in base-installer, so you'd need to duplicate that12:36
cjwatsonmaybe via register-module?  I don't quite remember12:37
cjwatsonhmm.  looking now I can't find where it's done.12:38
cjwatsonthe lvm2 initramfs hook, I guess.  so that's odd because I thought we unconditionally regenerated the initramfs.12:39
cjwatsonmaybe an ordering thing?12:39
cjwatsonis the lvm2 package installed in the target?12:40
cjwatsonah - perhaps you need to copy partman-lvm's post-base-installer hook somewhere useful for ubiquity, or duplicate it12:41
cjwatsonthis is a bit tedious, there's piles of crap in debian/rules that deals with similar kinds of stuff, or sometimes it's duplicated in components or scripts12:41
xnoxcjwatson: right. I think it's because lvm2 was not in the squashfs and instead it's just "installed" in the live session.13:07
xnoxbecause the update-initramfs is done at the end of the install.13:07
xnoxand lvm binaries did not appear in the list of "things not copied into the target"13:08
xnoxand it was not installed on the target13:08
xnoxcjwatson: shall I remaster the ISO or should I do a merge proposal with my work?13:09
xnoxcjwatson: after chrooting into mounted target /boot and / and doing # apt-get install lvm2 & doing a reboot it works like a charm =)13:09
xnoxcjwatson: cause I don't see anything special done, for e.g. btrfs-tools13:10
* xnox maybe I should remaster an ISO for training purposes.13:11
cjwatsonxnox: I'd like to see an MP13:16
xnoxcjwatson: ok.13:16
cjwatsonis apt-install called for lvm2?13:16
cjwatsonyou can tell by looking in /var/lib/ubiquity/apt-installed13:16
xnoxcjwatson: in the target or the live cd during installation?13:26
xnox(i finished the install and have /var/log/installer/*)13:26
xnoxnothing in after logs =(13:29
xnoxonly /var/lib/ubiquity/os-prober-cache left.13:29
cjwatsonin the live cd during installation13:32
cjwatsonwell, at the end, before rebooting13:32
xnoxok. let me double check.13:34
xnoxcjwatson: mpt has finished: manual & automatic crypt; manual lvm.13:35
xnoxso that's what I am aiming for the feature freeze.13:36
xnoxcjwatson: will that be enough to drop alternative? (no raid...)13:36
cjwatsonhmm, not sure13:40
cjwatsonmaybe, since desktop RAID (not DM-RAID) isn't a big thing really13:40
brendandcjwatson - we have lab presence again. is there any extra info you'd like regarding the upgrade bug?13:40
cjwatsonmight be worth looking around to see if people commonly report using the alternate CD in order to use RAID13:41
cjwatsonbrendand: not right now, thanks.  sorry, my day has been (a) critical ubiquity bug in quantal (b) server CD -> squashfs work requested increasingly urgently by Daviey (c) working on a regression in recent Launchpad changes (d) this upgrade bug13:41
brendandcjwatson, i understand13:42
gemasmoke testing bug, easy to fix I hope, bug 102171813:45
ppisatihi guys13:45
ubot2Launchpad bug 1021718 in debian-installer "Ubuntu Precise ISO test failed in Jenkins due to debian installer failed to get debconf answer 'base-installer/kernel/linux/initrd'." [Undecided,Confirmed] https://launchpad.net/bugs/102171813:45
ppisatihttp://people.canonical.com/~ppisati/Jul062012_omap3_preinstall_brk/13:45
ppisatiwhile trying preinstall server omap313:45
ppisatiubiquity.install_misc.InstallStepError: Plugin console_setup failed with code 113:45
ppisatii've both syslog and oem-config.log13:45
ppisatithe installer kept restarting13:46
mptcjwatson, next week I'll polish off automatic crypt design and then go on to RAID design.13:46
ppisatiuntil it gave up and landed me in a # console13:46
xnoxogra_: i think you might want to see ppisati question ^^^^13:46
ogra_xnox, i sent him here :)13:46
cjwatsongema: stuck on a soyuz bug / new kernel upload13:47
cjwatsonnot an installer bug13:47
gemacjwatson: who should I notify?13:47
cjwatsonthe kernel team already know about it13:47
gemacjwatson: ack13:47
cjwatsonI'll nag them13:47
gemathanks13:47
xnoxogra_: ping pong eh? =)13:48
xnoxppisati: can you pastebin the logs?13:48
ogra_xnox, well, we were in #ubuntu-arm but i think its not arch specific at all13:48
ppisatixnox: available here - http://people.canonical.com/~ppisati/Jul062012_omap3_preinstall_brk/13:48
cjwatsonhow's it not arch-specific?13:48
cjwatsonJun 27 02:39:55 localhost ubiquity: Unsupported platform.13:48
cjwatsonJun 27 02:39:55 localhost ubiquity: run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 113:48
xnoxppisati: ideally run ubuntu-bug ubiquity. or paste. Oh ok =)13:49
ogra_console_setup exploding is arch specific ?13:49
ogra_(unsupported arch is fine, just fixed that (pending upload))13:49
cjwatsonconsole-setup calls update-initramfs13:49
cjwatsonupdate-initramfs explodes because the flash-kernel hook explodes13:49
ogra_oh, sigh ... yeah13:49
ogra_sorry13:49
cjwatsonthe top-level error message is just a bit misleading, that's all13:49
ogra_yep, should have thought about the initramfs bits13:50
ppisaticjwatson: there some more errors in oem-config13:50
ppisatish: 1: killall.sh: not found13:50
ppisatish: 1: rdisc6: not found13:50
ppisatietcetc13:50
ppisatiis it ok?13:50
cjwatsonppisati: don't care13:50
cjwatsongema: actually, from https://launchpad.net/~canonical-kernel-team/+archive/ppa/+packages I see that it's already building, so no need/point nagging the kernel tam13:51
ppisatiack13:51
cjwatson*team13:51
gemacjwatson: awesome, thanks13:51
cjwatsonppisati: that's just bits of netcfg that (a) don't work outside d-i but (b) don't really matter here either13:51
ppisatiok13:52
cjwatsongema: https://irclogs.canonical.com/2012/07/06/%23launchpad-ops.html#t07:21 has the gory details if you care :)13:54
cjwatson(hideous LP internals)13:54
gemacjwatson: thanks!13:55
* cjwatson grumbles and queue-jumps those PPA builds13:58
xnoxcjwatson: so lvm2 is not in /var/lib/ubiquity/* but in the apt-removed there is cryptsetup.14:07
* xnox mouse is stuck =(14:09
cjwatsonok, that sounds like you need to hunt down why apt-install wasn't called then; I thought partman-lvm or some such did that14:12
xnoxok.14:13
* ogra_ sends one of his cats to xnox (that will teach the mouse !)14:13
xnoxcjwatson: well apt-install was called, with a few packages, but not lvm2. but yeah, checking now.14:14
xnoxI am not going to ask why livecd has /lib/systemd/15:20
* xnox *sigh*15:20
cjwatsonbunch of packages shipping systemd service files as well15:21
xnoxcjwatson: so, partman-btrfs does apt-install in the partman/finish.d script15:28
xnoxbut crypto,lvm,raid do it in the scripts shipped under /usr/lib/post-base-installer.d/15:28
xnoxcjwatson: should I add a plugin to iterate across scripts in the /usr/lib/post-base-installer.d?15:28
xnoxor should I shove those scripts into partman/finish.d for ubiquity to pick up?15:29
xnoxor is btrfs actually apt-installed from partman/finish.d in ubiquity?15:29
* xnox looks what you said above15:29
cjwatsonstandard (perhaps a bit shonky) practice is to do something like invoking them from an InstallPlugin (or whatever it's called)15:30
xnoxlet me look.15:30
cjwatsonI was a bit reluctant to iterate across everything since (a) that path is nasty for ubiquity and ought to be under /usr/lib/ubiquity/ or something (b) I wasn't sure all the p-b-i scripts were sane (c) you'd still have to have debian/rules or similar code to arrange for them to be installed15:31
cjwatsonpartman/finish.d should be run automatically15:31
cjwatsonthere is an argument that at least the lvm one belongs in finish.d15:32
cjwatsonI haven't looked at the others15:32
cjwatsoncertainly moving to finish.d would be least code15:32
xnoxwhat is finish-install.d vs finish.d vs post-base-installer.d ? where can I check when what is called?15:34
cjwatsonfinish.d is called from partman itself (well, partman-commit in ubiquity)15:44
cjwatsonpost-base-installer.d and finish-install.d are both d-i-specific; they're called, respectively, at the end of base-installer and at the very end of installation15:45
xnoxpartman-crypto uses all three: finish.d post-base-installer.d and finish-install.d15:45
xnoxand e.g. d-i-utils has post-base-installer.d to add/blacklist modprobe modules15:46
cjwatsonthere's a d-i internals document linked from Installer/Development that IIRC goes through all this15:51
xnoxthanks, let me find it.15:54
xnoxcjwatson: the p-b-i does ugly crap, like raising pointless debconf questions and confirmation dialogs15:54
Sargun_ScreenHow would one update a package on the netinstall (PXE) - specifically if they were running it as a netboot20:53
Sargun_ScreenThe mdadm package causes my kernel to fail20:54
cm-tomg! I just successfully installed an array list of package (vlc, vrms) with ubiquity, I was so making something far while the code was allready there !21:07
cm-t(hi)21:07
stgraberapt-install vlc vrms21:07
stgraber:)21:07
cm-ti mean21:07
cm-t getting the good /target21:07
cm-tit was just  self.do_install(packageArray)21:08
cm-t>.<21:08
cm-twas trying so many thing, and did not even scroll at the bottom of the script where this wonderfull method was21:09
cm-tjust need to work this week-end with my group mates to get this with oneconf (they made I think, just some sso problems) and we might consider having something running (not talking about a clean code for the while ^^)21:11
cm-tI will update blueprint this week-end cjwatson, mpt21:12
infinitycjwatson: Say, opinion.  Since we fixed #1010708 in -proposed (and soon, updates), and since those files/directories are managed in a dubious and poorly-tracked manner anyway, do you have any objections to just "fixing" the bug in the release pocket by moving the two uI* files where they belong, so there isn't inconsistency between release and updates (and later releases)?21:23
infinitycjwatson: Oh, I guess that would break the manifest too.  Hrm.21:24
infinitycjwatson: Oh, wait.  But the *SUMS could just be fixed and re-signed.  That doesn't seem like an awful solution for a port in flux.  Worth a ponder.21:25
cjwatsonI'm not at all wild about changing the release pocket of a stable release, although I guess the number of people who would notice or care would be small22:02
cjwatsonthe *SUMS files would be automatically re-signed if they change22:02
infinityYeah, I figured that.22:24
infinityAnd I'm not a big fan of changing release pockets either, but this isn't a Packages file or anything, and it seems like minimal impact to avoid confusion.22:24
infinityI think I'll JFDI and ask for forgiveness. :P22:24
cjwatsonYeah.22:31

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