]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: fix some details on telemetry workunits
authorLaura Flores <lflores@ibm.com>
Fri, 17 Jan 2025 22:57:10 +0000 (16:57 -0600)
committerLaura Flores <lflores@ibm.com>
Sat, 18 Jan 2025 03:22:23 +0000 (21:22 -0600)
1. For the telemetry upgrade tests, we want to
   make sure we enable the perf channel before we
   upgrade to test that out.

2. We also want to be sure to set up ident information.
   in the workunits used before the upgrade.

3. We can remove the "opt out" commands in the before-upgrade
   workunits since we want to stay opted in during the upgrade.
   We only opt out after all the checks are complete.

4. We mistakenly test "ceph telemetry show" twice when one
   of then should be "ceph telemetry show-all".

Signed-off-by: Laura Flores <lflores@ibm.com>
qa/workunits/test_telemetry_reef.sh
qa/workunits/test_telemetry_reef_x.sh
qa/workunits/test_telemetry_squid.sh
qa/workunits/test_telemetry_squid_x.sh

index d0d24c97ffaae658c57dd26b15eecedcb7c8f1b6..8852a8e80f10643d5613c64de2fbac3f2a833f7f 100755 (executable)
@@ -1,8 +1,19 @@
 #!/bin/bash -ex
 
+# Set up ident details for cluster
+ceph config set mgr mgr/telemetry/channel_ident true
+ceph config set mgr mgr/telemetry/organization 'ceph-qa'
+ceph config set mgr mgr/telemetry/description 'upgrade test cluster'
+
+#Run preview commands
+ceph telemetry preview
+ceph telemetry preview-device
+ceph telemetry preview-all
+
 # Opt in to new collections right away to avoid "TELEMETRY_CHANGED"
 # warning (see https://tracker.ceph.com/issues/64458)
 ceph telemetry on --license sharing-1-0
+ceph telemetry enable channel perf
 
 # The last_opt_revision remains at 1 since last_opt_revision
 # was phased out for fresh installs of quincy.
@@ -44,9 +55,6 @@ ceph telemetry preview-all
 # Run show commands
 ceph telemetry show
 ceph telemetry show-device
-ceph telemetry show
-
-# Opt out
-ceph telemetry off
+ceph telemetry show-all
 
 echo OK
index 07bd942b914579f8e360487a3646c342b50b3c80..763dde39863ca1e2ee86b76d93d32e61178dcf50 100755 (executable)
@@ -44,7 +44,7 @@ ceph telemetry preview-all
 # Run show commands
 ceph telemetry show
 ceph telemetry show-device
-ceph telemetry show
+ceph telemetry show-all
 
 # Opt out
 ceph telemetry off
index ace240a944ec0688533231ad206c030d08699d77..332ed1c047c9be70ec50d312c5cb118e285e3c4f 100755 (executable)
@@ -1,8 +1,19 @@
 #!/bin/bash -ex
 
+# Set up ident details for cluster
+ceph config set mgr mgr/telemetry/channel_ident true
+ceph config set mgr mgr/telemetry/organization 'ceph-qa'
+ceph config set mgr mgr/telemetry/description 'upgrade test cluster'
+
+#Run preview commands
+ceph telemetry preview
+ceph telemetry preview-device
+ceph telemetry preview-all
+
 # Opt in to new collections right away to avoid "TELEMETRY_CHANGED"
 # warning (see https://tracker.ceph.com/issues/64458)
 ceph telemetry on --license sharing-1-0
+ceph telemetry enable channel perf
 
 # The last_opt_revision remains at 1 since last_opt_revision
 # was phased out for fresh installs of quincy.
@@ -44,9 +55,6 @@ ceph telemetry preview-all
 # Run show commands
 ceph telemetry show
 ceph telemetry show-device
-ceph telemetry show
-
-# Opt out
-ceph telemetry off
+ceph telemetry show-all
 
 echo OK
index 07bd942b914579f8e360487a3646c342b50b3c80..763dde39863ca1e2ee86b76d93d32e61178dcf50 100755 (executable)
@@ -44,7 +44,7 @@ ceph telemetry preview-all
 # Run show commands
 ceph telemetry show
 ceph telemetry show-device
-ceph telemetry show
+ceph telemetry show-all
 
 # Opt out
 ceph telemetry off