Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294724 - dev-util/bzr hangs when $DISTDIR is an NFS mount
Summary: dev-util/bzr hangs when $DISTDIR is an NFS mount
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: bazaar+obsolete
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-26 15:10 UTC by cyrillic
Modified: 2010-01-01 21:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2009-11-26 15:10:58 UTC
sys-boot/grub-9999 recently switched from SVN to BZR, and now the sources cannot be fetched to my NFS mounted $DISTDIR

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-boot/grub-9999
Actual Results:  
>>> Emerging (1 of 1) sys-boot/grub-9999
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
 * bzr fetch start -->
 *    repository: http://bzr.savannah.gnu.org/r/grub/trunk/grub => /mnt/distfiles/bzr-src/grub

... It just stops here and never continues

Expected Results:  
Normal grub installation

If I change $DISTDIR to point to a local filesystem, then everything works as expected.

 emerge --info
Portage 2.2_rc51 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.32-rc8 x86_64)
=================================================================
System uname: Linux-2.6.32-rc8-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 25 Nov 2009 23:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.31.6
ACCEPT_KEYWORDS="amd64 ~*"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/mnt/distfiles"
FEATURES="distcc protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/cross /usr/portage/local/x11 /usr/portage/local/fixes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 avahi boost bzip2 cairo cracklib css cups curl custom-cflags custom-cpuopts custom-optimization cxx dbus dri dts dvd encode expat fbcon ffmpeg flac fortran gallium gdbm gif glib gpm graphite hal imagemagick ithreads jpeg lcms mmx mmxext mp2 mp3 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pcre png qt3support readline samba slang spell sse sse2 sse3 ssl svg theora threads tiff unicode usb vorbis xcb xorg xulrunner xv xvid zeroconf zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="intel nouveau radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2009-11-30 16:12:24 UTC
Looks like this is known issue.

Martin Pool  wrote on 2007-04-23 in https://bugs.launchpad.net/bzr/+bug/108605:

"This error is occurring because we're trying to take an os-level file lock, and this sometimes doesn't work on nfs setups. You should be able to avoid this for now by making sure the nfs lockd is running on your server (which is probably a good idea anyhow); we will try to remove the dependency in a future release."

So, please, try do that ^^


Also this problem was discussed here: https://lists.ubuntu.com/archives/bazaar/2006q1/009599.html
Comment 2 cyrillic 2009-12-17 00:36:14 UTC
Thank you for the tip.
I enabled lockd on my NFS server, and now BZR seems to be working.

... still, it would be nice if BZR spit out a warning message rather than just hanging.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2009-12-17 09:02:01 UTC
(In reply to comment #2)
> Thank you for the tip.
> I enabled lockd on my NFS server, and now BZR seems to be working.
> 
> ... still, it would be nice if BZR spit out a warning message rather than just
> hanging.

Robert Collins in above mentioned bug report:
"We have an experimental format which won't need OSLocks, we will need testing on it on NFS, but its not quite there yet - it needs some more peer review and tradeoff examinations."

So upstream will fix it in the near future.  As developing an own patch is not worth the work, I close this bug as UPSTREAM.  Scream, if you disagree.