mgr/nfs,qa: enhance logging cephfs path failure and align two test cases#51005
mgr/nfs,qa: enhance logging cephfs path failure and align two test cases#51005
Conversation
8afd75c to
cd279c7
Compare
89b13dc to
1b596e5
Compare
4eecb6d to
748bd6c
Compare
|
@vshankar all the requested changes have been pushed. PTAL |
vshankar
left a comment
There was a problem hiding this comment.
Much better. Minor comments.
0be694b to
8ceb61f
Compare
|
@vshankar pushed all the requested changes. PTAL |
vshankar
left a comment
There was a problem hiding this comment.
@dparmar18 test_nfs_export_creation_at_symlink needs fix to check ENOTDIR rather than ENOENT.
8ceb61f to
3cc0996
Compare
|
@vshankar PTAL |
https://jenkins.ceph.com/job/ceph-pull-requests/113753/consoleText |
|
jenkins test make check |
|
@vshankar Good to go? |
- Renamed to cephfs_path_is_dir
- Removed exception handling to prevent redundant log statements like:
"No such file or directory error in stat: b'/mnt/testdir_symlink': No such file or directory [Errno 2]"
Exceptions handled inside caller eliminates this redundancy
- Set modifier flag AT_SYMLINK_NOFOLLOW
- Removed string "{path} is not a dir" when raising NotADirectoryError
Rationale: will be handled in export.py
- change mock to cephfs_path_is_dir
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
in create_cephfs_export() Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
It actually didn't test the invalid path but still ended with ENOENT(which is expected in case path is invalid) as the test didn't create a fs, and it failed saying "FS nfs-cephfs not found" which too raises ENOENT and thus it always passed. Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
- test_nfs_export_creation_at_filepath: ENOTDIR is raised instead of EINVAL which is better aligned with the nature of the failure - test_nfs_export_creation_at_symlink: ENOTDIR is raised instead of ENOENT since the code can now check if the path is symlink but won't follow it. Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
e8d7b32 to
f116776
Compare
|
@dparmar18 Let me know when this is ready for review and testing (I've tagged this to include in my next test run). |
@vshankar i had made a mistake in the testcase, have corrected it and ran your build against qa changes in this PR and its all green, will cleanup the last commit and it's good to go. heres the run link http://pulpito.front.sepia.ceph.com/dparmar-2023-04-26_10:21:46-orch:cephadm-wip-vshankar-testing-20230420.132447-distro-default-smithi/ |
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
f116776 to
7a6ab31
Compare
|
@vshankar done |
|
jenkins make check arm64 |
|
failures are: 1 test that actually ran passed. |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
@adk3798 Do you similar failures in the orch suite tests and is there a tracker? |
|
@adk3798 - In mgr upgrade test run: https://pulpito.ceph.com/vshankar-2023-04-27_06:36:49-orch-wip-vshankar-testing-20230427.052001-testing-default-smithi/7255603, one of the ceph-mgr daemon fails to upgrade. Traces from the ceph-mgr log: Then this is seen: followed by: Is this something you are aware of? |
|
much better - https://pulpito.ceph.com/vshankar-2023-05-02_04:17:08-orch-wip-vshankar-testing-20230501.060318-testing-default-smithi/ but still unrelated (infra) failures. |
I'm no more able to access teuthology through web e.g. https://qa-proxy.ceph.com/teuthology/vshankar-2023-05-02_04:17:08-orch-wip-vshankar-testing-20230501.060318-testing-default-smithi/7260314/teuthology.log. I hope it's still accessible through sepia machine? |
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows