/srv/irclogs.ubuntu.com/2010/01/19/#ubuntu-installer.txt

=== robbiew is now known as robbiew_
CIA-6ubiquity: evand * r3676 ubiquity/ubiquity/frontend/gtk_ui.py: Missed one spot that had a bgo 56070 workaround.10:45
cjwatsonev: I guess not that many people are believers in the Unicode ellipsis in English text; it always seemed to be asking for trouble to me :-)10:53
evI think it looks a bit nicer (http://tecnocode.co.uk/2009/10/01/unicode-in-gnome/), but not enough for me to go and invalidate a whole bunch of translations.10:55
cjwatsonthe other constraint might be that gettext restricts msgids to ASCII-only11:13
cjwatsonor strongly recommends, anyway11:13
cjwatsonthis is apparently because if gettext doesn't find a translation it returns the msgid unchanged without doing any recoding11:14
cjwatsonbut the upshot is that if you try to put non-ASCII text in msgids, you get whines on stderr all the time, so most people avoid it11:14
CIA-6grub-installer: cjwatson * r833 no-device-map/ (debian/changelog grub-installer): Use an appropriate OS device name rather than (hd0) if possible.14:55
=== robbiew_ is now known as robbiew
evperhaps its best solved in en_* then.15:16
iktheya anyone alive >.>16:03
evcjwatson, michaelforrest: (bug 414912, bug 336751) thoughts? http://people.canonical.com/~evand/tmp/transitions.html16:11
ubottuLaunchpad bug 414912 in ubiquity "Poor progress feedback for Back/Forward on slow machine" [Undecided,New] https://launchpad.net/bugs/41491216:11
ubottuLaunchpad bug 336751 in ubiquity ""Starting up the partitioner" uses separate window misleadingly" [Low,Confirmed] https://launchpad.net/bugs/33675116:11
evI'm afraid it's even more jarring than the existing version.16:11
cjwatsonev: I was hoping we could use a status bar or something16:12
cjwatsonI agree this is pretty jarring16:12
cjwatsonI like what you've done with the manual partitioner though!16:13
evthanks16:13
evI think I need to smooth that out a bit16:13
michaelforrestev let's talk about this in a bit16:13
michaelforrest(I am about to go to a meeting )16:13
evmichaelforrest: sure thing16:14
cjwatsondoes it disable the UI when the spinner is up in the manual partitioner?16:14
evyes16:14
cjwatsonin bug 336751, mpt said "A status bar would be quite inappropriate in an assistant-style window such as the installer", but gives no reasoning for this declaration16:14
ubottuLaunchpad bug 336751 in ubiquity ""Starting up the partitioner" uses separate window misleadingly" [Low,Confirmed] https://launchpad.net/bugs/33675116:14
evcjwatson: indeed, that's what I was going off of16:14
evit's a shame he's not around, but perhaps michaelforrest (when he gets back) understands what mpt's reasoning would be16:15
cjwatsonI'm concerned at that sort of declaration since it seems that the result is things looking much worse :)16:15
evagreed16:15
cjwatsonmaybe not a status bar, but could we do something like the spinner you did for the manual partitioner, but in some other bit of blank space?16:16
cjwatsonI don't know what's consistently available ...16:16
cjwatsonikt: replied to your mail16:16
evthe space between step X of X and back forward next16:16
everr quit back forward16:16
evthat's about it :)16:16
evfor what it's worth, this is all in ~ev/ubiquity/progress_indicator16:17
evPyGTK 2.17.0-0ubuntu2 just hit the archive with GtkSpinner16:18
CIA-6ubiquity: cjwatson * r3677 ubiquity/ (10 files in 4 dirs):16:21
CIA-6ubiquity: Add a context manager (raised_privileges) and a function decorator16:21
CIA-6ubiquity: (raise_privileges) that are equivalent to a16:21
CIA-6ubiquity: regain_privileges/drop_privileges pair, but that wrap up the required16:21
CIA-6ubiquity: try/finally logic to make it less likely that we'll end up at the wrong16:21
CIA-6ubiquity: privilege level by mistake.16:21
iktcjwatson: cheers :)16:24
CIA-6ubiquity: cjwatson * r3678 ubiquity/ (debian/changelog ubiquity/auto_update.py):16:36
CIA-6ubiquity: When attempting to upgrade the installer, only stop debconf-communicator16:36
CIA-6ubiquity: once we've determined that we actually have something to upgrade.16:36
CIA-35grub-installer: cjwatson * r834 no-device-map/ (debian/changelog grub-installer):16:59
CIA-35grub-installer: When installing from non-CD media, we only need to reset the default16:59
CIA-35grub-installer: boot device if we would otherwise end up installing GRUB to the16:59
CIA-35grub-installer: installation media.16:59
CIA-35ubiquity: cjwatson * r3679 ubiquity/debian/ (changelog control): Require Python 2.6, for the 'with' statement.17:26
CIA-35grub-installer: cjwatson * r835 no-device-map/debian/changelog: grammar18:42
CIA-35ubiquity: cjwatson * r3680 ubiquity/ (6 files in 4 dirs):18:43
CIA-35ubiquity: Move default GRUB target calculation to ubiquity.misc, which is a better18:43
CIA-35ubiquity: location for common code than ubiquity.components.summary. Try to avoid18:43
CIA-35ubiquity: using (hd0) as the target (prefer the first device from grub-mkdevicemap18:43
CIA-35ubiquity: output if possible), and, when installing from a non-CD medium, only18:43
CIA-35ubiquity: reset the default boot device if we would otherwise end up installing18:43
CIA-35ubiquity: GRUB to the installation medium.18:43
CIA-35ubiquity: cjwatson * r3681 ubiquity/debian/changelog: LP: #508725 appears to be fixed by debconf-communicator work18:59
=== stgraber_ is now known as stgraber
CIA-35localechooser: cjwatson * r154 ubuntu/debian/changelog: releasing version 2.12ubuntu319:14
Lyaahya - anyone working on patman-iscsi ?19:21
Lyaapartman-iscsi, that is19:22
CIA-35ubiquity: cjwatson * r3682 ubiquity/debian/changelog: r3678 fixes LP: #49517519:25
cjwatsonLyaa: yes, but more currently I'm working on having dinner.  Please say what the problem is and hang around, and I'll get back to you19:26
Lyaacjwatson: i've managed to launch the Lucid's installer via PXE and installed in iscsi-root (<- it has *really* improved even since Karmic! ;-))19:33
Lyaacjwatson: but the generated /etc/iscsi.initramfs is wrong.. it has $*USERNAME* ans $*PASSWORD* set to "<NULL>" which leads to no avail while initramfs-hook starts logging in that target19:34
Lyaait should be left out completly or at leadt set to =""19:35
Lyaaleast..19:35
Lyaa(then the only thing that's left for me is to find out how to re-order the network module probing in initramfs to get the right eth0-device pointing into the target's direction..grr..)19:39
cjwatsonLyaa: hmm.  could I see the installer logs?  /var/log/installer/syslog and /var/log/installer/partman, particularly21:20
cjwatsonLyaa: doing something about network probing is on my list, but it won't be by way of module probe order, it'll be by remembering the right network device to use21:21
cjwatsonLyaa: I'd like a copy of iscsi.initramfs as well21:21
dmarkey_hmm.. is there a reason ubuntu still doesnt support being installed as a domU21:25
Lyaacjwatson: hmm.. about module reordering: i've added now a file "udevrules" below /etc/initramfs-tools/hooks/ that copies over the 70-net-persistent file to initramfs image21:26
=== dmarkey_ is now known as dmarkey
Lyaacjwatson: that does the trick ;-)21:27
Lyaacjwatson: so now my nics get (re)numbered according to udev-rules in the running system21:27
Lyaacjwatson: about the log files: any  special sub part of them to nopaste? or complete logs?21:29
Lyaacjwatson: additionaly i do not have any syslog output - i had to kill some processes (i.e sysklogd) due to low ram on that machine (i.e 64MB.. )21:32
Lyaacjwatson: however, i have the partman log21:32
Lyaa. o 0 ( hmm .. and i've killed the lines from iscsi.initramfs rather than commenting them.. )21:40
Lyaai guess i'm a louzy bug reporter..21:41
Lyaa:)21:41
cjwatsonLyaa: you killed sysklogd in the installer?21:47
cjwatsonLyaa: the net-persistent stuff should already be copied, if it isn't that's a bug21:47
Lyaacjwatson: ha! .. found the original : http://paste.ubuntu.com/359236/21:48
cjwatsonhmm.  indeed it isn't.  we should fix that.21:48
cjwatsonLyaa: complete logs> always21:48
Lyaabtw: kernel cmdline "... blacklist=particular_module..." is not honored either by init-premount/blacklist21:51
cjwatsonhang on, I can't deal with all this at once :)21:51
Lyaatake your time :-)21:51
cjwatsonLyaa: can you answer "you killed sysklogd in the installer?"21:52
Lyaacjwatson: right after d-i started with the dialog-menu, i switched to console 2, activetaed the busybox shell, did a "ps" and killed all tasks (i.e syslogd and klogd) to get more ram21:54
Lyaaas i said, it's a diskless machine with only 64MB ram ..21:54
Lyaaand tht seems to be too low for current d-i21:55
cjwatsondrat21:55
Lyaaadditionally i've unloaded some modules that were autoloaded by the installer (like: filesystems that are not used further on (i.e xfs, jfs, ..)21:56
Lyaacjwatson: but with the generated variables in iscsi.initramfs you see from the script local-top/iscsi line 68: "${ISCSI_USERNAME:+-u "$ISCSI_USERNAME"}" that this _will_ fail obviously ;-)22:01
cjwatsonyeah, I'm looking into that part of it now22:01
cjwatson<NULL> there is certainly wrong, it's just a matter of detecting that gracefully22:01
cjwatsonhoping to avoid a simple string comparison22:02
Lyaais that a string/scalar representation of a null-value?22:02
cjwatsonlooks like I may not have a lot of choice22:03
cjwatsonapparently so22:03
cjwatsonI don't see a way to distinguish between a username that's genuinely "<NULL>" and a NULL value.  OTOH "<NULL>" probably isn't allowed by the iSCSI spec anyway so ...22:04
Lyaahmm .. don't try to parse it in the init(ramfs) script but while generating that value ?22:05
cjwatsonthat's what I'm doing.22:05
Lyaano offense :-)22:05
cjwatsonbut the <NULL> text itself is generated inside the kernel.22:05
cjwatsonso I can't actually intervene there.22:05
Lyaaso actually emit some warning during install: "what?!? no password on the target? that's insecure!" - fix your security and set a password" :-)))22:07
cjwatsonno22:08
CIA-35partman-iscsi: cjwatson * r44 ubuntu/ (debian/changelog init.d/iscsi):22:08
CIA-35partman-iscsi: Cope with "<NULL>" text in username, password, username_in, and22:08
CIA-35partman-iscsi: password_in files.22:08
cjwatson^- that22:08
CIA-35partman-iscsi: cjwatson * r45 ubuntu/debian/changelog: releasing version 1122:09
Lyaais that also an issue for backports to 9.10..?22:10
cjwatsonno, because 9.10 didn't have iSCSI authentication support22:11
Lyaaoic22:11
cjwatsonnot that I can effectively change the 9.10 installer anyway22:11
cjwatsonit is what it was22:11
Lyaaso now i still have to dive into initramfs to get early swap on that target - still experiencing OOM there..22:14
cjwatsonLyaa: is http://paste.ubuntu.com/359249/ reasonably close to what you used in your initramfs hook?22:14
Lyaa. o 0 ( 64MB is not state of the art .. sigh )22:14
Lyaacjwatson: I've copied the original udev from /usr/share/... to /etc/initramfs-tools/hooks/udevrules and adapted like this: http://paste.ubuntu.com/359251/22:17
cjwatsonI'm hoping that this fixes bug 47303622:17
ubottuLaunchpad bug 473036 in partman-iscsi "iscsi-root install will only use net0 for iscsi-target connectivity" [Undecided,Incomplete] https://launchpad.net/bugs/47303622:18
Lyaa..but it's been just a quick hack22:19
cjwatsonnear enough equivalent then.22:19
cjwatson(except for my inability to spell /etc/udev/rules.d, apparently)22:19
cjwatsonyou're copying to /lib/udev/rules.d/ instead, but udevd should look in both places.22:20
Lyaaactually, i've tried to blacklist the other nic-module using /proc/cmdline parsing by blacklist - that failed22:20
cjwatsonthat's outside my area of expertise22:21
cjwatsonbest to file it as an initramfs-tools bug, I think22:21
Lyaabut that will obviosly fail if you have two nics using the same driver22:21
cjwatsonI think I might talk with our udev maintainer about this, rather than going ahead and fixing it right away22:22
cjwatsonthe NFS and NBD paths have essentially the same problem22:22
cjwatsonand I don't see why 70-persistent-net.rules shouldn't just be universally copied in, really22:23
Lyaayeah - that's mainly because i did now know it initramfs' "udev" is the real udev or some kind of busybox {u,m}dev that only looks in /lib/udev/rules.d/ - it's not FHS, but alas it's the initrd.. who really cares ;-)22:24
cjwatsonit's the real udev but with a cut-down configuration22:24
cjwatsonthe reduced tools are sometimes more trouble than they're worth22:24
Lyaaactually, the devices _should be_ the same order as during install, as they are enumerated by pci-bus-id.. but again i renumbered them during install phase.. ;-)22:26
cjwatsonthis category of problem is what the persistent rules files are for22:27
LyaaAlt-F2, Shell, modprobe -r nic0, modprobe -r nic1; nano /etc/udev/rules.d/70-net-persistent.net.rules and swapped eth0 with eth1, saved, udevadm control --reload; modprobe in order -> swapped names22:28
cjwatsoneww.  why was that worth it?22:28
cjwatsonIOW why does the naming matter?22:28
Lyaathe machine has two nics - one is on-board.. and that's the (only) one with PXE..22:29
cjwatsonas long as they're the same from installer through initramfs to running system, it shouldn't matter?22:29
Lyaaand it boots from it - altering the name during boot and run mostly leads to even more fuzz..22:30
cjwatsonI'm confused, and want to understand this22:30
cjwatsonwhy does it matter whether eth0 is the PXE one?  PXE-booting should be before Linux assigns names, and independent of it22:31
Lyaathe machine detects the on-board first and does not initialize the PCI-card22:31
cjwatsonsure, but udev will assign it a name that's consistent with what was available in the installer (once this initramfs hook fix is applied, wherever it goes), and with what the installed system expects22:33
Lyaaso it does PXE via the on-board, get it's IP and chainloads a gPXE image which does iSCSI .. and you have a INT13 disk whioch loads the boot loader .. that Kernel does ipconfig and initiator again22:33
cjwatsonit's entirely possible for the first device that's detected to be assigned eth122:33
Lyaaand you know by yourself, it does only probe for iSCI on device "eth0" ;-)22:34
cjwatsonbut that is not true?22:35
cjwatsonor at any rate it is certainly not supposed to be true!22:35
cjwatsonit's supposed to try bringing up all interfaces22:36
Lyaaand the other nic points in another network which does not reach the iscsi target22:36
Lyaahmm?22:36
cjwatsonok, so the problem is not that it only probes eth0, it's that it tries bringing up all interfaces and only tries probing the first in asciibetical order22:37
cjwatsonthank you, that clarifies things22:37
Lyaait does - but the Kernel bringing the PCI card up as eth0 and tries to get a hold for the Target on that nic22:37
cjwatsonthe kernel does what it's told by userspace, in this regard22:38
cjwatsonthe kernel does not do iSCSI login by itself22:38
cjwatsonas far as I can see, eth0 is not hardcoded anywhere relevant22:38
cjwatsonif it is, we should fix that, but I don't believe it is22:38
Lyaaright - you may work around this by specifying "ip=all" on Kernel cmdline22:39
cjwatsonwhoa, wait a sec22:39
cjwatsonOH, I see now22:40
cjwatson./conf/initramfs.conf:65:DEVICE=eth022:40
cjwatsonsilly thing22:40
cjwatsonOK, I take it back that it isn't hardcoded22:40
Lyaathen ipconfig probes DHCP on all nics - but then booting takes like ages on timeouts when one nic has no link22:40
cjwatsonso we need partman-iscsi to remember the network device used22:41
cjwatsonregrettably, I'm not sure I can find this in /sys ...22:41
Lyaahmm .. some "ip route show | grep $TARGET_SUBNET | grep_for_dev"-magic..?22:42
cjwatsonLyaa: in the installer, which device did you select at the network configuration stage?  did you select the interface that's to be used for iSCSI?22:43
cjwatsonthe installer normally only brings up one network device, IIRC22:43
cjwatsonat the moment, I'm thinking of remembering the network device selected in netcfg in ISCSI_NETDEVICE in iscsi.initramfs22:45
Lyaai've selected eth0 in d-i .. but that had been after I altered the device names in udev22:46
Lyaabut that should work out22:46
cody-somervillegrrr... I seem to be causing Ubiquity to crash somehow. :/22:47
cjwatsonLyaa: eth0 (pre-renaming) was the right device to use for iscsi, then?22:47
Lyaanah - Kernel, d-i, some userspace, whatever would called that nic "eth1".. so i swapped the name right before entering the "Network configuration" item22:49
Lyaathen it had been displayed as "eth0"22:49
cody-somervillecjwatson, Does Ubiquity in karmic support creating users with a blank password? UserSetupApply is failing with code 1 and thats the only thing I can think of thats different from another build I have that works fine.22:49
cjwatsonOK.  So all we need to do is lose that renaming and remember that we should use eth1 at initramfs time.22:49
Lyaacjwatson: think so22:50
cjwatsoncody-somerville: only if user-setup/allow-password-empty is set to tru22:50
cjwatsontrue22:50
cody-somervillecjwatson, I have that. And d-i passwd/user-password{,-again} password22:51
* cody-somerville takes a peak at ubiquity's source.22:52
cody-somervilleIt looks like I might want to use the ubiquity in karmic-updates before moving forward.22:54
cjwatsonI'm not convinced ...22:57
cjwatsonI suggest using ubiquity --debug in the first instance22:57
cjwatsongetting a full debconf trace is usually the quickest way to attack these problems22:58
cjwatsonthen show the full log22:58
cjwatson(/var/log/installer/debug - use a non-valuable password!)22:58
cody-somerville/var/log/installer/debug says its failing on UserSetupApply and running it manually I see "No password supplied" repeated three times followed by "chpassword: (user ubuntu) pam_chauthtok() failed, error:\n Authentication token manipulation error.23:00
cody-somervilleI'll try running ubiquity with --debug23:00
cjwatsonyou don't have any other odd backports of things like shadow or pam, do you?23:02
cody-somervilleNope. Just pointing at karmic.23:02
cjwatsonI'm at a loss just now, then23:02
cjwatsonI don't see any interesting changes in user-setup23:03
cody-somervilleTo be honest, I think I ran into this issue before but never bothered to look into it and just put in a dummy password instead.23:03
cjwatsonLyaa: will you be available for retesting of lucid daily builds at some later point, once we've fixed this?  if you could e-mail me at cjwatson@ubuntu.com, I can get in touch with you23:06
CIA-35user-setup: superm1 * r77 user-setup/ (debian/changelog user-setup-apply):23:30
CIA-35user-setup: Fix automatic login on situations where custom.conf didn't exist23:30
CIA-35user-setup: already on the target.23:30
CIA-35user-setup: superm1 * r78 user-setup/debian/changelog: releasing version 1.28ubuntu323:31

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