[Libvirt-cim] [PATCH 02/10] XenKvmLib: Adjust systemd nfs server settings

John Ferlan jferlan at redhat.com
Fri Apr 4 16:12:51 UTC 2014


Add an "fsid=0" to the "rw" exportfs options to allow the
two NFS tests to complete successfully:

ResourcePoolConfigurationService
    08_CreateDiskResourcePool.py
    12_create_netfs_storagevolume_errs.py

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 suites/libvirt-cim/lib/XenKvmLib/common_util.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/suites/libvirt-cim/lib/XenKvmLib/common_util.py b/suites/libvirt-cim/lib/XenKvmLib/common_util.py
index fd468cb..0e3f1d6 100644
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py
@@ -538,7 +538,7 @@ def nfs_config(server, nfs_server_bin, is_systemd):
     else:
         cmd = "systemctl | grep nfs-server"
     rc, out = utils.run_remote(server, cmd)
-    # if NFS services is not found on the machine, start it.. 
+    # if NFS services is not found on the machine, start it..
     if rc != PASS :
         # Check if NFS server is installed ...
         if is_systemd == 0:
@@ -638,7 +638,7 @@ def netfs_config(server, nfs_server_bin, dest_dir_to_mnt, is_systemd):
                 os.remove(back_exports_file)
             move_file(exports_file, back_exports_file)
         fd = open(exports_file, "w")
-        line = "\n %s %s(rw)" %(src_dir_for_mnt, server)
+        line = "\n %s %s(rw,fsid=0)" %(src_dir_for_mnt, server)
         fd.write(line)
         fd.close()
 
-- 
1.8.5.3




More information about the Libvirt-cim mailing list