Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-04Fix tests on UbuntuAdrian Reber
It seems like Ubuntu introduced a overlayfs change which breaks CRIU: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1857257 This disables overlayfs (unfortunately) in most tests by switching to devicemapper or vfs. Upstream kernels do not seem to have this problem. This also adds the 'docker-test' for xenial which still has a working overlayfs from CRIU's point of view. Also adjust Podman Ubuntu package location Podman Ubuntu packages are now available via OBS and no longer via PPA. Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04travis: exclude uns tests for lazy-pages on newer kernelsMike Rapoport
Kernels 5.4 and higher will restrict availability of UFFD_EVENT_FORK only for users with SYS_CAP_PTRACE. This prevents running --lazy-pages tests with 'uns' flavor. Disable 'uns' for lazy pages testing in travis for newer kernels. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
2020-02-04travis: group lazy-pages optionsMike Rapoport
The amount of lazy-pages options keeps growing, let's put the common ones into a variable. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
2020-02-04travis: switch pcp64le and s390x to real hardwareAdrian Reber
Now that Travis also supports ppc64le and s390x we can remove all qemu based docker emulation from our test setup. This now runs ppc64le and s390x tests on real hardware (LXD containers). Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04travis: switch all arm related tests to real hardwareAdrian Reber
This switches all arm related tests (32bit and 64bit) to the aarch64 systems Travis provides. For arm32 we are running in a armv7hf container on aarch64 with 'setarch linux32'. The main changes are that docker on Travis aarch64 cannot use '--privileged' as Travis is using unprivileged LXD containers to setup the testing environment. Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04travis: Do not run privileged containers in LXDAdrian Reber
Travis uses unprivileged containers for aarch64 in LXD. Docker with '--privileged' fails in such situation. This changes the travis setup to only start docker with '--privileged' if running on x86_64. Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04travis: fix copy paste error from previous commitAdrian Reber
In my previous commit I copied a line with a return into the main script body. bash can only return from functions. This changes return to exit. Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04Run java functional tests on travisNidhi Gupta
Signed-off-by: Nidhi Gupta <itsnidhi16@gmail.com>
2020-02-04travis: start to use aarch64 hardwareAdrian Reber
With the newly introduced aarch64 at Travis it is possible for the CRIU test-cases to switch to aarch64. Travis uses unprivileged LXD containers on aarch64 which blocks many of the kernel interfaces CRIU needs. So for now this only tests building CRIU natively on aarch64 instead of using the Docker+QEMU combination. All tests based on Docker are not working on aarch64 is there currently seems to be a problem with Docker on aarch64. Maybe because of the nesting of Docker in LXD. Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04Enable libcriu testing in travis jobsAshutosh Mehra
Updated scripts/travis/travis-tests to run libcriu test. Signed-off-by: Ashutosh Mehra <asmehra1@in.ibm.com>
2019-09-07travis: add podman test caseAdrian Reber
This adds the same tests currently running for docker also for podman. In addition this also tests podman --export/--import (migration) support. Signed-off-by: Adrian Reber <areber@redhat.com>
2019-09-07Replace references to github.com/xemul/criuSebastiaan van Stijn
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-07scripts: Install flake8 with dnf in FedoraRadostin Stoyanov
In the Fedora tests we install python3-pip only to install flake8. This is not necessary as there is a Fedora package for flake8. Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
2019-09-07Replace libprotobuf-c0-dev with libprotobuf-c-devSebastiaan van Stijn
The `libprotobuf-c0-dev` virtual package is no longer available in Debian Buster, but is provided by `libprotobuf-c-dev`, which is available. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-09-07travis: Enable TLS testingRadostin Stoyanov
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
2019-09-07make: Use asciidoctor by defaultRadostin Stoyanov
The final release of asciidoc was on Sep 29, 2017 and the development is continued under asciidoctor. With commit 0493724 (Documentation: Allow to use asciidoctor for formatting man pages) was added support for this tool by introducing USE_ASCIIDOCTOR. However, using asciidoctor by default might be a better option. With this change CRIU will use asciidoctor if installed. Otherwise, it will fallback to asciidoc. Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
2019-04-21travis-ci: Enable ia32 testsDmitry Safonov
Travis CI with Xenial has 4.15 kernel these days - all support for ia32 C/R should be inplace. Finally :) Putting it into "allow_failures" to let it soak a bit. Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-21docker-test: Fix deprecated security-opt formatRadostin Stoyanov
The flag --security-opt doesn't use the colon separator (:) anymore to divide keys and values, instead it uses the equal symbol (=) for consistency with other similar flags, like --storage-opt. Deprecated in release: v1.11.0 Target for removal in release: v17.06 https://docs.docker.com/engine/deprecated/ #653 Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
2019-04-21travis: lazy-pages: exclude most tests for kernels <4.18Mike Rapoport
Although non-cooperative userfaultfd events have been merged into the Linux kernel since 4.11 they were racy until 4.18. Exclude "dangerous" tests for older kernels. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
2019-04-21travis/fedora: install the kmod packageAndrei Vagin
This patch fixes the error: (00.074175) Error (criu/net.c:2638): Locking network failed: iptables-restore returned -1. This may be connected to disabled CONFIG_NETFILTER_XT_MARK kernel build config option. Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-21travis/docker: install docker from the test repoAndrei Vagin
C/R in Docker from the stable repo is broken. Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-21travis: switch to the Ubuntu XenialAndrei Vagin
Signed-off-by: Andrei Vagin <avagin@gmail.com>
2018-10-30travis: lazy-pages: exclude futex test for older kernelsMike Rapoport
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
2018-10-30travis: run test/other/rpc testsAdrian Reber
Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-07-09travis/docker-test: use make to install criuAndrei Vagin
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-07-09test: run a full set of tests in docker containersAndrei Vagin
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-07-09travis: run the crit-recode testAndrei Vagin
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-07-09travis: fix python2 package installationAdrian Reber
For python2/python3 compatibility install additional (python2-future) and different (python2-ipaddress) packages during test. Also switch Fedora tests to explicitly install versioned python packages (python2-* instead of python-*). Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-07-04travis: build criu and run tests on centosAndrei Vagin
It is one of our target platforms. Cc: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Acked-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-05-14test/other: add a test to check the --shell-job optionAndrei Vagin
This test creates a pty pair, creates a test process and sets a slave pty as control terminal for it. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-05-12[v2] criu: add -fprofile-update=atomic for builds with gcovAndrei Vagin
Sometimes we see errors like this: criu/cr-restore.gcda:Merge mismatch for function 106 It proabably means that this gcda file was corrupted. According to the gcc man page, the -fprofile-update=atomic should fix this problem. v2: this options appered in gcc7, so we need to install it. Reported-by: Mr Travis CI Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-05-12test: lazy-pages: exclude maps007Mike Rapoport
With userfaultfd we cannot reliably service process_vm_readv calls. The maps007 test that uses these calls passed previously by sheer luck. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-02-15netns: restore internal veth devicesAndrei Vagin
When we dump a veth device, the kernel reports where a peer device lives and we use this information to restore this veth pair. On restore we set a net ns id for a peer and it is created in the required netns. v2: add more comments Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-12-12test/docker: check a continaer with a read-only file systemAndrei Vagin
Now it's probably one valide use case, because there is no way to commit a container when a container is being checkpointed. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-11-23zdtm: run page-server via rpcAndrei Vagin
v2: typo fix v3: run criu pre-dump via rpc v4: don't use status-fd for rpc Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-22travis/lazy-pages: exclude lazy-thp for older kernelsMike Rapoport
The lazy-thp may fail with older kernels if khugepaded will be fast enough to merge pages in the partially populated areas. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17travis: set umask before a first criu runAndrei Vagin
so that .gcda (coverage data) files are created with read-write permissions for all, otherwise uns tests will not be able to modify these files and code coverage data will not be collected for them. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17travis/lazy-pages: explicitly define the tests to verify lazy-pagesMike Rapoport
Running all the tests with --lazy-pages and --remote-lazy-pages takes too long. Let's run only several representing tests for those cases. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17travis: mount tmpfs into /run for docker containersAndrei Vagin
Otherwise we will see warnings like these ones: Warn (criu/kerndat.c:805): Can't load /run/criu.kdat Warn (criu/net.c:2726): Unable to get a socket network namespace Warn (criu/kerndat.c:844): Can't keep kdat cache on non-tempfs Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17zdtm: report test results in the junit formatAndrei Vagin
We found a good plugin for Jenkins to analize test results, but it can handle only the junit format. v2: work without the junit python module v3: install junit-xml, because zdtm.py is executed with the --report option from jenkins scripts. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17alpine: compile all testsAndrei Vagin
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-17travis: add a job to test on the fedora rawhideAndrei Vagin
This job is optional and it don't affect the status of a whole job. Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-10-05travis: check docker checkpointAndrei Vagin
Install the last version of Docker, start a container and C/R it a few times.
2017-09-17travis: exclude futex and lazy-thp tests from lazy passesMike Rapoport
Both test seem to reproduce issue #357 [1] too frequently which make it really annoying. Temporarily remove them from lazy-pages passes until the issue is fixed. [1] https://github.com/xemul/criu/issues/357 Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-09-16test/travis: update lazy-pages testingMike Rapoport
* drop --keep-going etc from --lazy-pages pass * add --remote-lazy-pages pass Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-09-16travis-test: select tests skipped by lazy-pages pass more carefullyMike Rapoport
Most of zdtm test should pass with --lazy-pages with kernels newer than 4.11. Some test excluded for older kernels surprisingly pass even now, mainly becuase they do not actually stress userfaultfd, which will be fixed in the upcoming commits :) The cmdlinenv00 fails even with kernel 4.11 because of a race between uffd and gup in the case external process reads /proc/<pid>/cmdline before memory containing the command line is populated. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-09-16travis: add lazy-pages runMike Rapoport
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-08-31ppc64le: travis: fixup Ubuntu repositoriesMike Rapoport
The ppc64le docker image has broken /etc/apt/sources.list. A small fixup to it allows running ppc64le tests. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-06-14travis/ia32: Remove libc6.i386 dependencyDmitry Safonov
Not needed anymore for CONFIG_COMPAT. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-06-14travis-tests: set CRIU_PMC_OFF conditionallyKir Kolyshkin
We only needed it for kernel 3.19. Apparently, Ubuntu 14.04.5 comes with a kernel from 16.04 (i.e. 4.4), so we can disable this workaround! Anyway, just in case, let's do it conditionally. While at it, slightly improve the comment. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>