[Bug 613825] Re: mountall races with statd startup

2010-09-03 Thread Andrew Edmunds
* Previous message: Behaviour of mounting event * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] On Tue, 2010-08-31 at 13:34 +0100, Scott James Remnant wrote: > On Fri, 2010-08-27 at 23:30 +1000, Andrew Edmunds wrote: > > > Suppose I have a job B which includes the foll

[Bug 610863] Re: Race condition in statd.conf

2010-08-27 Thread Andrew Edmunds
I just noticed that the underlying upstart issue mentioned in #8 is already described by https://bugs.launchpad.net/upstart/+bug/530779. I won't mark this as a duplicate though - the workaround described here may be useful until the upstart bug is fixed. -- Race condition in statd.conf https://b

[Bug 606554] Re: upstart allows gdm to start before all nfs shares have mounted

2010-08-22 Thread Andrew Edmunds
This is actually a (mis)feature of mountall, rather than upstart. Mountall waits only for NFS mounts of /usr and /var, or their subdirectories, to succeed before issuing the "filesystem" event. The filesystem event is what triggers gdm to start. To wait for any other NFS filesystem you have to ad

[Bug 610863] Re: Race condition in statd.conf

2010-08-18 Thread Andrew Edmunds
Tested on Maverick alpha 3 and confirmed that this bug is still present. Debdiff for Maverick attached. ** Patch added: "nfs-utils_1.2.2-1ubuntu2.debdiff" https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/610863/+attachment/1497666/+files/nfs-utils_1.2.2-1ubuntu2.debdiff -- Race condi

[Bug 613825] Re: mountall races with statd startup

2010-08-17 Thread Andrew Edmunds
apport information ** Tags added: apport-collected ** Description changed: Binary package hint: mountall Binary package hint: mountall mountall version: 2.15 On my Lucid system with latest updates, NFS filesystems sometimes fail to mount successfully at boot. After a boot where th

[Bug 610863] Re: Race condition in statd.conf

2010-08-16 Thread Andrew Edmunds
** Description changed: - Binary package hint: mountall + Binary package hint: nfs-common + nfs-common version: 1:1.2.0-4ubuntu4 - On my Lucid system with latest updates, NFS filesystems sometimes fail to mount successfully at boot. After a boot where the NFS mounts fail, the mountall proce

[Bug 610863] Re: Race condition in statd.conf

2010-08-16 Thread Andrew Edmunds
apport information ** Tags added: apport-collected ** Description changed: Binary package hint: mountall On my Lucid system with latest updates, NFS filesystems sometimes fail to mount successfully at boot. After a boot where the NFS mounts fail, the mountall process is still running w

[Bug 613825] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
The above patch forces another retry of NFS mounts after statd is running. This is in no way a proper fix for the upstart issues described in #3 but it does (at last) allow my system to mount its filesystems reliably on boot. -- mountall races with statd startup https://bugs.launchpad.net/bugs/6

[Bug 613825] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
** Patch added: "Patch for mountall-net.conf" http://launchpadlibrarian.net/53104530/mountall-net.conf.patch -- mountall races with statd startup https://bugs.launchpad.net/bugs/613825 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 613825] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
statd's start condition is: start on (started portmap or mounting TYPE=nfs) A "mounting TYPE=nfs" event while statd is stopped will cause statd to be started and mountall will block untill statd is running. However if statd is triggered by portmap and then a "mounting TYPE=nfs" event occurs whil

[Bug 613825] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
** Attachment added: "/var/log/syslog boot messages, debug output - NFS mounts failed" http://launchpadlibrarian.net/53099028/syslog.2010-08-05-20-33.failed -- mountall races with statd startup https://bugs.launchpad.net/bugs/613825 You received this bug notification because you are a member

