From a476c613f8f75a7519afb9a6ff93b0b1499745ea Mon Sep 17 00:00:00 2001 From: Chin-Ya Huang Date: Mon, 11 Dec 2023 15:34:06 +0800 Subject: [PATCH] test(manual): upgrade responder collects volume backend store driver ref: 6033 Signed-off-by: Chin-Ya Huang --- ...ade-responder-collect-spdk-related-info.md | 52 ++++++++++++++++--- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/docs/content/manual/release-specific/v1.6.0/test-upgrade-responder-collect-spdk-related-info.md b/docs/content/manual/release-specific/v1.6.0/test-upgrade-responder-collect-spdk-related-info.md index 9dffb16253..0ae906383d 100644 --- a/docs/content/manual/release-specific/v1.6.0/test-upgrade-responder-collect-spdk-related-info.md +++ b/docs/content/manual/release-specific/v1.6.0/test-upgrade-responder-collect-spdk-related-info.md @@ -47,7 +47,17 @@ longhorn_disk_block_count float longhorn_disk_filesystem_count float ``` -**And** the value in `longhorn_disk_block_Count` should equal to the number of volume using the V1 engine. +**And** the value in `longhorn_disk_filesystem_Count` should equal to the number of volume using the V1 engine. +```bash +> kubectl exec -it ${influxdb_pod} -- influx -execute 'SELECT "longhorn_disk_filesystem_count" FROM "upgrade_request"' -database="${app_name}_upgrade_responder" +name: upgrade_request +time longhorn_disk_filesystem_count +---- ------------------------------ +1702351841122419036 1 +1702351841563938125 1 +1702351842436864452 1 +``` +**And** the value in `longhorn_disk_block_Count` should equal to the number of volume using the V2 engine. ```bash > kubectl exec -it ${influxdb_pod} -- influx -execute 'SELECT "longhorn_disk_block_count" FROM "upgrade_request"' -database="${app_name}_upgrade_responder" name: upgrade_request @@ -57,13 +67,39 @@ time longhorn_disk_block_count 1702351841563938125 2 1702351842436864452 2 ``` -**And** the value in `longhorn_disk_filesystem_Count` should equal to the number of volume using the V2 engine. + +#### Test Collecting Volume Backend Store Driver + +**Given** [Prerequisite](#prerequisite). +**And** Create one volume using V1 engine. + Create two volume using V2 engine. +**And** [Deploy upgrade responder stack](https://github.com/longhorn/longhorn/tree/master/dev/upgrade-responder). + +**When** Wait 1~2 hours for collection data to send to the influxDB database. + +**Then** `longhorn_volume_backend_store_driver_v1_count` should exist the influxDB database. + `longhorn_volume_backend_store_driver_v2_count` should exist the influxDB database. ```bash -> kubectl exec -it ${influxdb_pod} -- influx -execute 'SELECT "longhorn_disk_filesystem_count" FROM "upgrade_request"' -database="${app_name}_upgrade_responder" +> app_name="longhorn" +> influxdb_pod=$(kubectl get pod | grep influxdb | awk '{print $1}' | head -n 1) +> kubectl exec -it ${influxdb_pod} -- influx -execute 'SHOW FIELD KEYS FROM upgrade_request' -database="${app_name}_upgrade_responder" | grep longhorn_volume_backend_store_driver +longhorn_volume_backend_store_driver_v1_count float +longhorn_volume_backend_store_driver_v2_count float +``` + +**And** the value in `longhorn_volume_backend_store_driver_v1_count` should equal to the number of volume using the V1 engine. +```bash +> kubectl exec -it ${influxdb_pod} -- influx -execute 'SELECT "longhorn_volume_backend_store_driver_v1_count" FROM "upgrade_request"' -database="${app_name}_upgrade_responder" name: upgrade_request -time longhorn_disk_filesystem_count ----- ------------------------------ -1702351841122419036 1 -1702351841563938125 1 -1702351842436864452 1 +time longhorn_volume_backend_store_driver_v1_count +---- --------------------------------------------- +1702351841122419036 3 +``` +**And** the value in `longhorn_volume_backend_store_driver_v2_count` should equal to the number of volume using the V2 engine. +```bash +> kubectl exec -it ${influxdb_pod} -- influx -execute 'SELECT "longhorn_volume_backend_store_driver_v2_count" FROM "upgrade_request"' -database="${app_name}_upgrade_responder" +name: upgrade_request +time longhorn_volume_backend_store_driver_v2_count +---- --------------------------------------------- +1702351841122419036 2 ```