]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephadm: don't test certain workunits with agent 55555/head
authorAdam King <adking@redhat.com>
Thu, 15 Feb 2024 14:24:23 +0000 (09:24 -0500)
committerAdam King <adking@redhat.com>
Mon, 11 Mar 2024 05:39:59 +0000 (01:39 -0400)
There are a handful of workunits that don't work
with or don't make sense with the agent.
The test for the cephadm timeout only works if
the mgr directly runs ceph-volume inventory which
it won't do with the agent present. The adoption
test is just running direct cephadm commands that
are irrelevant to the agent. The test_orch_cli tests
rely on refresh timings that are different with
the agent running, causing spurious failures.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7953fe1b3920c92c086c981bf4e3d2c41ea7e450)

12 files changed:
qa/suites/orch/cephadm/no-agent-workunits/% [new file with mode: 0644]
qa/suites/orch/cephadm/no-agent-workunits/.qa [new symlink]
qa/suites/orch/cephadm/no-agent-workunits/0-distro [new symlink]
qa/suites/orch/cephadm/no-agent-workunits/mon_election [new symlink]
qa/suites/orch/cephadm/no-agent-workunits/task/test_adoption.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/no-agent-workunits/task/test_cephadm_timeout.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli_mon.yaml [new file with mode: 0644]
qa/suites/orch/cephadm/workunits/task/test_adoption.yaml [deleted file]
qa/suites/orch/cephadm/workunits/task/test_cephadm_timeout.yaml [deleted file]
qa/suites/orch/cephadm/workunits/task/test_orch_cli.yaml [deleted file]
qa/suites/orch/cephadm/workunits/task/test_orch_cli_mon.yaml [deleted file]

