-
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.
Add a new `ext.config.root-reprovision.autosave-xfs` test that checks that the logic kicks in on a large enough disk. Add a similar `ext.config.root-reprovision.luks.autosave-xfs` for the LUKS version of this. Sanity-check in other reprovisioning tests that autosave-xfs didn't kick in.
- Loading branch information
Showing
9 changed files
with
88 additions
and
2 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 @@ | ||
../../../data/commonlib.sh |
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,26 @@ | ||
#!/bin/bash | ||
## kola: | ||
## # This test reprovisions the rootfs automatically. | ||
## tags: "platform-independent reprovision" | ||
## # Trigger automatic XFS reprovisioning | ||
## minDisk: 64 | ||
## # Root reprovisioning requires at least 4GiB of memory. | ||
## minMemory: 4096 | ||
## # This test includes a lot of disk I/O and needs a higher | ||
## # timeout value than the default. | ||
## timeoutMin: 15 | ||
|
||
set -xeuo pipefail | ||
|
||
. $KOLA_EXT_DATA/commonlib.sh | ||
|
||
if [ ! -f /run/ignition-ostree-autosaved-xfs.stamp ]; then | ||
fatal "expected autosaved XFS" | ||
fi | ||
ok "autosaved XFS on large disk" | ||
|
||
eval $(xfs_info / | grep -o 'agcount=[0-9]*') | ||
if [ "$agcount" -gt 4 ]; then | ||
fatal "expected agcount of at most 4, got ${agcount}" | ||
fi | ||
ok "low agcount on large disk" |
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,34 @@ | ||
#!/bin/bash | ||
## kola: | ||
## # This test reprovisions the rootfs. | ||
## tags: "platform-independent reprovision" | ||
## # 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 | ||
## # Trigger automatic XFS reprovisioning | ||
## minDisk: 64 | ||
|
||
set -xeuo pipefail | ||
|
||
. $KOLA_EXT_DATA/commonlib.sh | ||
|
||
# check that we ran automatic XFS reprovisioning | ||
if [ -z "${AUTOPKGTEST_REBOOT_MARK:-}" ]; then | ||
if [ ! -f /run/ignition-ostree-autosaved-xfs.stamp ]; then | ||
fatal "expected autosaved XFS" | ||
fi | ||
ok "autosaved XFS on large disk" | ||
|
||
eval $(xfs_info / | grep -o 'agcount=[0-9]*') | ||
if [ "$agcount" -gt 4 ]; then | ||
fatal "expected agcount of at most 4, got ${agcount}" | ||
fi | ||
ok "low agcount on large disk" | ||
fi | ||
|
||
# run the rest of the tests | ||
. $KOLA_EXT_DATA/luks-test.sh |
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