Skip to content

umbrella: mgr/dashboard: skip the table when an nvmeof cli result has no columns - #69710

Merged
neha-ojha merged 2 commits into
ceph:umbrellafrom
tchaikov:wip-77609-umbrella
Jun 26, 2026
Merged

neha-ojha merged 2 commits into
ceph:umbrellafrom
tchaikov:wip-77609-umbrella

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)
@tchaikov
tchaikov requested a review from a team as a code owner June 24, 2026 14:04
@tchaikov tchaikov added this to the umbrella milestone Jun 24, 2026
@github-actions github-actions Bot added pybind releng-audit-pass Release engineering: passed backport verification audit. labels Jun 24, 2026
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jun 24, 2026
@afreen23 afreen23 modified the milestones: umbrella, v21.1.0 Jun 24, 2026
@yuriw

yuriw commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri8-testing-20260624.193403-umbrella.

@afreen23

Copy link
Copy Markdown
Contributor

There are some make check failures @tchaikov , does this need backport too? #69446

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)
@tchaikov
tchaikov requested a review from a team as a code owner June 25, 2026 07:16
@github-actions github-actions Bot added cephadm and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jun 25, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

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

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 25, 2026
@tchaikov

Copy link
Copy Markdown
Contributor Author

There are some make check failures @tchaikov , does this need backport too? #69446

done.

@afreen23

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@afreen23

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@tchaikov

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dash and adm tests are known ffailures and being fixed by another PRs. Approving

@afreen23

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

1 similar comment
@tchaikov

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@idryomov idryomov removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 26, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jun 26, 2026
@neha-ojha
neha-ojha merged commit 7583396 into ceph:umbrella Jun 26, 2026
9 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephadm dashboard needs-qa pybind releng-audit-pass Release engineering: passed backport verification audit. wip-yuri8-testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants