Skip to content

qa: Add new task module template.py - #65721

Merged
adk3798 merged 8 commits into
ceph:mainfrom
phlogistonjohn:jjm-qa-task-template
Oct 2, 2025
Merged

adk3798 merged 8 commits into
ceph:mainfrom
phlogistonjohn:jjm-qa-task-template

Conversation

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Extract the general templating functions that we had added to cephadm.py a while ago into a proper module that doesn't really have any functionality specific to cephadm.

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Overdue Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@phlogistonjohn

Copy link
Copy Markdown
Contributor Author

https://pulpito.ceph.com/phlogistonjohn-2025-09-29_20:06:41-orch-main-distro-default-gibba/

Full run of smb mgr/orch tests: one failure out of 45 tests, which is a preexisting and known flake.

This run included a patch I didn't really intend to be in this run, but it should not invalidate the regression testing this run is intended for.

Convert a number of uses of `vip.exec` to basic `exec`. When the
replacement pattern `{{VIP<x>}}` is not present vip.exec and exec
are essentially the same. This means that the remaining uses of
`vip.exec` actually need vip variable substitution.

Signed-off-by: John Mulligan <[email protected]>
Convert a uses of `cephadm.exec` to basic `exec`. When templates (with
the jinja2-style replacement pattern `{{}}`) are not present the
cephadm.exec and exec are essentially the same.

Signed-off-by: John Mulligan <[email protected]>
This change extracts a bunch of functionality that we added to
cephadm.py and has been "incubating" there for too long as it's not
particularly specific to cephadm.

Take the code from cephadm.py and fully generalize it and make it a
fairly simple module that can be reused elsewhere as needed.

Signed-off-by: John Mulligan <[email protected]>
Remove the generic template stuff from cephadm.py now that the
template.py file is usable and various yamls have been updated to
use the new module now.

Signed-off-by: John Mulligan <[email protected]>
The file python.py was making use of subst_vip from vip.py. The more
generic template.py provides the same functionality as subst_vip plus a
better more general templating system.  Replace subst_vip in this file
so that we can remove subst_vip in the future.

Signed-off-by: John Mulligan <[email protected]>
Now that all the generic templating can be done by template.py,
we can remove the legacy functions from vip.py

Signed-off-by: John Mulligan <[email protected]>
@phlogistonjohn

Copy link
Copy Markdown
Contributor Author

https://pulpito.ceph.com/phlogistonjohn-2025-10-01_16:42:15-orch:cephadm-main-distro-default-smithi/
This orch run had more failures but largely matches the normal kinds of failures seen on main prior to these patches.

@phlogistonjohn
phlogistonjohn marked this pull request as ready for review October 2, 2025 13:44
@phlogistonjohn
phlogistonjohn requested a review from a team as a code owner October 2, 2025 13:44

@adk3798 adk3798 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.

@adk3798
adk3798 merged commit 37813cf into ceph:main Oct 2, 2025
@phlogistonjohn
phlogistonjohn deleted the jjm-qa-task-template branch October 22, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants