/srv/irclogs.ubuntu.com/2012/01/18/#ubuntu-installer.txt

antarusaha I have found cjwatson at last ;)00:07
cjwatsonantarus: hmm?00:09
antaruscjwatson: I am testing a patch to netcfg; I think the precise version has a bug00:11
antarushttps://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/917905, fyi00:12
ubot2Launchpad bug 917905 in netcfg "netcfg hang bug in autoconfig.c" [Undecided,Confirmed]00:12
cjwatsonantarus: it seems odd that it would hang on the fgets call; shouldn't that get EOF instead?00:17
antaruscjwatson: dhclient never exits00:18
antarusso it wouldn't get SIGPIPE or EOF00:18
antaruson my network dhclient just retries forever00:19
cjwatsonah, annoying thing that you have to kill, right - there's some discrepancy among the different clients here00:19
antarusyeah its a mess :/00:20
cjwatson(you wouldn't get SIGPIPE anyway; that's for writes, not reads)00:20
antarusmy patch basically checks rv, and if we didn't get a lease, doesn't bother reading from the pipe at all00:20
antarusalthough I think it also breaks the 'retry' logic00:20
cjwatsonI think it exits quickly with stateless autoconfig but not stateful00:21
cjwatsonI'm a bit worried about that because 0 returned from poll_dhcpv6_client is documented as "not known to have acquired a lease"00:21
cjwatsonrather than definitely not00:21
cjwatsonI wonder if it would be better to arrange for dhclient to actually exit00:22
antarusdhclient does support a timeout option afaik00:22
antarusso we could push the preseed config value down to it?00:22
cjwatsonI'm concerned that if we don't read from the pipe on failure, there are cases where we'll end up with a stuck client for one reason or another00:22
cjwatsonpassing down the timeout would be fine; it's documented as 300 seconds by default00:24
cjwatsonI think that would be worth a go00:25
antarusbleh, the dhclient binary in the initrd doesn't support -timeout ?00:29
cjwatsonnor does any ISC dhclient binary that I know of; it goes in the configuration file00:30
antaruscjwatson: the timeout only works if I pass -1 to dhclient (to exit if it failed to get a lease)00:41
antaruscjwatson: otherwise it will combine timeout + retry + backoff and just retry forever apparently00:42
cjwatsonwhich means it will only try once rather than retrying a few times, right?00:45
antaruscorrect00:45
antaruswell for me I set the timeout to 5s, and it tried 4-5 times and then gave up00:46
antarusahh, it did 3 attempts until it hit my 5s timeout and then quit00:46
antarusI'm just unclear because another segment talks about keepign the client alive and having the user request we 'retry'00:47
antarusand I'm not clear how the retry logic is supposed to work00:47
antarus * This function will NOT kill the child if time runs out.  This allows00:47
antarus * the user to choose to wait longer for the lease to be acquired.00:47
antarusthat comment basically00:48
cjwatsonThat may be a dead comment00:49
cjwatsonI can't see how you'd do that - you'd select "Retry network autoconfiguration" which would start a new client00:49
antarusok, I will go ahead and push the netcfg/dhcpv6_timeout into the dhclient config file and pass it '-1' so it will oneshot attempt. Does that sound reasonable to you?00:50
cjwatson(The history of this branch is that one developer did about 90% of the work and then quit, and I picked it up and bodged it into shape with some help from stgraber; so I can't be authoritative on all of it)00:51
cjwatsonI think it's worth a go.  stgraber has a scary test suite he should be able to run it through00:51
antarusexcellent00:51
antarusI like test suites :)00:51
stgraberwhich reminds me I really need to get the tests running daily on Precise...00:58
antaruscjwatson: excellent, my patch works here (after much futzing with initrds)02:12
antarusbah04:31
antarusmy initrd has a different bug now04:31
* antarus will finish this tomorrow04:31
superm1stgraber: sure no problem.05:18
=== mdeslaur is now known as mdeslaur_
=== mdeslaur_ is now known as mdeslaur
antaruscjwatson: is there some way to run netcfg in debug mode?19:16
cjwatsonDEBCONF_DEBUG=developer on the kernel command line will show a trace of all debconf interaction, and watch syslog19:16
cjwatsonnot really beyond that19:16
antarusok19:17
antarusmy patch seems to have fixed the ipv6 issue, but not it won't autodetect my hardware19:17
antarusand I can't really see how the two are related19:18
cjwatsonthat isn't generally even netcfg's responsibility19:19
cjwatsoncompare the rest of your initrd with the stock one19:20
antarushrm, ptom differs for some reason19:24
antarusoh its a symlink to netcfg19:26
antarusheh19:26
* antarus makes a new initrd anyway19:26
antarusahh looks like I had an old copy19:29
antaruscjwatson: excellent, works with a new initrd ;)19:35
cjwatsongood good19:49

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