diff options
author | Pranav <prprakas@redhat.com> | 2021-01-13 15:06:34 +0530 |
---|---|---|
committer | Arthy Loganathan <aloganat@redhat.com> | 2021-01-22 09:45:05 +0000 |
commit | d7b68c13e2f2b8a236e1f8b15c95c51d91669a34 (patch) | |
tree | 8c80979469b601c0f70b5eb7f5a5e616aa405f84 /glustolibs-gluster/glustolibs/gluster/gluster_base_class.py | |
parent | f3f040580b699751c90743827d4eacb91ffc8440 (diff) |
[LibFix] Add nfs_ganesha lib fix
1. The volume mount has to be done via VIP for nfs_ganesha.
2. Add steps to handle ganesha setup and teardown.
Change-Id: I2e33d30118502b71ca9ca4821ef633ba4bd5fa10
Signed-off-by: Pranav <prprakas@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/gluster_base_class.py')
-rwxr-xr-x | glustolibs-gluster/glustolibs/gluster/gluster_base_class.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py index b2fdc439d..65061cb13 100755 --- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py +++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018-2020 Red Hat, Inc. <http://www.redhat.com> +# Copyright (C) 2018-2021 Red Hat, Inc. <http://www.redhat.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -474,6 +474,9 @@ class GlusterBaseClass(TestCase): """ g.log.info("Starting to mount volume %s", cls.volname) for mount_obj in mounts: + # For nfs-ganesha, mount is done via vip + if cls.enable_nfs_ganesha: + mount_obj.server_system = cls.vips[0] g.log.info("Mounting volume '%s:%s' on '%s:%s'", mount_obj.server_system, mount_obj.volname, mount_obj.client_system, mount_obj.mountpoint) @@ -1057,6 +1060,7 @@ class GlusterBaseClass(TestCase): ret = setup_nfs_ganesha(cls) if not ret: raise ExecutionError("Failed to setup nfs ganesha") + g.log.info("Successful in setting up NFS Ganesha Cluster") msg = "Setupclass: %s : %s" % (cls.__name__, cls.glustotest_run_id) g.log.info(msg) |