[Bug 613825] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
** Attachment added: "/var/log/boot.log, debug output - NFS mounts failed" http://launchpadlibrarian.net/53099000/boot.log.2010-08-05-20-33.failed -- mountall races with statd startup https://bugs.launchpad.net/bugs/613825 You received this bug notification because you are a member of Ubuntu

[Bug 613825] [NEW] mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
Public bug reported: Binary package hint: mountall Binary package hint: mountall mountall version: 2.15 On my Lucid system with latest updates, NFS filesystems sometimes fail to mount successfully at boot. After a boot where the NFS mounts fail, the mountall process is still running when I log

[Bug 610863] Re: Race condition in statd.conf

2010-08-05 Thread Andrew Edmunds
The above patch adds a post-start script that loops until the statd parent process has exited. This is the best workaround that I can think of. It doesn't seem possible to just wait() for the process with the current implementation of upstart's "expect fork" feature. Suggestion for a better appr

[Bug 610863] Re: mountall races with statd startup

2010-08-05 Thread Andrew Edmunds
** Package changed: mountall (Ubuntu) => nfs-utils (Ubuntu) ** Summary changed: - mountall races with statd startup + Race condition in statd.conf ** Patch added: "Patch for nfs-common.statd.upstart" http://launchpadlibrarian.net/53096369/statd_post-start.patch -- Race condition in statd.c

[Bug 610863] Re: mountall races with statd startup

2010-07-31 Thread Andrew Edmunds
In the above output there are 5 examples where upstart has marked statd as running but the parent process still exists, which implies that statd is not ready to service client requests. -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification

[Bug 610863] Re: mountall races with statd startup

2010-07-31 Thread Andrew Edmunds
** Attachment added: "Proof that statd startup has a race condition" http://launchpadlibrarian.net/52772465/statd_race.out -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribe

[Bug 610863] Re: mountall races with statd startup

2010-07-29 Thread Andrew Edmunds
I scanned quickly through the source of relevant packages. The following lines caught my eye (upstart-0.6.5/init/job_process.c around line 1394): nih_info (_("%s %s process (%d) became new process (%d)"), job_name (job), process_name (process), job->pid

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
Theory A: A "mounting TYPE=nfs" event while statd is stopped will cause statd to be started and mountall will block untill statd is running. However a "mounting TYPE=nfs" event while statd is in (say) pre-start or spawned state is ignored and does not block mountall. Therefore it is not guaran

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
** Attachment added: "/var/log/syslog boot messages, verbose logging - NFS mounts failed" http://launchpadlibrarian.net/52637429/syslog.2010-07-28-21-59 -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member of

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
** Attachment added: "/var/log/boot.log with verbose logging - NFS mounts failed" http://launchpadlibrarian.net/52637356/boot.log.2010-07-28-21-59.failed -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member of

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
I did the following to get more verbose logging: --- etc/default/grub.20100728 2010-07-28 18:15:41.536842847 +1000 +++ etc/default/grub2010-07-28 21:57:45.144891535 +1000 @@ -6,7 +6,7 @@ GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || ech

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
** Attachment added: "/var/log/syslog boot messages, default log level, NFS mounts failed" http://launchpadlibrarian.net/52637083/syslog.2010-07-28-21-52 -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member of

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
** Attachment added: "/var/log/boot.log with default log level - NFS mounts failed" http://launchpadlibrarian.net/52636934/boot.log.2010-07-28-21-52.failed -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member

[Bug 610863] Re: mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
** Attachment added: "/etc/fstab" http://launchpadlibrarian.net/52636789/fstab -- mountall races with statd startup https://bugs.launchpad.net/bugs/610863 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list u

[Bug 610863] [NEW] mountall races with statd startup

2010-07-28 Thread Andrew Edmunds
Public bug reported: Binary package hint: mountall On my Lucid system with latest updates, NFS filesystems sometimes fail to mount successfully at boot. After a boot where the NFS mounts fail, the mountall process is still running when I log in. Running "kill -USR1 $(pidof mountall)" will th