-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Massive testsuite failures when testing from a subdirectory of /tmp on Fedora (starting with zdtm/static/aio00) #2441
Comments
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
Our tests creates a test root file system to run tests in a container-like environment: We probably can do something like this: @adrianreber could you try to run these tests with my patch? |
@adrianreber I just found that my change is incomplete. I will update it and push the new version tomorrow. |
My origin idea doesn't work. I think the simplest way to fix the issue is to do something like this: index 56fc8ec..45b1d3e 100755
--- a/tests/run-zdtm.sh
+++ b/tests/run-zdtm.sh
@@ -24,7 +24,7 @@ EXCLUDES=" \
-x zdtm/static/cgroup02 "
run_test() {
- ./zdtm.py run --criu-bin /usr/sbin/criu ${EXCLUDES} \
+ ./test/zdtm.py run --criu-bin /usr/sbin/criu ${EXCLUDES} \
-a --ignore-taint --keep-going
RESULT=$?
@@ -42,11 +42,14 @@ rm -f /var/lib/sss/pipes/nss
cd source
+tar -czf test.tar.gz -C test .
+mount -t tmpfs criu-test test
+trap "umount -l test" EXIT
+tar -xzf test.tar.gz -C test
+
echo "Build CRIU"
make
-cd test
-
echo "Run the actual CRIU test suite"
run_test |
It sounds like a good idea.
@avagin Would it make sense for ZDTM to exit with an error message describing the problem? |
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
Without any logs of failure there is no way to confirm that what you are describing is the same to what others may experience. Can you please follow the Issue creation template, and I'd assume the error we are talking about is:
|
We put several device files into zdtm container through its root file system which is the same file system criu git resides in. We do it like this to overcome inability to create character and block device files in user namespaces. So even if we put those device files into zdtm container in any other way, in 'uns' flavor CRIU would not be able to restore those device files. Other option can be - creating auxiliary tmpfs mount and add it into zdtm container as external mount, but that looks like an overkill for this problem. Let's print a clear error so that user can either mount current file system without 'nodev" or put criu somewhere else. Fixes: checkpoint-restore#2441 Signed-off-by: Pavel Tikhomirov <[email protected]>
We put several device files into zdtm container through its root file system which is the same file system criu git resides in. We do it like this to overcome inability to create character and block device files in user namespaces. So even if we put those device files into zdtm container in any other way, in 'uns' flavor CRIU would not be able to restore those device files. Other option can be - creating auxiliary tmpfs mount and add it into zdtm container as external mount, but that looks like an overkill for this problem. Let's print a clear error so that user can either mount current file system without 'nodev" or put criu somewhere else. Fixes: checkpoint-restore#2441 Signed-off-by: Pavel Tikhomirov <[email protected]>
We've talked with @avagin yesterday, and came to the conclusion that we probably should go with Andrei's "external mount" approach (avagin@38bab46), as the tendency is to add |
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes checkpoint-restore#2441 Signed-off-by: Andrei Vagin <[email protected]>
The current file system can be mounted with nodev. Fixes #2441 Signed-off-by: Andrei Vagin <[email protected]>
Fedora 39 mounts
/tmp
like this:This seems to cause all tests to fail if the CRIU Git checkout is located in
/tmp
. It's a bit non-obvious, so maybe the testsuite could check the mount flags of the mount point? At the very least, this ticket should be easier to find due to thezdtm/static/aio00
string …The text was updated successfully, but these errors were encountered: