[Users] Need help on p.haul.

Dmitry Mishin dim at virtuozzo.com
Thu Oct 13 09:03:20 PDT 2016


Hello,

There could be more useful infomartion in logs at /var/local/p.haul-fs/rst-FUnCI2-16.09.28-05.04

Please take a look there.

Thank you,
Dmitry.

From: <users-bounces at openvz.org<mailto:users-bounces at openvz.org>> on behalf of Shyh Jer Huarng <shyh.jer.huarng at huawei.com<mailto:shyh.jer.huarng at huawei.com>>
Reply-To: OpenVZ users <users at openvz.org<mailto:users at openvz.org>>
Date: Thursday 29 September 2016 00:05
To: "users at openvz.org<mailto:users at openvz.org>" <users at openvz.org<mailto:users at openvz.org>>
Cc: "John Wei (RDCC)" <john.w at huawei.com<mailto:john.w at huawei.com>>, Bo Chen <BoChen.Chen at huawei.com<mailto:BoChen.Chen at huawei.com>>
Subject: [Users] Need help on p.haul.

Hi!

I have downloaded the latest p.haul from https://github.com/xemul/p.haul and have a first tried and need some helps.

My steps are


1.       wrote a simple program

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main() {
        int i=0;
        while(1) {
                printf("count %d (%d)\n", i++, getpid());
                fflush(stdout);
                sleep(1);
        }
}

And compile to an executable file 'aa'.


2.       Setup a machine A with CRIU 2.0

3.       Setup a machine B same as machine A

4.       Run 'criu service -daemon' on both machine A and B

5.       Run 'p.haul-wrap service' on machine A

6.       Run "setsid ./aa < /dev/null &> /dev/null &" on machine B

7.       Run "p.hau-wrap client <machine A IP> pid <pid of aa>

On the machine A, I got the log below. It looks like the process cannot be restored on the machine A.

Exec p.haul-service: ./p.haul-service --fdrpc 5 --fdmem 6
05:04:10.185: 28690:
05:04:10.186: 28690:
05:04:10.186: 28690:
05:04:10.186: 28690: Starting p.haul service
05:04:10.186: 28690: Use existing connections, fdrpc=5 fdmem=6 fdfs=None
05:04:10.189: 28690: Connected
05:04:10.193: 28690: Setting up service side ('pid', '28587')
05:04:10.194: 28690: Passing (ctl:11, data:7) pair to CRIU
05:04:10.209: 28690: Started images server
05:04:10.211: 28690: Waiting for images to unpack
05:04:10.214: 28690: Checking cpuinfo
05:04:10.216: 28690:    `- True
05:04:10.222: 28690: Checking criu version
05:04:10.228: 28690:    `- 2.0 -> 2.0
05:04:10.228: 28690:    `- True
05:04:10.232: 28690:    Making directory /var/local/p.haul-fs/rst-FUnCI2-16.09.28-05.04/img/1
05:04:10.233: 28690: Starting page server for iter 1
05:04:10.233: 28690:    Sending criu rpc req
05:04:10.235: 28690:    Page server started at 28697
05:04:10.451: 28690:    Making directory /var/local/p.haul-fs/rst-FUnCI2-16.09.28-05.04/img/2
05:04:10.451: 28690: Starting page server for iter 2
05:04:10.452: 28690:    Sending criu rpc req
05:04:10.454: 28690:    Page server started at 28699
05:04:10.674: 28690: Started images server
05:04:10.680: 28690: Waiting for images to unpack
05:04:10.884: 28690: Restoring from images
05:04:10.887: 28690:            Notify (pre-restore.0)
05:04:10.914: 28690:            Notify (setup-namespaces.28587)
05:04:10.931: 28690:            Notify (post-setup-namespaces.0)
Traceback (most recent call last):
  File "/data/p.hual/p.haul/phaul/xem_rpc.py", line 42, in work
    res = getattr(self._master, "rpc_" + data[1])(*data[2])
  File "/data/p.hual/p.haul/phaul/service.py", line 118, in rpc_restore_from_images
    self.htype.final_restore(self.img, self.criu_connection)
  File "/data/p.hual/p.haul/phaul/p_haul_pid.py", line 86, in final_restore
    criu_cr.criu_restore(self, img, connection)
  File "/data/p.hual/p.haul/phaul/criu_cr.py", line 73, in criu_restore
    raise Exception("Restore failed")
Exception: Restore failed
05:04:10.980: 28690: Disconnected
05:04:10.980: 28690: Closing images
05:04:10.980: 28690: Keeping images
05:04:10.981: 28690: Images are kept in /var/local/p.haul-fs/rst-FUnCI2-16.09.28-05.04

Any help will be appreciated.

Thank you very much.

Ted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20161013/34c98cc0/attachment-0001.html>


More information about the Users mailing list