Actions
Bug #45305
closedqa: rbd-nbd unmap_device may exit earlier due to incorrect list-mapped filter
% Done:
0%
Source:
Tags:
Backport:
octopus,nautilus,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Description
The `unmap_device` function from rbd-nbd.sh test, waits for the device is unmaped by filtering `rbd-nbd list-mapped` output. The current filter (`grep "${list_dev} $"`) fails since some time because `rbd-nbd list-mapped` has been changed (probably due to updated TextTable) and now it does not print the white space at the end.
We can change the filter to `grep "${list_dev} *$"`, so it works for any version.
Actions