-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the external kola test for luks + multipath case
Signed-off-by: Poorna Gottimukkula <[email protected]>
- Loading branch information
1 parent
1da828e
commit 4c39fda
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../config.ign |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
## kola: | ||
## # This test reprovisions the rootfs. | ||
## tags: "reprovision" | ||
## # This uses appendKernelArgs and multipath, which is QEMU only | ||
## platforms: qemu | ||
## # Root reprovisioning requires at least 4GiB of memory. | ||
## minMemory: 4096 | ||
## # A TPM backend device is not available on s390x to suport TPM. | ||
## architectures: "! s390x" | ||
## # This test includes a lot of disk I/O and needs a higher | ||
## # timeout value than the default. | ||
## timeoutMin: 15 | ||
## description: Verify that LUKS on a mpath disks works. | ||
## primaryDisk: ":mpath" | ||
## appendKernelArgs: "rd.multipath=default" | ||
|
||
set -xeuo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
. "$KOLA_EXT_DATA/commonlib.sh" | ||
|
||
# Check if the child device is part of the parent device | ||
srcdev=$(findmnt -nvr /sysroot -o SOURCE) | ||
parent_device="/dev/mapper/mpatha" | ||
|
||
if ! lsblk -pno NAME "$parent_device" | grep -qw "$srcdev"; then | ||
fatal "$srcdev is NOT a child of $parent_device." | ||
fi | ||
ok "$srcdev device is part of the parent $parent_device device" | ||
|
||
# run the rest of the tests | ||
. $KOLA_EXT_DATA/luks-test.sh |