Commit 950296d2 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

tests: use nfs/mds instead of nfs/rgw

needed for the update job in stable-6.0 branch.
the upgrade from either nautilus or octopus to pacific isnt supported
when nfs/rgw is deployed.
Signed-off-by: default avatarGuillaume Abrioux <>
parent 1eb42b14
......@@ -103,6 +103,8 @@ def node(host, request):
group_names = ansible_vars["group_names"]
docker = ansible_vars.get("docker")
dashboard = ansible_vars.get("dashboard_enabled", True)
nfs_file_gw = ansible_vars.get("nfs_file_gw")
nfs_obj_gw = ansible_vars.get("nfs_obj_gw")
radosgw_num_instances = ansible_vars.get("radosgw_num_instances", 1)
ceph_release_num = {
'jewel': 10,
......@@ -146,6 +148,12 @@ def node(host, request):
if request.node.get_closest_marker("dashboard") and group_names == ['clients']:
pytest.skip('Not a valid test for client node')
if request.node.get_closest_marker("no_nfs_file_gw") and nfs_file_gw:
pytest.skip('Not a valid test for nfs+cephfs node')
if request.node.get_closest_marker("no_nfs_obj_gw") and nfs_obj_gw:
pytest.skip('Not a valid test for nfs+rgw node')
data = dict(
......@@ -153,6 +161,8 @@ def node(host, request):
return data
copy_admin_key: true
nfs_file_gw: true
nfs_obj_gw: false
copy_admin_key: true
nfs_file_gw: false
nfs_obj_gw: true
nfs_file_gw: true
nfs_obj_gw: false
ganesha_conf_overrides: |
Entries_HWMark = 100000;
......@@ -5,11 +5,21 @@ import pytest
class TestNFSs(object):
@pytest.mark.parametrize('pkg', [
def test_nfs_ganesha_package_is_installed(self, node, host, pkg):
def test_nfs_ganesha_rgw_package_is_installed(self, node, host, pkg):
assert host.package(pkg).is_installed
@pytest.mark.parametrize('pkg', [
def test_nfs_ganesha_fs_package_is_installed(self, node, host, pkg):
assert host.package(pkg).is_installed
......@@ -23,6 +33,7 @@ class TestNFSs(object):
assert host.file(
def test_nfs_is_up(self, node, host, setup):
hostname = node["vars"]["inventory_hostname"]
cluster = setup['cluster_name']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment