cephfs-shell: fixing cephfs-shell test failures#55808
Conversation
a84444a to
8e8071a
Compare
e0b5191 to
daef686
Compare
2ee4b2c to
240a386
Compare
|
@neesingh-rh status of this? |
The issue is not still fixed, in progress! |
|
@neesingh-rh any update on this? |
Need to re-visit this issue |
|
Status? |
batrick
left a comment
There was a problem hiding this comment.
Please title your commits according to the conventions of this project. This is required for your PR to be merged.
See this article on GitHub on how to amend commits and update your pull request.
batrick
left a comment
There was a problem hiding this comment.
Please annotate the commit message which fixes/resolves a Ceph tracker issue with:
Fixes: http://tracker.ceph.com/issues/...
This is essential when examining the history of the repository (this commit fixes what) and helps merge scripts identify issues that have been resolved by a merge. See this article on GitHub on how to amend commits and update your pull request.
I will change title and commit message after the fix is ready, its just that the issue is not still fixed and this PR was created to test the changes and debug the issue on teuthology |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
@neesingh-rh Any update on this? |
be16b12 to
1a147f5
Compare
Can't that block of code catch errno 127 and then retry with run_script? |
We may end up cancelling the actual possibility for error no 127 by this way,no? |
the exception block would invoke run_script which would fail again IMO. WDYT? |
And one more thing due to the same reason we are seeing this failure in Ubuntu22.04 even after the #55725 fix: https://pulpito.ceph.com/neesingh-2024-09-26_09:20:05-fs:shell-main-distro-default-smithi/ , I ran this test after commenting out all uses of |
Due to this reason too #55808 (comment), I think we should go ahead with the current fix for now. |
|
The fact is that it is going to affect the whole cephfs-shell script wherever cmd2 version being used that's why I added this globally at the start. |
| # XXX: In cmd2 versions < 1.0.1, we'll get SystemExit(2) instead of | ||
| # Cmd2ArgparseError | ||
| if Version(cmd2_version) >= Version("1.0.1"): | ||
| DFLAG = False |
There was a problem hiding this comment.
Please comment the usage of this flag and maybe its better to call it an override.
cephfs-shell is failing in Ubuntu22.04, because it is behaving weirdly with cmd2's version. It is taking cmd2 version as 0.0.0 instead of the correct version. Fixes: https://tracker.ceph.com/issues/63700 Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
|
jenkins retest this please |
|
@neesingh-rh please run this through cephfs-shell tests and post the results here. |
|
jenkins test api |
@vshankar Here's the run link: https://pulpito.ceph.com/neesingh-2024-09-28_02:13:02-fs:shell-wip-neesingh-testing2-270924-distro-default-smithi/ |
|
jenkins test api |
|
jenkins test api |
Seeing cephfs-shell failures in Ubuntu22.04 due to its weird behaviour with python3-cmd2's version
Fixes: https://tracker.ceph.com/issues/63700
Signed-off-by: Neeraj Pratap Singh neesingh@redhat.com
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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 windowsjenkins test rook e2e