Wind River Support Network

HomeDefectsOVP-1367
Fixed

OVP-1367 : Failed to add NFS storagedomain to wr node which is registered to Fedora oVirt engine

Created: Jul 20, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 10, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
======================
Failed to add NFS storagedomain for wr node registered in Fedora oVirt engine.

The following error can be found from engine.log:
--127.0.0.1-8702-4) [379ab0a8] START, ValidateStorageServerConnectionVDSCommand(HostName = wr-ovirt-node-01, HostId = 9bb1f6e1-cf03-4770-996e-e3b639a49408, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: null, connection: 128.224.158.29:/exports/data, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 4ac59075
2013-07-20 06:53:06,771 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ValidateStorageServerConnectionVDSCommand] (ajp--127.0.0.1-8702-4) [379ab0a8] FINISH, ValidateStorageServerConnectionVDSCommand, return: {00000000-0000-0000-0000-000000000000=0}, log id: 4ac59075
2013-07-20 06:53:06,789 INFO  [org.ovirt.engine.core.bll.storage.AddStorageServerConnectionCommand] (ajp--127.0.0.1-8702-4) [379ab0a8] Running command: AddStorageServerConnectionCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: System
2013-07-20 06:53:06,792 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-4) [379ab0a8] START, ConnectStorageServerVDSCommand(HostName = wr-ovirt-node-01, HostId = 9bb1f6e1-cf03-4770-996e-e3b639a49408, storagePoolId = 00000000-0000-0000-0000-000000000000, storageType = NFS, connectionList = [{ id: null, connection: 128.224.158.29:/exports/data, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };]), log id: 61221baf
2013-07-20 06:53:06,836 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (ajp--127.0.0.1-8702-4) [379ab0a8] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-000000000000=100}, log id: 61221baf
2013-07-20 06:53:06,840 ERROR [org.ovirt.engine.core.bll.storage.NFSStorageHelper] (ajp--127.0.0.1-8702-4) [379ab0a8] The connection with details 128.224.158.29:/exports/data failed because of error code 100 and error message is: generalexception

The following error can be found from vdsm.log:
Thread-68::ERROR::2013-07-20 10:09:05,791::hsm::2212::Storage.HSM::(connectStorageServer) Could not connect to storageServer
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/hsm.py", line 2208, in connectStorageServer
    conObj.connect()
  File "/usr/share/vdsm/storage/storageServer.py", line 302, in connect
    return self._mountCon.connect()
  File "/usr/share/vdsm/storage/storageServer.py", line 208, in connect
    fileSD.validateDirAccess(self.getMountObj().getRecord().fs_file)
  File "/usr/share/vdsm/storage/mount.py", line 260, in getRecord
    (self.fs_spec, self.fs_file))
OSError: [Errno 2] Mount of `128.224.158.29:/exports/data` at `/windriver/data-center/mnt/128.224.158.29:_exports_data` does not exist

The NFS4 is disabled in the Fedora oVirt engine.
Refer to:
http://www.ovirt.org/Troubleshooting_NFS_Storage_Issues

Expected Behavior
======================
Passed to add nfs storage domain to wr node.

Observed Behavior
======================
Failed to add the nfs storage.

Logs
======================
Attached.

Misc Info 
======================
1, The NFS4 is disabled in the Fedora oVirt engine
[root@fc18-ovirt exports]# cat /etc/sysconfig/nfs 
RPCNFSDCOUNT=8
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
NFS4_SUPPORT="no"

2, on the wr node, nfs3 can be used 
root@wr-ovirt-node-01:~# mount -o vers=3 128.224.158.29:/exports/data /mnt/nfs/
root@wr-ovirt-node-01:~# mount | grep 158.29
128.224.158.29:/exports/data on /mnt/nfs type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=128.224.158.29,mountvers=3,mountport=20048,mountproto=udp,local_lock=none,addr=128.224.158.29)

Workaround

Disable the selinux:

setenforce 0

Steps to Reproduce

step 1; configure --enable-board=intel-xeon-core --enable-rootfs=ovp-ovirt-node --enable-addons=wr-ovp --enable-parallel-pkgbuilds=5 --enable-jobs=5
step 2; make fs
step 3; boot target, and configure the ovirt node manually
    Add the ovirtmgmt bridge
    Start vdsm service
    etc.

step 4; login the ovirt engine (running on Fedora 18) Web UI

step 5; add the wr node as the first host of a NFS datacenter

step 6; setup a NFS dir to be exported as storage domain

step 7; add the NFS path as new storage domain in the data center.
Live chat
Online