NFSv3 exports not fully functional with older NFS clients

Bug #1318585 reported by System Administrator
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Ubuntu 12.04.4 LTS
Reproducible bug in nfs exports starting from 3.2.0-58
Starting kernel version 3.2.0-58, it is impossible to checkout any subversion project on a NFSv3 mounted share on a Solaris 10 machine.
svn co svn+ssh://svn.url/project
returns the following
svn: Can't read directory 'trunk': Value too large for defined data type
Mounting the share with NFSv2 doesn't create this problem
Possibly related to the following (excerpts from changelog):
  * ext4: return 32/64-bit dir name hash according to usage type
    - LP: #1257010
  * nfsd: vfs_llseek() with 32 or 64 bit offsets (hashes)
    - LP: #1257010

Steps to reproduce:
- On Ubuntu 12.04.4 installed both kernel versions 3.2.0-57 and 3.2.0-58
- Boot with 3.2.0-57
- Start nfs-kernel-server and export share
- mount on Solaris 10 as NFSv3 (default)
- login as share-authorized user on NFS share
- create dir and checkout svn
- ok
- Reboot nfs server with kernel 3.2.0-58
- unmount and mount share on Solaris machine
- Try to svn co again, returns error "svn: Can't read directory 'trunk': Value too large for defined data type"

It looks like 32bit NFS clients cannot handle 64 bit cookies relate to readdir and readdirplus, so this problem might not be exclusive to Solaris (this is the machine on which we could reproduce it)

Thanks
Alessandro

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-58-generic 3.2.0-58.88
ProcVersionSignature: Ubuntu 3.2.0-58.88-generic 3.2.53
Uname: Linux 3.2.0-58-generic x86_64
AlsaDevices:
 total 0
 crw-rw---T 1 root audio 116, 1 May 12 10:32 seq
 crw-rw---T 1 root audio 116, 33 May 12 10:32 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
CurrentDmesg:
 [ 5.157867] NFSD: starting 90-second grace period
 [ 14.384064] eth0: no IPv6 routers present
Date: Mon May 12 10:32:35 2014
HibernationDevice: RESUME=UUID=3aefbfea-8592-47d6-b423-5fa2dd796c71
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
IwConfig:
 lo no wireless extensions.

 eth1 no wireless extensions.

 eth0 no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
MachineType: VMware, Inc. VMware Virtual Platform
MarkForUpload: True
PciMultimedia:

ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-58-generic root=UUID=adc52d65-a826-4b8d-8525-65a714c6dd67 ro
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-58-generic N/A
 linux-backports-modules-3.2.0-58-generic N/A
 linux-firmware 1.79.12
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/22/2012
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd06/22/2012:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: VMware Virtual Platform
dmi.product.version: None
dmi.sys.vendor: VMware, Inc.

Revision history for this message
System Administrator (sysadmin-p) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc5-utopic/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
System Administrator (sysadmin-p) wrote :

Hello
We tested with 3.15.0-031500rc5-generic as instructed and the bug is still present
Also another machine with stable 14.04 shows the same behavior
Thanks in advance
Alessandro

tags: added: kernel-bug-exists-upstream
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
xor (xor007) wrote :

Happens for me on 14.04 Stable. Note this means Solaris Servers everywhere in the world running Solaris 10u10 cannot use an svn sandbox on a Ubuntu based NFS server.

This is a very typical use case for build hosts.

Can anybody share a work around?

Changed in linux (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.