/srv/irclogs.ubuntu.com/2007/10/22/#ubuntu-installer.txt

=== thom_ is now known as thom
twbSo I'm trying to install via netboot.  It doesn't ask me to set an http proxy (unlike Debian), and despite being told to use the internal mirror (an apt-cacher daemon), it's clear from the debugging log that it's trying to fetch .../Release directly from archive.ubuntu.com -- which doesn't work in my environment because http traffic that doesn't go through the proxy is dropped.05:42
twbWhere .../Release is http://archive.ubuntu.com/ubuntu/dists/gutsy/Release05:50
twbWhat generates these files? http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/{linux,initrd.gz}10:46
cjwatsonsuperm1: I don't think your r2181 is correct. apt-setup should take care of that already.10:53
cjwatsontwb: part of the debian-installer source package build process10:54
cjwatsontwb: we have a session scheduled for the next developer summit to fix a number of issues with networkless installation, which also covers this case10:54
cjwatsontepsipakki: erm, I forget whether this was one of the things that Anton already nacked ...10:54
twbcjwatson: well, I need to fix this bug NOW; before I start ripping apart the cpio, it occurred to me to investigate if there were already existing abstractions that could make the process less tedious.10:57
cjwatsontwb: choose-mirror is hardcoded to go to archive.ubuntu.com to find out whether it needs to use a proxy, but that has a very short timeout10:58
cjwatsontwb: can you post your preseed file, minus any sensitive information like passwords?10:59
twbI'm not using any preseed file yet10:59
cjwatsonerr10:59
cjwatsonso how are you telling it to use the internal mirror?10:59
twbThe problem is that here, any non-proxy web traffic is DROPPED10:59
twbNot rejected10:59
cjwatsonI heard you10:59
twbSo it's taking at least five minutes to time out before asking for a proxy10:59
twbBy which time I give up10:59
twbI'm telling it to use the internal mirror by hand, when it asks which mirror to use11:00
twbI apologize if I'm being silly and thus sounding brash.11:01
cjwatsonyou can work around it using apt-setup/use_mirror=false and installing entirely from the CD11:02
twbI don't have a CD.11:02
cjwatsonunfortunately that does mean you'll either have to set up sources.list to ... oh11:02
tepsipakkicjwatson: ah, so in that case debian won't be using it? I'll revert the commit then :)11:02
cjwatsontepsipakki: I didn't say that, I said I couldn't remember11:03
cjwatsontepsipakki: please don't revert it, I think Debian *should* be using it11:03
tepsipakkicjwatson: ok, I'll discuss it with gravity on FOSSCamp11:03
cjwatsontepsipakki: please grab me too :)11:04
tepsipakkimaybe xsf could help getting this in d-i/console-setup11:04
tepsipakkicjwatson: sure :)11:04
cjwatsontepsipakki: oh, I have commit access, that's not a problem, I just need to refamiliarise myself with where Debian is in terms of console11:04
cjwatsontwb: hmm, the case where you have a CD is the only one I know of where archive.ubuntu.com is hardcoded11:05
cjwatsontwb: could I see your logs, please?11:05
twbEr, which log?11:05
cjwatsontwb: syslog11:05
tepsipakkicjwatson: yep, but getting it acked would be easier if, say, xsf wanted to use it too :)11:05
twbHmm... how can I get that off the system?  The initrd doesn't contain ssh or scp11:05
cjwatsontwb: nc11:07
cjwatson(and you can use 'anna-install openssh-client-udeb' to get scp, but only if it can talk to a mirror to retrieve it ...)11:07
cjwatsontwb: or use the "save debug logs" item on the main menu11:08
twbmenu?11:08
cjwatsonback up ...11:08
twbOK, that menu11:08
twbThe one you get when you click "Go Back"11:08
cjwatsoncorrect11:09
twbTwo more data: if I have the server tell (via DNS) the netboot client that "archive.ubuntu.com" --> 127.0.2.1, then it fails straightaway and immediately asks about the proxy; secondly, this issue occurs with both feisty and gutsy.11:14
cjwatsonyes, it would11:18
cjwatsonany luck on the logs?11:19
twbftp://twb.ath.cx/tmp/syslog11:20
cjwatsonhmm, of course, I misread that code path11:22
cjwatsonbah, that code is so broken. There's really not much of a way around this in the existing code, short of something gross like replacing wget with a wrapper that just exits immediately if it's asked for something starting with http://archive.ubuntu.com/11:26
cjwatsonthis code was one of the more desperate approaches to reducing the number of questions asked by d-i in the warty era. Now that we have ubiquity I'm very tempted to just rip it out.11:27
twbPlease do.11:27
twbAFAICT it's simply wrong, and only ever worked by accident.11:27
cjwatsonwell, it makes a valiant attempt to avoid timeouts11:27
cjwatsonbut obviously not enough11:27
cjwatsonit's not wrong *as such*, it's just very slow in some circumstances; in your case, I would be inclined to just preseed everything and not worry about the timeout because it could happen on all my machines in parallel and I could spend it having a cup of coffee11:28
twbIt makes testing the preseed a horrible pain11:29
cjwatsonthat is not an attempt to argue that it isn't a bug, just that it shouldn't be a showstopper :)11:29
twbShall I tell you the other problem?11:29
cjwatsonsure11:29
twb192.168.67.0/24 is a network just between the netboot server and the clients11:29
twbIf I tell the client to use the proxy, which runs outside that NATted environment, then the proxy can't find the apt-cacher on 192.168.67.1 (for obvious reasons)11:31
twbBut if I tell it NOT to use the proxy, er, something bad happens, I can't remember what.  Lemme check11:31
cjwatsonit doesn't sound like you should be telling it to use a proxy11:32
cjwatsonwhile apt-cacher is a proxy in some sense it's acting more like a mirror here11:33
twbIt's purpose is basically to reduce the download time because it's only going over the 100Mbit crossover, not the public internet11:33
cjwatsonI understand, but that doesn't make it a proxy as far as d-i is concerned :)11:34
twbOh no no no11:35
twbI'm telling it to use the squid proxy11:35
cjwatsonit's a proxy if the requests are named for some host outside your network, but actually being sent to an internal host11:35
cjwatsondoesn't sound like you can do both that and use the apt-cacher11:35
twbRight11:38
twbEssentially I want to set no_proxy=192.168.67.111:38
cjwatsonbut the proxy is *only* used to talk to the mirror11:38
cjwatsonit's not used for any other purpose11:39
twbIt's not used for security repo?11:39
cjwatsonoh, yes, it is. you don't mirror that then?11:39
twbI could, but I can't TELL it to use my security mirror, AFAICT11:39
cjwatsonyou can, but only by preseeding11:39
twbAh, OK.\11:39
cjwatsonapt-setup/security_host11:39
twbWhere do you learn what these preseed keys are?11:39
twbFor example, all the Debian documentation still talks about console-data/keymap instead of console-data-at/keymap11:40
cjwatsonthey're in the installation guide11:40
cjwatsonhttps://help.ubuntu.com/7.04/installation-guide/i386/appendix-preseed.html11:40
twbThanks.11:40
cjwatsonI don't think there's a published version for 7.10 yet, but the differences are small11:41
twbIt looks like a fork of the Debian Install Guide11:41
cjwatsonit is11:41
cjwatsonbut with details adjusted, for example the one you pointed out above (except that it's not console-data-at/keymap either)11:42
twbSorry, I may mis-remember11:42
cjwatsonyou'll want the console-setup/* questions for that11:42
twbIs that guide available as a PDF?11:44
twbhtml2ps doesn't appear able to cope with the https protocol.11:48
cjwatsonyes, in the installation-guide-$ARCH package (e.g. installation-guide-i386)11:48
twbThanks.11:49
=== cjwatson_ is now known as cjwatson
superm1cjwatson, that's why i have it in our branch only for now.  It didn't seem sensible to me either that it was acting that way.  I wasn't sure if apt-setup was missing something.  Apparently it is, and mirrors aren't properly setup either.22:42
superm1cjwatson, but in an effort to get our disk out i put that in22:42

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