[CRIU] p. haul pycriu problem
Nikita Spiridonov
nspiridonov at virtuozzo.com
Wed Apr 20 06:59:43 PDT 2016
On Wed, 2016-04-20 at 13:08 +0200, Sharmin Sultana Sheuly wrote:
> Hi
>
> Thanks.
>
> Actually there exists a directory: /var/lib/docker/0.0/containers
> where I containers are created. the only thing missing is
> that /0.0, . I dont know how to change
> phaul.p_haul_docket.docker_dir .
>
You can create /var/lib/docker/containers as symlink to existing
location, (e.g. something like "ln
-s /var/lib/docker/0.0/containers /var/lib/docker/containers"), but I
afraid there will be further problems with docker module, lets wait for
Hui response.
> yes I agree with you.
>
> +sharmin
>
>
> On Wed, Apr 20, 2016 at 11:50 AM, Nikita Spiridonov
> <nspiridonov at virtuozzo.com> wrote:
> On Wed, 2016-04-20 at 09:39 +0200, Sharmin Sultana Sheuly
> wrote:
> > Hi
> >
> > to solve pycriu module problem I did just like other
> environmental
> > variable (I changed the path then you told) in the terminal:
> export
> >
> PYTHONPATH=/home/sharmin/criu/lib/usr/local/lib/python2.7/dist-packages/
> >
> > the pycriu problem is no more visible.
> >
> > Then It was showing error : No module named
> > google.protobuf.internal . I downloaded protobuf from
> >
> >
> > https://pypi.python.org/pypi/protobuf/3.0.0b2.post2
> >
> > After extracting I ran python setup.py install. the error
> is no more
> > there.
> >
> > However now it is showing the error in the source host:
> >
> > root at sharmin-HP-15-Notebook-PC:~/p.haul# ./p.haul-wrap
> client
> > 192.168.0.9 docker 89c01ef15fba
> > Establish connection...
> > Exec p.haul: ./p.haul docker 89c01ef15fba --to 192.168.0.9
> --fdrpc 3
> > --fdmem 4
> > 09:25:26.376: Starting p.haul
> > 09:25:26.376: Use existing connections, fdrpc=3 fdmem=4
> fdfs=None
> > 09:25:26.417: Setting up local
> > 09:25:26.417: [Errno 2] No such file or directory:
> > '/var/lib/docker/containers'
> > Traceback (most recent call last):
> > File "./p.haul", line 45, in <module>
> > worker = phaul.iters.phaul_iter_worker(ph_type,
> args.mode,
> > connection)
> > File "/home/sharmin/p.haul/phaul/iters.py", line 58, in
> __init__
> > self.htype = htype.get_src(p_type)
> > File "/home/sharmin/p.haul/phaul/htype.py", line 35, in
> get_src
> > ht.init_src()
> > File "/home/sharmin/p.haul/phaul/p_haul_docker.py", line
> 36, in
> > init_src
> > self.full_ctid = self.get_full_ctid()
> > File "/home/sharmin/p.haul/phaul/p_haul_docker.py", line
> 83, in
> > get_full_ctid
> > dir_name_list = os.listdir(os.path.join(docker_dir,
> "containers"))
> > OSError: [Errno 2] No such file or directory:
> > '/var/lib/docker/containers'
> >
> >
> >
> > Where is the problem in this case?
> >
>
>
> As far as I can see, phaul scan /var/lib/docker/containers
> directory
> trying to find out full name of container. That directory is
> missing in
> your case.
>
> As temporary workaround you can
> create /var/lib/docker/containers
> directory and fill it with required data (it seems you can
> just move you
> container there but I am not familiar with docker and can't
> say for
> sure) or change that path in you local phaul repository
> (phaul.p_haul_docket.docker_dir) appropriately.
>
> Honestly saying, I have no information about docker module
> current
> status and not sure that somebody use it at the present
> moment.
>
> >
> > +sharmin
> >
> >
> >
> >
> > On Wed, Apr 20, 2016 at 6:58 AM, Pavel Emelyanov
> <xemul at virtuozzo.com>
> > wrote:
> > On 04/19/2016 06:11 PM, Cyrill Gorcunov wrote:
> > > On Tue, Apr 19, 2016 at 06:06:57PM +0300, Pavel
> Emelyanov
> > wrote:
> > >> Works, thank you.
> > >>
> > >> Now my question is -- how to uninstall it back? %
> )
> > >
> > > :-) Use rpm. Actually we can implement own
> uninstall method,
> > > but this would require that one who has been
> installing
> > > it must remember the PREFIX and such he passed on
> install
> > > procedure.
> >
> >
> > Please :)
> >
> >
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
>
>
>
>
>
More information about the CRIU
mailing list