summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@ibm.com>2024-10-25 18:21:34 +0200
committerPatrick Donnelly <pdonnell@ibm.com>2024-10-25 18:21:34 +0200
commit13f42666942db66b8916aa2b7304e0fe54b6663c (patch)
treea6c01b1d97d459bef2f536be7852c6860530f26f
parentMerge pull request #60117 from rishabh-d-dave/mgr-vol-base-init (diff)
parentqa/cephfs: override testing kernel with -k option (diff)
downloadceph-13f42666942db66b8916aa2b7304e0fe54b6663c.tar.xz
ceph-13f42666942db66b8916aa2b7304e0fe54b6663c.zip
Merge PR #60386 into main
* refs/pull/60386/head: qa/cephfs: override testing kernel with -k option Reviewed-by: Venky Shankar <vshankar@redhat.com>
-rw-r--r--qa/cephfs/begin/3-kernel.yaml23
-rw-r--r--qa/cephfs/mount/kclient/overrides/distro/testing/k-testing.yaml9
l---------qa/suites/fs/upgrade/featureful_client/old_client/kernel.yaml1
l---------qa/suites/fs/upgrade/featureful_client/upgraded_client/kernel.yaml1
l---------qa/suites/fs/upgrade/mds_upgrade_sequence/kernel.yaml1
l---------qa/suites/fs/upgrade/nofs/kernel.yaml1
l---------qa/suites/fs/upgrade/upgraded_client/kernel.yaml1
l---------qa/suites/fs/workload/begin/3-kernel.yaml1
8 files changed, 38 insertions, 0 deletions
diff --git a/qa/cephfs/begin/3-kernel.yaml b/qa/cephfs/begin/3-kernel.yaml
new file mode 100644
index 00000000000..e94a0d87dc8
--- /dev/null
+++ b/qa/cephfs/begin/3-kernel.yaml
@@ -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
diff --git a/qa/cephfs/mount/kclient/overrides/distro/testing/k-testing.yaml b/qa/cephfs/mount/kclient/overrides/distro/testing/k-testing.yaml
index 2ee219125e7..048cd5ce8b9 100644
--- a/qa/cephfs/mount/kclient/overrides/distro/testing/k-testing.yaml
+++ b/qa/cephfs/mount/kclient/overrides/distro/testing/k-testing.yaml
@@ -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
diff --git a/qa/suites/fs/upgrade/featureful_client/old_client/kernel.yaml b/qa/suites/fs/upgrade/featureful_client/old_client/kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/upgrade/featureful_client/old_client/kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file
diff --git a/qa/suites/fs/upgrade/featureful_client/upgraded_client/kernel.yaml b/qa/suites/fs/upgrade/featureful_client/upgraded_client/kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/upgrade/featureful_client/upgraded_client/kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file
diff --git a/qa/suites/fs/upgrade/mds_upgrade_sequence/kernel.yaml b/qa/suites/fs/upgrade/mds_upgrade_sequence/kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/upgrade/mds_upgrade_sequence/kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file
diff --git a/qa/suites/fs/upgrade/nofs/kernel.yaml b/qa/suites/fs/upgrade/nofs/kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/upgrade/nofs/kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file
diff --git a/qa/suites/fs/upgrade/upgraded_client/kernel.yaml b/qa/suites/fs/upgrade/upgraded_client/kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/upgrade/upgraded_client/kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file
diff --git a/qa/suites/fs/workload/begin/3-kernel.yaml b/qa/suites/fs/workload/begin/3-kernel.yaml
new file mode 120000
index 00000000000..a7f7b735665
--- /dev/null
+++ b/qa/suites/fs/workload/begin/3-kernel.yaml
@@ -0,0 +1 @@
+.qa/cephfs/begin/3-kernel.yaml \ No newline at end of file