Wind River Support Network

HomeDefectsLIN6-3791
Fixed

LIN6-3791 : [Feature Testing] nfs-utils tests failed

Created: Jan 30, 2013    Updated: Mar 10, 2016
Resolved Date: Nov 27, 2013
Previous ID: LIN5-1291, LIN6-3013
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Problem Description
======================
nfs-utils test failed when rootfs is mounted through nfs, we couldn't share the directories whether on nfs or local disk,
and this test could pass in Robin

Expected Behavior
======================
The test pass on all bsps

Observed Behavior
======================
Please refer the full logs at the log url & RTH


root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# ./nfs-utils-TEST-01.sh -d
nfs-utils test 1 passes: Testing: Confirm NFSD kernel Module
cp: cannot stat `/etc/exports': No such file or directory
Succeed to create Test dir
Wait seconds for nfs-utils testing
/tmp/test
spawn mkfs.ext3 /tmp/test
mke2fs 1.42.1 (17-Feb-2012)
/tmp/test is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
12824 inodes, 51200 blocks
2560 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=52428800
7 block groups
8192 blocks per group, 8192 fragments per group
1832 inodes per group
Superblock backups stored on blocks: 
	8193, 24577, 40961

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

nfs-utils test 2 passes: Testing: Prepare to mount local NFS
*** nfs-utils test 3 fails: Testing: Mount Local NFS ***
nfs-utils test 11 passes: Testing: sm-notify -d -v localhost
Succeed to confirm testfile from Local NFS
umount: /tmp/wrtest: not mounted
nfs-utils test 4 passes: Testing: Test Local NFS
*** nfs-utils test 5 fails: Testing: rpcinfo -p localhost ***
*** nfs-utils test 6 fails: Testing: showmount -a ***
nfs-utils test 7 passes: Testing: exportfs -v
Succeed to mount remote NFS
Succeed to confirm testfile from remote NFS
nfs-utils test 9 passes: Testing: mount remote NFS
mv: cannot stat `/etc/exports.bak': No such file or directory
nfs-utils test 10 passes: Testing: Clean Testing Environment
nfs-utils test result: ERROR
=================================================================
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# dd if=/dev/zero of=/tmp/test bs=1024K count=50
50+0 records in
50+0 records out
52428800 bytes (52 MB) copied, 0.0312276 s, 1.7 GB/s
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# sync
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# mkfs.ext3 /tmp/test
mke2fs 1.42.1 (17-Feb-2012)
/tmp/test is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
12824 inodes, 51200 blocks
2560 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=52428800
7 block groups
8192 blocks per group, 8192 fragments per group
1832 inodes per group
Superblock backups stored on blocks: 
	8193, 24577, 40961

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# cat /etc/exports
/mnt/wrtest *(sync,rw,no_root_squash)
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# mount -t ext3 -o loop /tmp/test /mnt/wrtest
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# sync
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# /etc/init.d/rpcbind restart 
Stopping rpcbind daemon...
done.
Starting rpcbind daemon...done.
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# /etc/init.d/nfsserver restart
stopping mountd: done
stopping statd: done
starting mountd: done
starting statd: done
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/mnt/wrtest".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# showmount -e localhost
Export list for localhost:
/mnt/wrtest *
root@intel_westmere_ep-3:/opt/wr-test/testcases/userspace/TESTCASES# mount -t nfs 127.0.0.1:/mnt/wrtest /tmp/wrtest
mount.nfs: requested NFS version or transport protocol is not supported

Steps to Reproduce

1.
clone/pull userspace test layer
git clone git://git.wrs.com/layers/wr-testing

2.
configure --enable-board=cav-octeon2 --enable-kernel=standard --enable-rootfs=glibc_std --with-layer=/buildarea/product/wrlinux-x/layers/wr-features,/buildarea/product/wrlinux-x/layers/wr-security,meta-selinux,/buildarea/wr-testing/userspace

make fs

3. boot target and run

cd opt/wr-test/testcases/userspace/TESTCASES
./nfs-utils-TEST-01.sh -d
or 
dd if=/dev/zero of=/tmp/test bs=1024K count=50
sync
mkfs.ext3 /tmp/test
cat /etc/exports
mount -t ext3 -o loop /tmp/test /mnt/wrtest
sync
/etc/init.d/rpcbind restart 
/etc/init.d/nfsserver restart
showmount -e localhost
mount -t nfs 127.0.0.1:/mnt/wrtest /tmp/wrtest

Other Downloads


Live chat
Online