]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/nvme_loop: update task to work with new nvme list format
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:36:47 +0000 (15:36 -0500)
commit0dee704b13e79110e8a383652e52c80125cb3b43
tree63d4070e812f870e9f2717401a8542de325abada
parent0f1dccb11d8178df39db15ebc5036e51259b699c
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)

Conflicts:
qa/tasks/nvme_loop.py
qa/tasks/nvme_loop.py