Does libnfs support exports present on remote servers?

70 views
Skip to first unread message

Sukruth Sridharan

unread,
Jul 9, 2018, 1:53:05 PM7/9/18
to libnfs
Hi,

I'm trying to use libnfs-python and access export on an NFSv4 server and noticed that there's no NFS packets on the wire.

Server IP: 10.15.196.52
Export: sukruth

"""

[root@afs-centos74 libnfs-python]# python

Python 2.7.5 (default, Aug  4 2017, 00:39:18) 

[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import libnfs

>>> nfs=libnfs.NFS('nfs://10.15.196.52/sukruth?vers=4') 

>>> a = nfs.open('/foo-test', mode='w+')

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "libnfs/__init__.py", line 187, in open

    return NFSFH(self._nfs, path, mode=mode, codec=codec)

  File "libnfs/__init__.py", line 81, in __init__

    raise ValueError(_errmsg)

ValueError: open failed: Input/output error

>>> 

"""
All the examples point to URL starting with localhost IP which brings me to the question as to whether libnfs supports NFS exports which are present on remote servers?
If they do then could you point me towards what might be wrong in my configuration that there's no NFS packets on the wire?

Regards,
Sukruth
Reply all
Reply to author
Forward
0 new messages