=== thom_ is now known as thom [05:42] So 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:50] Where .../Release is http://archive.ubuntu.com/ubuntu/dists/gutsy/Release [10:46] What generates these files? http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/{linux,initrd.gz} [10:53] superm1: I don't think your r2181 is correct. apt-setup should take care of that already. [10:54] twb: part of the debian-installer source package build process [10:54] twb: we have a session scheduled for the next developer summit to fix a number of issues with networkless installation, which also covers this case [10:54] tepsipakki: erm, I forget whether this was one of the things that Anton already nacked ... [10:57] cjwatson: 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:58] twb: 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 timeout [10:59] twb: can you post your preseed file, minus any sensitive information like passwords? [10:59] I'm not using any preseed file yet [10:59] err [10:59] so how are you telling it to use the internal mirror? [10:59] The problem is that here, any non-proxy web traffic is DROPPED [10:59] Not rejected [10:59] I heard you [10:59] So it's taking at least five minutes to time out before asking for a proxy [10:59] By which time I give up [11:00] I'm telling it to use the internal mirror by hand, when it asks which mirror to use [11:01] I apologize if I'm being silly and thus sounding brash. [11:02] you can work around it using apt-setup/use_mirror=false and installing entirely from the CD [11:02] I don't have a CD. [11:02] unfortunately that does mean you'll either have to set up sources.list to ... oh [11:02] cjwatson: ah, so in that case debian won't be using it? I'll revert the commit then :) [11:03] tepsipakki: I didn't say that, I said I couldn't remember [11:03] tepsipakki: please don't revert it, I think Debian *should* be using it [11:03] cjwatson: ok, I'll discuss it with gravity on FOSSCamp [11:04] tepsipakki: please grab me too :) [11:04] maybe xsf could help getting this in d-i/console-setup [11:04] cjwatson: sure :) [11:04] tepsipakki: oh, I have commit access, that's not a problem, I just need to refamiliarise myself with where Debian is in terms of console [11:05] twb: hmm, the case where you have a CD is the only one I know of where archive.ubuntu.com is hardcoded [11:05] twb: could I see your logs, please? [11:05] Er, which log? [11:05] twb: syslog [11:05] cjwatson: yep, but getting it acked would be easier if, say, xsf wanted to use it too :) [11:05] Hmm... how can I get that off the system? The initrd doesn't contain ssh or scp [11:07] twb: nc [11:07] (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:08] twb: or use the "save debug logs" item on the main menu [11:08] menu? [11:08] back up ... [11:08] OK, that menu [11:08] The one you get when you click "Go Back" [11:09] correct [11:14] Two 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:18] yes, it would [11:19] any luck on the logs? [11:20] ftp://twb.ath.cx/tmp/syslog [11:22] hmm, of course, I misread that code path [11:26] bah, 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:27] this 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] Please do. [11:27] AFAICT it's simply wrong, and only ever worked by accident. [11:27] well, it makes a valiant attempt to avoid timeouts [11:27] but obviously not enough [11:28] it'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 coffee [11:29] It makes testing the preseed a horrible pain [11:29] that is not an attempt to argue that it isn't a bug, just that it shouldn't be a showstopper :) [11:29] Shall I tell you the other problem? [11:29] sure [11:29] 192.168.67.0/24 is a network just between the netboot server and the clients [11:31] If 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] But if I tell it NOT to use the proxy, er, something bad happens, I can't remember what. Lemme check [11:32] it doesn't sound like you should be telling it to use a proxy [11:33] while apt-cacher is a proxy in some sense it's acting more like a mirror here [11:33] It's purpose is basically to reduce the download time because it's only going over the 100Mbit crossover, not the public internet [11:34] I understand, but that doesn't make it a proxy as far as d-i is concerned :) [11:35] Oh no no no [11:35] I'm telling it to use the squid proxy [11:35] it's a proxy if the requests are named for some host outside your network, but actually being sent to an internal host [11:35] doesn't sound like you can do both that and use the apt-cacher [11:38] Right [11:38] Essentially I want to set no_proxy=192.168.67.1 [11:38] but the proxy is *only* used to talk to the mirror [11:39] it's not used for any other purpose [11:39] It's not used for security repo? [11:39] oh, yes, it is. you don't mirror that then? [11:39] I could, but I can't TELL it to use my security mirror, AFAICT [11:39] you can, but only by preseeding [11:39] Ah, OK.\ [11:39] apt-setup/security_host [11:39] Where do you learn what these preseed keys are? [11:40] For example, all the Debian documentation still talks about console-data/keymap instead of console-data-at/keymap [11:40] they're in the installation guide [11:40] https://help.ubuntu.com/7.04/installation-guide/i386/appendix-preseed.html [11:40] Thanks. [11:41] I don't think there's a published version for 7.10 yet, but the differences are small [11:41] It looks like a fork of the Debian Install Guide [11:41] it is [11:42] but with details adjusted, for example the one you pointed out above (except that it's not console-data-at/keymap either) [11:42] Sorry, I may mis-remember [11:42] you'll want the console-setup/* questions for that [11:44] Is that guide available as a PDF? [11:48] html2ps doesn't appear able to cope with the https protocol. [11:48] yes, in the installation-guide-$ARCH package (e.g. installation-guide-i386) [11:49] Thanks. === cjwatson_ is now known as cjwatson [22:42] cjwatson, 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] cjwatson, but in an effort to get our disk out i put that in