Project

General

Profile

Actions

Bug #45305

closed

qa: rbd-nbd unmap_device may exit earlier due to incorrect list-mapped filter

Added by Mykola Golub about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus,nautilus,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.


Related issues 3 (0 open3 closed)

Copied to rbd - Backport #45363: mimic: qa: rbd-nbd unmap_device may exit earlier due to incorrect list-mapped filterRejectedActions
Copied to rbd - Backport #45364: octopus: qa: rbd-nbd unmap_device may exit earlier due to incorrect list-mapped filterResolvedNathan CutlerActions
Copied to rbd - Backport #45365: nautilus: qa: rbd-nbd unmap_device may exit earlier due to incorrect list-mapped filterResolvedNathan CutlerActions
Actions

Also available in: Atom PDF