diff options
author | Vallari Agrawal <vallari.agrawal@ibm.com> | 2025-01-07 14:35:35 +0100 |
---|---|---|
committer | Vallari Agrawal <vallari.agrawal@ibm.com> | 2025-01-08 03:05:47 +0100 |
commit | 22f91cdc65246a0f9255e9348c15230670574e64 (patch) | |
tree | 07d1d2b0a87d4cd40b34351bcc314a12488c7d85 /qa/workunits/nvmeof/fio_test.sh | |
parent | Merge pull request #60118 from kshtsk/wip-refactor-make-check (diff) | |
download | ceph-22f91cdc65246a0f9255e9348c15230670574e64.tar.xz ceph-22f91cdc65246a0f9255e9348c15230670574e64.zip |
qa/workunits/nvmeof/basic_tests.sh: fix connect-all assert
There seems to be change in 'nvme list' json output
which caused failures in asserts after 'nvme connect-all'
command.
Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
Diffstat (limited to '')
-rwxr-xr-x | qa/workunits/nvmeof/fio_test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/workunits/nvmeof/fio_test.sh b/qa/workunits/nvmeof/fio_test.sh index 03fb58693bd..f7f783afc67 100755 --- a/qa/workunits/nvmeof/fio_test.sh +++ b/qa/workunits/nvmeof/fio_test.sh @@ -34,7 +34,7 @@ done fio_file=$(mktemp -t nvmeof-fio-XXXX) all_drives_list=$(sudo nvme list --output-format=json | - jq -r '.Devices | sort_by(.NameSpace) | .[] | select(.ModelNumber == "Ceph bdev Controller") | .DevicePath') + jq -r '.Devices[].Subsystems[] | select(.Controllers | all(.ModelNumber == "Ceph bdev Controller")) | .Namespaces | sort_by(.NSID) | .[] | .NameSpace') # When the script is passed --start_ns and --end_ns (example: `nvmeof_fio_test.sh --start_ns 1 --end_ns 3`), # then fio runs on namespaces only in the defined range (which is 1 to 3 here). |