-
Notifications
You must be signed in to change notification settings - Fork 20
Add dictionary to configure delegations and async #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: centos-ci
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -205,7 +205,12 @@ def test_bringup_cephfs(remote_sessions, reserved_nodes): | |
| ganesha_setup = GaneshaManager( | ||
| session=server, | ||
| subvol_path=subvol_path, | ||
| cephfs_name=ceph_setup.cephfs_name | ||
| cephfs_name=ceph_setup.cephfs_name, | ||
| ganesha_opts={ | ||
| "delegations_v4": "true", | ||
| "delegations_export": "readwrite", | ||
| "ceph_async": "false", | ||
| } | ||
| ) | ||
| ganesha_setup.setup() | ||
| assert f"CephFS setup completed" | ||
|
|
@@ -228,6 +233,34 @@ def test_cthon(remote_sessions, reserved_nodes): | |
|
|
||
| assert rc == 0, f"Cthon CephFS tests failed" | ||
|
|
||
| ''' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason why this is commented?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ganesha_setup.setup() is failing here: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes since full setup(installation of ceph) is already done, it fails to install it again. |
||
| @pytest.mark.timeout(1200) | ||
| def test_delegation(remote_sessions, reserved_nodes): | ||
| logger.info("[TEST START]: Update ganesha conf with delegation parameters") | ||
|
|
||
| server = remote_sessions["servers"][0] | ||
| if len(remote_sessions["servers"]) > 1: | ||
| ceph_setup = CephGaneshaSetup(session=server, extra_sessions=remote_sessions["servers"][1:]) | ||
| else: | ||
| ceph_setup = CephGaneshaSetup(session=remote_sessions["servers"][0]) | ||
|
|
||
| subvol_path = ceph_setup.full_setup() | ||
|
|
||
| ganesha_setup = GaneshaManager( | ||
| session=server, | ||
| subvol_path=subvol_path, | ||
| cephfs_name=ceph_setup.cephfs_name, | ||
| ganesha_opts={ | ||
| "delegations_v4": "true", | ||
| "delegations_export": "readwrite", | ||
| "ceph_async": "false", | ||
| } | ||
| ) | ||
| ganesha_setup.setup() | ||
|
|
||
| logger.info("Delegation updation completed") | ||
| ''' | ||
|
|
||
| def test_pynfs(remote_sessions, reserved_nodes): | ||
| logger.info("[TEST START]: PyNFS with CephFS") | ||
|
|
||
|
|
@@ -240,5 +273,5 @@ def test_pynfs(remote_sessions, reserved_nodes): | |
| pynfs = PyNFSManager(session=client, server_ip=server_ip, backend_type="ceph") | ||
| _, failure_summary, code = pynfs.run_all_tests(export="/nfs/cephfs") | ||
| logger.info("PyNFS test failure summary: %s", failure_summary) | ||
| assert code == 0, f"PyNFS CephFS tests failed" | ||
|
|
||
| assert code == 0, f"PyNFS CephFS tests failed" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are changing the export
readwritetoNone, the gatecheck may fail..Can you update the "tests/test_pynfs_cthon.py" file "Test 2" with additional param of ganesha_opts, so that gatecheck will continue to be green