Skip to content

Commit 8a30a63

Browse files
committed
mantle/kola/tests: adapt mpath verification
The test needs to be adapted so it doesn't verify that we're on multipath based on whether the device is `/dev/mapper/mpath` or not, but instead based on udevadm output.
1 parent 3774d13 commit 8a30a63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mantle/kola/tests/misc/multipath.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ func verifyBootDropins(c cluster.TestCluster, m platform.Machine, checkBootuuid
151151

152152
func verifyMultipath(c cluster.TestCluster, m platform.Machine, path string) {
153153
srcdev := string(c.MustSSHf(m, "findmnt -nvr %s -o SOURCE", path))
154-
if !strings.HasPrefix(srcdev, "/dev/mapper/mpath") {
154+
udevinfo := string(c.MustSSHf(m, "udevadm info %s", srcdev))
155+
if !strings.HasPrefix(udevinfo, "DM_MPATH") {
155156
c.Fatalf("mount %s has non-multipath source %s", path, srcdev)
156157
}
157158
}

0 commit comments

Comments
 (0)