diff --git a/qa/suites/orch/cephadm/no-agent-workunits/% b/qa/suites/orch/cephadm/no-agent-workunits/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/.qa b/qa/suites/orch/cephadm/no-agent-workunits/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/0-distro b/qa/suites/orch/cephadm/no-agent-workunits/0-distro
new file mode 120000 (symlink)
index 0000000..4b34171
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/container-hosts
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/mon_election b/qa/suites/orch/cephadm/no-agent-workunits/mon_election
new file mode 120000 (symlink)
index 0000000..3f331e6
--- /dev/null
@@ -0,0 +1 @@
+.qa/mon_election
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/task/test_adoption.yaml b/qa/suites/orch/cephadm/no-agent-workunits/task/test_adoption.yaml
new file mode 100644 (file)
index 0000000..e04fc1e
--- /dev/null
@@ -0,0 +1,11 @@
+roles:
+- [mon.a, mgr.x, osd.0, client.0]
+tasks:
+- install:
+- exec:
+    mon.a:
+      - yum install -y python3 || apt install -y python3
+- workunit:
+    clients:
+      client.0:
+        - cephadm/test_adoption.sh
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/task/test_cephadm_timeout.yaml b/qa/suites/orch/cephadm/no-agent-workunits/task/test_cephadm_timeout.yaml
new file mode 100644 (file)
index 0000000..24b53d0
--- /dev/null
@@ -0,0 +1,13 @@
+roles:
+- - host.a
+  - mon.a
+  - mgr.a
+  - osd.0
+  - client.0
+tasks:
+- install:
+- cephadm:
+- workunit:
+    clients:
+      client.0:
+        - cephadm/test_cephadm_timeout.py
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli.yaml b/qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli.yaml
new file mode 100644 (file)
index 0000000..ec65fb1
--- /dev/null
@@ -0,0 +1,17 @@
+roles:
+- - host.a
+  - osd.0
+  - osd.1
+  - osd.2
+  - mon.a
+  - mgr.a
+  - client.0
+tasks:
+- install:
+- cephadm:
+- cephadm.shell:
+    host.a:
+      - ceph orch apply mds a
+- cephfs_test_runner:
+    modules:
+      - tasks.cephadm_cases.test_cli
diff --git a/qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli_mon.yaml b/qa/suites/orch/cephadm/no-agent-workunits/task/test_orch_cli_mon.yaml
new file mode 100644 (file)
index 0000000..2a33dc8
--- /dev/null
@@ -0,0 +1,45 @@
+roles:
+- - host.a
+  - osd.0
+  - osd.1
+  - osd.2
+  - mon.a
+  - mgr.a
+  - client.0
+- - host.b
+  - osd.3
+  - osd.4
+  - osd.5
+  - mon.b
+  - mgr.b
+  - client.1
+- - host.c
+  - osd.6
+  - osd.7
+  - osd.8
+  - mon.c
+  - mgr.c
+  - client.2
+- - host.d
+  - osd.9
+  - osd.10
+  - osd.11
+  - mon.d
+  - mgr.d
+  - client.3
+- - host.e
+  - osd.12
+  - osd.13
+  - osd.14
+  - mon.e
+  - mgr.e
+  - client.4
+tasks:
+- install:
+- cephadm:
+- cephadm.shell:
+    host.a:
+      - ceph orch apply mds a
+- cephfs_test_runner:
+    modules:
+      - tasks.cephadm_cases.test_cli_mon
diff --git a/qa/suites/orch/cephadm/workunits/task/test_adoption.yaml b/qa/suites/orch/cephadm/workunits/task/test_adoption.yaml
deleted file mode 100644 (file)
index e04fc1e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-roles:
-- [mon.a, mgr.x, osd.0, client.0]
-tasks:
-- install:
-- exec:
-    mon.a:
-      - yum install -y python3 || apt install -y python3
-- workunit:
-    clients:
-      client.0:
-        - cephadm/test_adoption.sh
diff --git a/qa/suites/orch/cephadm/workunits/task/test_cephadm_timeout.yaml b/qa/suites/orch/cephadm/workunits/task/test_cephadm_timeout.yaml
deleted file mode 100644 (file)
index 24b53d0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-roles:
-- - host.a
-  - mon.a
-  - mgr.a
-  - osd.0
-  - client.0
-tasks:
-- install:
-- cephadm:
-- workunit:
-    clients:
-      client.0:
-        - cephadm/test_cephadm_timeout.py
\ No newline at end of file
diff --git a/qa/suites/orch/cephadm/workunits/task/test_orch_cli.yaml b/qa/suites/orch/cephadm/workunits/task/test_orch_cli.yaml
deleted file mode 100644 (file)
index ec65fb1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-roles:
-- - host.a
-  - osd.0
-  - osd.1
-  - osd.2
-  - mon.a
-  - mgr.a
-  - client.0
-tasks:
-- install:
-- cephadm:
-- cephadm.shell:
-    host.a:
-      - ceph orch apply mds a
-- cephfs_test_runner:
-    modules:
-      - tasks.cephadm_cases.test_cli
diff --git a/qa/suites/orch/cephadm/workunits/task/test_orch_cli_mon.yaml b/qa/suites/orch/cephadm/workunits/task/test_orch_cli_mon.yaml
deleted file mode 100644 (file)
index 2a33dc8..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-roles:
-- - host.a
-  - osd.0
-  - osd.1
-  - osd.2
-  - mon.a
-  - mgr.a
-  - client.0
-- - host.b
-  - osd.3
-  - osd.4
-  - osd.5
-  - mon.b
-  - mgr.b
-  - client.1
-- - host.c
-  - osd.6
-  - osd.7
-  - osd.8
-  - mon.c
-  - mgr.c
-  - client.2
-- - host.d
-  - osd.9
-  - osd.10
-  - osd.11
-  - mon.d
-  - mgr.d
-  - client.3
-- - host.e
-  - osd.12
-  - osd.13
-  - osd.14
-  - mon.e
-  - mgr.e
-  - client.4
-tasks:
-- install:
-- cephadm:
-- cephadm.shell:
-    host.a:
-      - ceph orch apply mds a
-- cephfs_test_runner:
-    modules:
-      - tasks.cephadm_cases.test_cli_mon