/srv/irclogs.ubuntu.com/2012/12/10/#ubuntu-installer.txt

veebersHi all, would anyone be able to take a look at this bug?: https://bugs.launchpad.net/bugs/108576700:55
ubot2Launchpad bug 1085767 in ubiquity (Ubuntu) "Installer boot halts and hangs (netboot + nfs)" [Undecided,New]00:55
veebersor at least what/if there is any other details that I can provide to make it more useful?01:24
FourDollarscjwatson: I may find the root cause of https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1087653 .09:34
ubot2Launchpad bug 1087653 in OEM Priority Project "grub2-signed doesn't support removable drive." [High,New]09:34
FourDollarscjwatson: grub2-signed will only read (hd1,msdos1)/EFI/ubuntu/grub.cfg but not (hd1,msdos1)/EFI/BOOT/grub.cfg .09:35
cjwatsonFourDollars: grubx64.efi reads from /EFI/ubuntu/; gcdx64.efi reads from /EFI/BOOT/09:36
cjwatsonthey're intentionally configured differently per the UEFI specification09:36
cjwatsonso grub-install --removable probably needs to remember to use gcdx64.efi09:36
cjwatsonI've reassigned the bug to grub2 accordingly09:36
FourDollarscjwatson: Yes. That is why `grub-install --removable` doesn't work for me.09:38
FourDollarscjwatson: I finally understand the difference between gcdx64.efi and grubx64.efi.09:38
cjwatsonthere are a couple of other differences in the module set available, but they aren't relevant here09:39
FourDollarscjwatson: BTW, `grub-install --removable` of precise-proposed will not create /EFI/BOOT/grub.cfg automatically. Is it normal?09:43
cjwatsonYou're the first person to test --removable on UEFI SB09:45
cjwatsonSo in general it's not a surprise (and not a regression) if it's broken09:45
FourDollarsI know. Because I need this function. XD09:45
cjwatsonSure, just saying, expect it to be broken right now because nobody has previously cared09:46
FourDollarsDo you remember I have asked the same question in one UDS seesion?09:46
cjwatsonI'm afraid I have trouble remembering everything from UDS, sorry - I'm not saying I won't fix it, just that asking "is it normal" doesn't make sense09:47
FourDollarsNot mind.09:48
cjwatsonAh, now, I do see a mistake in my backport here09:48
cjwatsonWhich could be the cause of stgraber's trouble as well09:54
cjwatsonFourDollars: Try applying http://paste.ubuntu.com/1422879/ to /usr/sbin/grub-install09:59
FourDollarscjwatson: Will grubx64.efi read /EFI/BOOT/grub.cfg ? I just put a /EFI/BOOT/grub.cfg and it doesn't work.10:01
cjwatsonNo, it will not10:01
cjwatsonBut if you apply the patch I gave, grub-install will use gcdx64.efi instead10:01
cjwatson(with --removable)10:02
FourDollarscjwatson: I see.10:02
FourDollarscjwatson: Is http://paste.ubuntu.com/1422879/ used for grub2 of precise-proposed?10:03
cjwatsonYes10:04
FourDollarscjwatson: I have manually copied gcdx64.efi to /EFI/BOOT/grubx64.efi.10:04
FourDollarscjwatson: Will gcdx64.efi read any grub.cfg by default?10:05
FourDollarsOK. Let me try you patch first.10:07
FourDollarss/you/your/10:07
gemaxnox: ping10:11
gemaxnox: bug 1087630 needs some attention, are you aware of it?10:11
ubot2Launchpad bug 1087630 in ubuntu-meta (Ubuntu) "server minimal virtual installations are bloated" [High,Confirmed] https://launchpad.net/bugs/108763010:11
gemaxnox: if this not important, I'd like to know so that we can demote these tests out of smoke testing10:12
xnoxgema: I have seen being pinged about this bug. But it's not for me to fix, it will probably need seed changes.10:13
xnoxgema: I have a point to bring about smoke testing.10:13
gemaxnox: so who should be fixing this?10:13
gemaxnox: good, go ahead10:13
infinityDo was actually want to hard-cap the installation size so strictly?10:13
xnoxgema: I would think server product owner would be the one interested in fixing this.10:13
gemainfinity: I don't know, we were asked to add this last cycle, it may not be so important anymore?10:13
xnoxgema: I think static analysis should not block other testing.10:14
xnoxgema: e.g. I have noticed that Wubi check was removed from iso static pre-test, because on initial raring images wubi was not present yet.10:14
infinityBah, and cdimage has already dropped the old manifests, I wanted to see if it was new packages being added, or just packages growing.10:14
gemaxnox: this one in particular is not static analysis10:14
xnoxgema: the wubi check then blocked testing of downstream projects.10:15
xnoxgema: does the server minimal install test block downstream testing of i386 server?10:15
gemaxnox: yes, because we run static analysis on the default job that kicks everything else10:15
infinityAhh, the buildd has a few more.  Handy.10:15
gemaxnox: nope, this is a job that kicks of on a minimal VM and ubuntu doesn't really fit, it is a minimal configuration type of test10:15
xnoxgema: which is not fully correct, since the server cdimage is good, does complete the install, abeit oversized.10:16
cjwatsonFourDollars: With my patch, grub-install --removable should create /EFI/BOOT/grub.cfg and gcdx64.efi should read it.  Please don't copy anything else around manually - you will just make it harder to diagnose your system.10:16
xnoxgema: ah, ok then.10:16
FourDollarscjwatson: Roger that.10:16
gemaxnox: ok, so we may need the release team's help defining what is smoke and that is not, and what are blocking factors for downstream testing10:16
cjwatsongema: This is absolutely a matter for the server team10:16
gemacjwatson: ack, will talk to them10:16
xnoxgema: from a developers perspective (/me is not release team) I want to attempt as many tests as possible & see the output from as many as possible.10:17
cjwatsonWhile we can help with matters that turn out to be installer bugs, IIRC last time I investigated most of this was not10:17
cjwatsonAnd the question of what limits should exist on a product is up to the product team in question10:17
gemacjwatson: understood10:17
cjwatsonBut yeah, I agree with xnox, this isn't an "image is hosed, don't try anything more" issue10:18
infinitygema: As for what's on the CD, (literally) nothing changed in the window the bug refers to.10:18
cjwatsonThere was an old bug on this which I don't think has been closed10:18
cjwatsonSo it's probably a dup10:18
xnoxgema: I am ok seeing that for example 8 tests against server ISO have "total install size fail", yet it still boots & installs in all 8 server test cases (for example)10:18
cjwatsonAh, one of the two old bugs was wontfixed10:19
infinity64309655a78512e0ed4f2533dcc2ade0  livecd.ubuntu-server-20121208-amd64.manifest10:19
gemaxnox: I think we need to explain what smoke is actually testing and then have a discussion on what are the blocking factores10:19
infinity64309655a78512e0ed4f2533dcc2ade0  livecd.ubuntu-server-20121209-amd64.manifest10:19
cjwatsongema: bug 1028453, bug 105377010:19
ubot2Launchpad bug 1028453 in livecd-rootfs (Ubuntu) "Quantal Ubuntu Server minimal install oversized" [High,Fix released] https://launchpad.net/bugs/102845310:19
ubot2Launchpad bug 1053770 in ubuntu-docs (Ubuntu Quantal) "ubuntu-server install takes up too much space" [High,Fix released] https://launchpad.net/bugs/105377010:19
cjwatson^- history10:19
xnoxgema: yeah.10:19
infinitygema: ^-- The package set on the CDs was actually identical between the two stated dates.10:19
infinitygema: So, whatever broke was post-install (in the server tasks, I'd assume)10:20
infinitygema: ie: retrying the test with 20121208 should show the same issue, so clearly not the ISO's fault.10:20
infinitygema: I thought the original stated go/no-go smoke-test was going to be just "boot/install/reboot", nothing fancy.10:21
gemainfinity: that's what it will be, this is smoke testing post publishing the images10:21
xnoxinfinity: jenkins tells me 20121206 was the last good, and we started to be over the size since then.10:21
xnoxinfinity: https://jenkins.qa.ubuntu.com/view/Raring/view/Smoke%20Testing/job/raring-server-i386-smoke-minimal-virtual/buildTimeTrend10:21
infinitygema: Oh, if this is post-publish, that's different.  xnox implied this was a "stop-ship" somehow.10:22
gemainfinity: nah, we are not doing the stop-ship one yet10:22
gemainfinity: we agreed we'd do that after Xmas10:22
infinityxnox: I'm looking at amd64, not i386.10:22
infinitygema: Right, hence my confusion, though.  I don't actually care what tests are run (the more, the merrier) for post-ship regression testing.10:22
gemainfinity: I think xnox means that if static validation doesn't pass, the way we have configured the jobs right now, no other jobs will run10:22
gemainfinity: and he doesn't know if everything else works10:23
infinitygema: It's a matter of finding the right people who care about the tests (so, yes, the server team for install size)10:23
xnoxinfinity: amd64 was also 20121206 last good.10:23
gemacool10:23
infinitygema: Ahh, yeah.  Having jobs block other jobs is unclever (unless the blocking job is "this hoses your whole VM so nothing else can run")10:23
infinityxnox: Then the bug lies. :P10:23
cjwatsonI remember earlier versions of this bug as being annoying with the rls-mgr reports.qa pages10:24
infinityxnox: Even then, the only changes in the manifest are a version bump of libglib2.0-0 and sed.10:24
xnoxinfinity: well amd64 has no jenkins test results for 07,08 (probably not triggered due to dependency =( )10:24
cjwatsonBecause ubuntu-meta was assigned to foundations by default (which isn't unreasonable), but there didn't seem to be a way for us to say "er, no, this is a server team thing"10:24
cjwatsonShort of an artificial and probably wrong package reassignment10:24
infinityAssigning bugs works. :P10:25
cjwatsonIt didn't use to10:25
cjwatsonI mean, you saw the assignee, but it was still in the foundations section10:25
infinityRight, that's a fundamental issue with the scrapey bot, though.10:25
infinityI'm not sure asking people to misuse Malone to work around the scraper is the right approach.10:26
cjwatsonWell, indeed, that's what I'm saying10:26
cjwatsonIt was annoying because the scraper results were in general useful and people were looking at them, but we had to keep saying "no, that one isn't our bug, stop nagging us about it"10:26
cjwatsonAnd I suspect the server team kept forgetting about it because it wasn't in their section10:27
infinityAnyhow.  The insatiably curious guy in me kinda wants to know why the install size went up.10:27
infinityThe rest of me doesn't care and, yes, it's a server team issue. :P10:27
* gema goes talk to the server guys10:27
xnoxDaviey: how big should the server install size should be?10:27
xnox^^^^10:27
xnoxgema: no need to go =) Daviey idles here ;-)10:27
infinitygema: Now, on the other hand, if the install size of ALL images goes up dramatically in the same window, that's likely something we (foundations/installer/cdimage/something) might care to have a quick glance at.10:28
infinitygema: Not something to fail on, per se, but something we can tick off as a "yeah, we meant to do that".10:28
xnoxgema: do we have statistics on the offline desktop install size?10:28
xnoxor e.g. size of core.10:29
gemaxnox: no10:29
gemaxnox: but we could gather them10:29
xnox(although core will probably not tell us much)10:29
xnoxgema: that would be useful. E.g. jenkins plotted graph =)10:29
gemaxnox: if you guys can define what kind of sizes you care about, we can have utah taking some measurements on every install10:29
gemaDaviey: jamespage is on the case10:30
xnoxgema: well it looks like in foundations we care more about the trends and up/down big jumps rather than X bytes.10:30
Davieythanks10:30
gemaxnox: I have been aiming to collect stats from installed images for a while, but I don't know what are the right indicators10:31
gemaxnox: so if you could define them, we can start collecting them and start plotting them mid cycle or so?10:31
gemaxnox: this would be queued after bootspeed and power consumption graphs :)10:31
gemaxnox: but there's nothing stopping us from collecting the data already10:32
xnoxgema: I see. Adding an item for me to file a bug with definitions that are stable and useful.10:32
gemaxnox: thanks10:32
gemaxnox: we will add another reporting area to smoke testing for trends and stick the graphs there10:38
cjwatsonFourDollars: Any luck?  If it improves things it might be worth me uploading that to precise-proposed ...10:39
FourDollarscjwatson: Not yet. I just generate the Debian packages.10:40
cjwatsonFourDollars: Oh, my patch was one that you could just apply in place10:49
cjwatsonShould be like 400 times faster10:49
cjwatsonFourDollars: The correct patch for the packaging is a bit different since it would want to modify the patch system instead ...10:49
cjwatson'sudo patch /usr/sbin/grub-install <the-patch-file'10:50
FourDollarscjwatson: It seems to use the (hd1,gpt2)/boot/grub/grub.cfg on HDD but not (hd1,msdos1)/boot/grub/grub.cfg on USB drive.10:50
cjwatsonAt this point it is not at all clear to me what you've done because you apparently aren't following my directions ...10:50
cjwatsonSo I'll have to ask you for full debug logs at every step10:51
FourDollarscjwatson: I use quilt to add your patch on grub2/precise-proposed.10:51
cjwatsonThat wasn't what I asked you to do10:51
cjwatson(debug logs: add the --debug option to grub-install, post result on paste.ubuntu.com)10:52
FourDollarsOK. Let me try.10:52
cjwatsonI appreciate your testing effort but you really need to follow my directions to the letter; remember that from my point of view I am trying to come up with a mental model of what your computer is doing by asking you to do specific things to it, and when you do different things from what I asked it makes it harder for me to come up with that model10:53
FourDollarsRoger that.10:53
FourDollarscjwatson: http://paste.ubuntu.com/1422959/10:55
cjwatsonFourDollars: could I also have the full command line you used there, please?10:57
cjwatsonjust to make sure10:57
FourDollarscjwatson: sudo grub-install --debug --removable --uefi-secure-boot --root-directory /media/UsbStick /dev/sdb110:58
cjwatsonSo I *think* that using --root-directory is wrong10:59
cjwatsonBut I'm investigating10:59
FourDollars:)11:00
cjwatsonHmm, maybe that's a red herring11:01
cjwatsonOh, hmm, I see.  So one of the problems with signed UEFI images is that there's no way to stuff a bootstrap configuration file into them, because that would be inside the signed region11:02
cjwatsonWhich means that they have to work everything out from context at boot time11:02
cjwatsonThe way that gcdx64.efi does this is to assume that it's on an Ubuntu installation image, and to look for a device that has /.disk/info on it11:03
cjwatson(Contents don't matter)11:03
FourDollars`mkdir /.disk && touch /.disk/info`?11:03
cjwatsonRight, that's a necessary step, at least for now.  However, there's one other thing I'm wondering about11:04
FourDollarsLet me try.11:04
cjwatsonAt the moment, do either /media/UsbStick/boot/grub/grub.cfg or /media/UsbStick/boot/grub/x86_64-efi/grub.cfg exist?11:04
FourDollarscjwatson: Only /media/UsbStick/boot/grub/grub.cfg that I copied from my own system.11:06
cjwatsonHmm11:07
cjwatsonSo that's a problem too - let me try to work this out11:07
FourDollarscjwatson: After I touch .disk/info, it is back to the initial state of that bug. It can not show GRUB menu.11:07
cjwatsonSure, because (as I was trying to say) the embedded config file sources /boot/grub/x86_64-efi/grub.cfg11:08
FourDollarsOh~ I see.11:08
cjwatsonI'm not sure this is the right answer, but just as a test, could you please create /media/UsbStick/boot/grub/x86_64-efi/grub.cfg with these contents:11:08
cjwatsonsource $prefix/grub.cfg11:09
FourDollarsOK. Let me try it.11:09
cjwatson(This may actually be leakage from the different /boot/grub/ arrangement in 2.00 that I failed to correct when backporting all this to 1.99, hence my comment that it may not really be the right answer)11:11
FourDollarscjwatson: Yes. It works but the GRUB menu looks weird.11:11
cjwatsonProgress11:13
FourDollarsIt looks like https://plus.google.com/111702816719386284707/posts/WDVNeumLwGP11:15
cjwatsonOK, that's either a missing font or a missing locale11:16
xnoxdo you have /media/UsbStick/boot/grub/unicode.pf2 ?11:18
FourDollarsOK, that should be fine because the grub.cfg is copied directly from my system.11:18
cjwatsonYeah, you need to copy unicode.pf2 in.  In 1.99, this was handled only by the package postinst11:19
xnox(or is it /boot/grub/fonts/unicode.pf2 i have it in both locations on my system....)11:19
cjwatsonYou should find it in /usr/share/grub/11:19
cjwatsonxnox: /boot/grub/unicode.pf2 in 1.9911:19
xnoxack.11:19
cjwatsonSo the grub.cfg copied from your system is probably making assumptions about the path to the font which don't hold when it's running with a different $root/$prefix11:20
FourDollarsI think so.11:20
FourDollarsI works now after I copy /usr/share/grub/unicode.pf2 into /media/UsbStick/boot/grub and modify /media/UsbStick/boot/grub/grub.cfg .11:22
cjwatsonExcellent11:22
cjwatsonSo, going back to the /boot/grub/x86_64-efi/grub.cfg thing - that path is in fact used by installer images, which are the most important use case for gcdx64.efi11:22
cjwatsonWhat I can do, though (it'll take a new grub2-signed upload to precise, but not otherwise hard), is to have gcdx64.efi try to read $prefix/x86_64-efi/grub.cfg and fall back to $prefix/grub.cfg if it's missing11:23
FourDollarsGood. :)11:25
* FourDollars looks forward the new grub2 in precise-proposed. :P11:26
cjwatsonPreparing it now11:29
* FourDollars is away from keyboard.11:30
cjwatsonThanks for the testing work11:31
cjwatsonUploaded to precise-proposed, pending SRU team review11:34
FourDollarsnp. I am glad to help.12:01
psivaaxnox: cjwatson: is there any update about the fix for bug 108070112:34
ubot2`Launchpad bug 1080701 in ubiquity (Ubuntu Raring) "After 'Preparing to install Ubuntu' screen, raring installation hangs" [High,Confirmed] https://launchpad.net/bugs/108070112:34
psivaaiirc xnox was going to look into that :)12:34
xnoxpsivaa: no update yet. Didn't get to it yet. Reached EOD on friday, but will look into it today.12:36
psivaaxnox: ok,  thank you12:37
infinitycjwatson: Does ubiquity explicity (re)install the kernel, despite it already existing in the live image?15:18
infinitycjwatson: Seems to be set to auto in the squashfs, but after a fresh install, it's manual, so I'm assuming yes.15:18
xnoxinfinity: yes.15:20
xnoxinfinity: we also run update-initramfs to rebuild initramfs.15:20
infinityYes, the latter is perfectly fine.15:20
infinity            if name.startswith('linux-image-2.'):15:21
xnoxinfinity: what abut the former? cause trouble with kernel auto removal?15:21
infinity^-- That's not outdated code...15:21
cjwatsonscripts/check-kernels is more relevant15:21
cjwatsonHeh, yeah, might be worth fixing traverse_for_kernel15:22
cjwatsonSo I think perhaps scripts/check-kernel should just append to /var/lib/ubiquity/apt-installed for already-installed kernels rather than doing the full apt-install thing15:23
cjwatsonIn general I think apt-install is right to do an explicit apt-get install, because other things it's asked for might be vulnerable to autoremoval otherwise15:23
cjwatsonBut it obviously doesn't make sense for individual kernel packages15:24
cjwatsonWe should just make sure that the top-level metapackages aren't autoremoved15:24
infinityYeah.  The whole traversal thing here feels wrong.15:25
infinityI can't sort out WHY it would want to drill down and install the "real" package instead of the meta.15:25
infinityThough there must have been a reason.15:25
=== bdmurray_ is now known as bdmurray
xnoxpsivaa: i think i can now reproduce the hang.17:00
psivaaxnox: thanks, that's good :)17:09
xnoxpsivaa: yeah...17:09

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