Repository navigation
umbrella: mgr/dashboard: skip the table when an nvmeof cli result has no columns - #69710
Conversation
The dashboard leaves prettytable unpinned. prettytable commit 2574492 ("Apply
some Pylint rules (PLR)", ceph#436) rewrote _stringify_row()'s row_height as
`max(_get_size(c)[1] for c in row)`, which raises ValueError("max() iterable
argument is empty") on a row with no cells. The change is undocumented and
shipped in 3.18.0; get_string() trips on it when a table has a row but no
columns.
AnnotatedDataTextOutputFormatter builds such a table for an empty result, or
one whose only field is status or error_message, so NvmeofCLICommand.call()
returns -EINVAL and the command fails. This broke run-tox-mgr-dashboard-py3
once the tox virtualenv picked up prettytable 3.18.0.
Return an empty string when there are no columns instead of formatting a
degenerate table.
Fixes: https://tracker.ceph.com/issues/77589
Signed-off-by: Kefu Chai <[email protected]>
(cherry picked from commit 9dd7fd0)
|
This PR has been added to wip-yuri8-testing-20260624.193403-umbrella. |
pyOpenSSL deprecated OpenSSL.crypto.X509Req in 24.2.0 (2024-07-20) and removed it in 26.3.0 (2026-06-12). as we don't pin pyopenssl, CI picked up the new release, and create_self_signed_cert() started failing with: AttributeError: module 'OpenSSL.crypto' has no attribute 'X509Req' this took down run-tox-mgr, run-tox-mgr-dashboard-py3 and the mypy check. we only used X509Req to build a subject name and then copied it into the X509 cert. so drop it, and set the subject on the cert directly. the resulting cert stays the same: subject from dname, issuer set to the same subject, self-signed. Fixes: https://tracker.ceph.com/issues/77391 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 1dda56b)
There was a problem hiding this comment.
Automated Backport Parity Review - Multiple PRs Detected
This backport appears to pull commits from multiple main PRs including: PR #69446, PR #69659.
This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.
Commit Parity Visualizer
| BACKPORT PR #69710 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| 4a9d5bd mgr/dashboard: skip the table when an nvmeof cli result has no columns | PR #69659 | 9dd7fd0 mgr/dashboard: skip the table when an nvmeof cli result has no columns |
| f95e5f7 python-common/cryptotools: stop using the removed X509Req API | PR #69446 | 1dda56b python-common/cryptotools: stop using the removed X509Req API |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
CI Run Log: View Workflow Details
|
jenkins test dashboard |
|
jenkins test make check arm64 |
|
jenkins test make check arm64 |
afreen23
left a comment
There was a problem hiding this comment.
dash and adm tests are known ffailures and being fixed by another PRs. Approving
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
backport tracker: https://tracker.ceph.com/issues/77609
backport tracker: https://tracker.ceph.com/issues/77433
backport of #69659
parent tracker: https://tracker.ceph.com/issues/77589
backport of #69446
parent tracker: https://tracker.ceph.com/issues/77391
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh