mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 00:42:13 +00:00
c/r: add more logging when restore fails
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
e9195050b4
commit
f8a41688ec
@ -525,6 +525,7 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
|
|||||||
|
|
||||||
if (WIFEXITED(status)) {
|
if (WIFEXITED(status)) {
|
||||||
if (WEXITSTATUS(status)) {
|
if (WEXITSTATUS(status)) {
|
||||||
|
ERROR("criu process exited %d\n", WEXITSTATUS(status));
|
||||||
goto out_fini_handler;
|
goto out_fini_handler;
|
||||||
} else {
|
} else {
|
||||||
int ret;
|
int ret;
|
||||||
@ -544,9 +545,11 @@ void do_restore(struct lxc_container *c, int pipe, char *directory, bool verbose
|
|||||||
goto out_fini_handler;
|
goto out_fini_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lxc_set_state(c->name, handler, RUNNING))
|
if (lxc_set_state(c->name, handler, RUNNING)) {
|
||||||
|
ERROR("error setting running state after restore");
|
||||||
goto out_fini_handler;
|
goto out_fini_handler;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ERROR("CRIU was killed with signal %d\n", WTERMSIG(status));
|
ERROR("CRIU was killed with signal %d\n", WTERMSIG(status));
|
||||||
goto out_fini_handler;
|
goto out_fini_handler;
|
||||||
|
Loading…
Reference in New Issue
Block a user