Merge PR #60386 into main

* refs/pull/60386/head:
	qa/cephfs: override testing kernel with -k option

Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Patrick Donnelly 2024-10-25 12:21:34 -04:00
commit 13f4266694
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313
8 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# When the --kernel option is given to teuthology-suite, the kernel is set for
# all nodes (also, the kernel is "distro" when the --kernel option is not set).
# We don't generally want to use a custom kernel for all tests, so unset it.
# The k-testing.yaml will set it, if given, for only the client nodes.
#
# Allow overriding this by using a branch ending in "-all".
teuthology:
postmerge:
- |
local branch = yaml.kernel.branch
if branch and not yaml.kernel.branch:find "-all$" then
log.debug("removing default kernel specification: %s", yaml.kernel)
py_attrgetter(yaml.kernel).pop('branch', nil)
py_attrgetter(yaml.kernel).pop('deb', nil)
py_attrgetter(yaml.kernel).pop('flavor', nil)
py_attrgetter(yaml.kernel).pop('kdb', nil)
py_attrgetter(yaml.kernel).pop('koji', nil)
py_attrgetter(yaml.kernel).pop('koji_task', nil)
py_attrgetter(yaml.kernel).pop('rpm', nil)
py_attrgetter(yaml.kernel).pop('sha1', nil)
py_attrgetter(yaml.kernel).pop('tag', nil)
end

View File

@ -1,3 +1,12 @@
teuthology:
premerge: |
log.debug("base kernel %s", base_config.kernel)
local kernel = base_config.kernel
if kernel.branch ~= "distro" then
log.debug("overriding testing kernel with %s", kernel)
yaml_fragment.kernel.client = kernel
end
kernel:
client:
branch: testing

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml

View File

@ -0,0 +1 @@
.qa/cephfs/begin/3-kernel.yaml