]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/nvme_loop: update task to work with new nvme list format 61026/head
authorAdam King <adking@redhat.com>
Tue, 3 Dec 2024 20:22:22 +0000 (15:22 -0500)
committerAdam King <adking@redhat.com>
Tue, 10 Dec 2024 20:31:08 +0000 (15:31 -0500)
commita66969aa4d5ad136a85eecd7990c04bcef3b0afe
tree788271c026e6a79aa6ea705916afa5e2d5e2346c
parent4f59844ff6495b3c1b93ff758344bc9a097e6d42
qa/tasks/nvme_loop: update task to work with new nvme list format

Specifically on some centos 9 tests, we've seen that a newer
version of some nvme related package is causing this task to fail
with "KeyError: 'DevicePath'" due to the format of the output
of the nvme list command changing. This patch adds handling for
the new format we've seen while also still supporting the old
format (necessary for the tests running on ubuntu).

Fixes: https://tracker.ceph.com/issues/69067
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit ce487613d08b0c0d73172ce6ababcb75855f6ae6)
qa/tasks/nvme_loop.py