- 16 Dec, 2015 11 commits
-
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
The thread_bomb test was rewrited and ZDTM_THREAD_BOMB should be equal 5 now. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
It works for tests which are executed in a separate pidns Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
It's an external one and it's already created and we don't have proper shared mount. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
We don't need to remount a mount as private, when a source mount and a new mount has the same master_id and shared_id Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
The value of loginuid cannot be changed inside container, with the exception if it was not set yet. This value is inherited on fork() from parent. So, to restore original loginuid values for all tasks: - unset the container parent loginuid - all children will have this value unsetted - on child restore set value from dump See http://lxr.free-electrons.com/source/kernel/audit.c#L635 https://jira.sw.ru/browse/PSBM-41993Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
https://jira.sw.ru/browse/PSBM-41993Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
https://jira.sw.ru/browse/PSBM-41993Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Dec, 2015 5 commits
-
-
Cyrill Gorcunov authored
Standalone criu target should not be used here because it doesn't carry all prerequisites needed. Instead simply use @all. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When running test in ns/uns flavor zdtm.py builds a temp root in test/ directory. The new action allows to remove all this stuff automatically. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Rodrigo Bruno authored
Signed-off-by: Rodrigo Bruno <rbruno at gsd.inesc-id.pt> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Rodrigo Bruno authored
This will be required for page-cache and page-proxy set. Signed-off-by: Rodrigo Bruno <rbruno at gsd.inesc-id.pt> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 14 Dec, 2015 3 commits
-
-
Andrew Vagin authored
A freezer cgroup can contain tasks which will be not dumped, criu unfreezes the group, so we need to freeze all extra task with ptrace like we do for target tasks. Currently we attache and send an interrupt signals to these tasks, but we don't call waitpid() for them, so then waitpid(-1, ...) returns these tasks where we don't expect to see them. v2: execute freezer_detach() only if opts.freeze_cgroup is set calculate extra tasks in a freezer cgroup correctly v3: s/frozen_processes/processes_to_wait/ Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsburskiy authored
It will be used to mount AutoFS, because context creation is required in addition to actual mount operation. Signed-off-by:
Stanislav Kinsburskiy <skinsbursky@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsburskiy authored
This patch introduces three helpers: 1) pstree_item_by_real() - search for pstree item by real pid. 2) pstree_item_by_virt() - search for pstree item by virtual pid. 3) pid_to_virt() - return virtual pis by real one. Note: pstree_item_by_virt() and pid_to_virt() will be used to migrate AutoFS. Signed-off-by:
Stanislav Kinsburskiy <skinsbursky@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Dec, 2015 15 commits
-
-
Pavel Emelyanov authored
The head test is zdtm/lib/group, so it is impossible to run several instances of it in parallel Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This is to make groups test start in uns flavors Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When run in groups ip-freebind and ip-freebind-false fail to start simultaneously. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Dmitry Safonov authored
tty_find_restoring_task will prepare control terminal (by tcsetpgrp) only if tty is master. By a chance it's possible to pick slave terminal as a control, which will refrain restoring control terminal. https://jira.sw.ru/browse/PSBM-42093Signed-off-by:
Dmitry Safonov <dsafonov@odin.com> Reviewed-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Reported-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Running crit tool 4 times per test (decode, encode, decode --pretty and encode back again) is way too slow. The majority of time, as it turned out, goes on python load and arguments parsing. The en- and de-coding works pretty fast. So doing re-code logic in one python script for ALL images is way way faster -- ~1 hour vs ~1 minute on my box. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There are loads and dumps method in pycriu.images that work with strings, instead of open()-ed files. For simplicity strings are turned into streams with io.BytesIO and the files are then pushed into regular load/dump methods. The problem is that array.array object doesn't work with io object in .fromfile/.tofile methods, so we have to read/write the data from them explicitly and use .fromstring/.tostring for arrays. With this the crit test finally passes :D Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Typical output | { | "magic": "IPCNS_MSG", | "entries": [ | { | "desc": { | "key": 2181112128, | "uid": 18943, | "gid": 58467, | "cuid": 18943, | "cgid": 58467, | "mode": 438, | "id": 0 | }, | "qbytes": 16384, | "qnum": 2, | "extra": [ | { | "mtype": 1, | "msize": 15 | }, | "VGVzdCBzeXN2NSBtc2cA\n", | { | "mtype": 26538, | "msize": 27 | }, | "WWV0IGFub3RoZXIgdGVzdCBzeXN2NSBtc2cA\n" | ] | } | ] | } Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- need encoder Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- need to add encoding method - also need to do the same for ipc queues and shmem Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Dec, 2015 6 commits
-
-
Pavel Emelyanov authored
When debugging it's useful to stop zdtm.py at certain points and check what's going on out there. For this the --sbs (step-by-step) option is introduced. It will make zdtm.py stop and wait for user keypress before dump, before restore and after restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Generated files are often analyzed after test, so it's handy to have their full names on the screen at once. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Right now zdtm spawns test into a pseudo-container and redirects its output in a temp file. This is done not to mix outputs of tests, running in parallel, with each other. But if we run tests one by one or there's only one test in the list we can safely print the output right on the screen. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Andrey Vagin authored
In [3]: a Out[3]: {1, 2, 3} In [4]: a.remove(5) --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-4-af76ca25878a> in <module>() ----> 1 a.remove(5) KeyError: 5 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Currently we wait when a namespace will be restored to get its root. We need to open a namespace root to open a file to restore a memory mapping. A process restores mappings and only then forks children. So we can have a situation, when we need to open a file from a namespace, which will be "restored" by one of our children. The root task restores all mount namespaces and opens a file descriptor for each of them. In this patch we open root for each mntns in the root task. If we neeed to get root of a namespace which isn't populated, we can get it from the root task. After the CR_STATE_FORKING stage, the root task closes all namespace descriptors ane we know that all namespaces are populated at this moment. v2: don't close root_fd for root ns, because it was not opened Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-