<div dir="ltr">Well, to be clear, this was just me running the same command travis does: make -C scripts/travis $TR_ARCH<div>Should those flags be added to the script that actually runs the tests in that makefile?<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 25, 2017 at 2:34 PM Andrei Vagin <<a href="mailto:avagin@virtuozzo.com">avagin@virtuozzo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jan 25, 2017 at 06:50:32PM +0000, Ross Boucher wrote:<br class="gmail_msg">
> Still fails:<br class="gmail_msg">
><br class="gmail_msg">
> <a href="https://gist.github.com/boucher/220a9e955422d0b35f9cfe1abffbec14" rel="noreferrer" class="gmail_msg" target="_blank">https://gist.github.com/boucher/220a9e955422d0b35f9cfe1abffbec14</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
"""<br class="gmail_msg">
(00.061531) Running network-lock scripts<br class="gmail_msg">
modprobe: can't change directory to '/lib/modules': No such file or directory<br class="gmail_msg">
ip6tables-restore v1.6.0: ip6tables-restore: unable to initialize table 'filter'<br class="gmail_msg">
<br class="gmail_msg">
Error occurred at line: 1<br class="gmail_msg">
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.<br class="gmail_msg">
(00.110236) Error (criu/util.c:670): exited, status=2<br class="gmail_msg">
"""<br class="gmail_msg">
<br class="gmail_msg">
You have to load modules from the host:<br class="gmail_msg">
modprobe xt_mark ip6_tables ip6table_filter nfnetlink nf_conntrack_netlink nf_conntrack<br class="gmail_msg">
<br class="gmail_msg">
or you can use the next command:<br class="gmail_msg">
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-alpine ./test/zdtm.py run -t zdtm/static/env00<br class="gmail_msg">
<br class="gmail_msg">
><br class="gmail_msg">
> On Wed, Jan 25, 2017 at 1:46 PM Andrei Vagin <<a href="mailto:avagin@gmail.com" class="gmail_msg" target="_blank">avagin@gmail.com</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> On Wed, Jan 25, 2017 at 10:39 AM, Ross Boucher <<a href="mailto:rboucher@gmail.com" class="gmail_msg" target="_blank">rboucher@gmail.com</a>> wrote:<br class="gmail_msg">
> > Should I be applying those patches to your alpine branch or to master? I<br class="gmail_msg">
> see<br class="gmail_msg">
> > they are already in your branch (the one built by travis, right?). When I<br class="gmail_msg">
> > build your branch, it compiles alright but the tests fail:<br class="gmail_msg">
><br class="gmail_msg">
> There was an extra commit. Now I removed it and you can use the alpine<br class="gmail_msg">
> branch from my repo.<br class="gmail_msg">
><br class="gmail_msg">
> Thanks,<br class="gmail_msg">
> Andrei<br class="gmail_msg">
><br class="gmail_msg">
> ><br class="gmail_msg">
> > ========================== Run zdtm/static/env00 in h<br class="gmail_msg">
> > ==========================<br class="gmail_msg">
> > Start test<br class="gmail_msg">
> > ./env00 --pidfile=env00.pid --outfile=env00.out --envname=ENV_00_TEST<br class="gmail_msg">
> > Run criu dump<br class="gmail_msg">
> > =[log]=> dump/zdtm/static/env00/32/1/dump.log<br class="gmail_msg">
> > ------------------------ grep Error ------------------------<br class="gmail_msg">
> > (00.044957) Error (criu/util.c:670): exited, status=3<br class="gmail_msg">
> > (00.057244) Error (compel/src/lib/infect-rpc.c:72): Command 66 for daemon<br class="gmail_msg">
> > failed with -1<br class="gmail_msg">
> > (00.057276) Error (criu/mem.c:464): Can't dump page with parasite<br class="gmail_msg">
> > (00.057702) Error (criu/cr-dump.c:1673): Dumping FAILED.<br class="gmail_msg">
> > ------------------------ ERROR OVER ------------------------<br class="gmail_msg">
> > ################### Test zdtm/static/env00 FAIL at CRIU dump<br class="gmail_msg">
> > ###################<br class="gmail_msg">
> > Send the 9 signal to 32<br class="gmail_msg">
> > ##################################### FAIL<br class="gmail_msg">
> > #####################################<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > On Wed, Jan 25, 2017 at 2:12 AM Andrei Vagin <<a href="mailto:avagin@virtuozzo.com" class="gmail_msg" target="_blank">avagin@virtuozzo.com</a>><br class="gmail_msg">
> wrote:<br class="gmail_msg">
> >><br class="gmail_msg">
> >> On Tue, Jan 24, 2017 at 07:37:50PM -0800, Andrei Vagin wrote:<br class="gmail_msg">
> >> > On Tue, Jan 24, 2017 at 11:17:28PM +0000, Ross Boucher wrote:<br class="gmail_msg">
> >> > > It seems that this function probably isn't implemented in musl:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > <a href="https://git.musl-libc.org/cgit/musl/tree/src/sched/" rel="noreferrer" class="gmail_msg" target="_blank">https://git.musl-libc.org/cgit/musl/tree/src/sched/</a><br class="gmail_msg">
> sched_getscheduler.c<br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > Uhuuuu. musl is so lightweight and fast!!!!!<br class="gmail_msg">
> >> > <a href="https://git.musl-libc.org/cgit/musl/tree/src/sched/sched_getparam.c" rel="noreferrer" class="gmail_msg" target="_blank">https://git.musl-libc.org/cgit/musl/tree/src/sched/sched_getparam.c</a><br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > Ross, could you try out this patch:<br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > <a href="https://github.com/avagin/criu/commit/" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/avagin/criu/commit/</a><br class="gmail_msg">
> 265e9fc138f98b742a68b6991225f28d3c99f9b5<br class="gmail_msg">
> >><br class="gmail_msg">
> >> And you need one more patch:<br class="gmail_msg">
> >><br class="gmail_msg">
> >> <a href="https://github.com/avagin/criu/commit/" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/avagin/criu/commit/</a><br class="gmail_msg">
> ff8777b3628eae6b7cc98c7b925cf88508dd3aa8<br class="gmail_msg">
> >><br class="gmail_msg">
> >> With these two patches static/env00 passes on Alpine:<br class="gmail_msg">
> >><br class="gmail_msg">
> >> <a href="https://travis-ci.org/avagin/criu/builds/195081973" rel="noreferrer" class="gmail_msg" target="_blank">https://travis-ci.org/avagin/criu/builds/195081973</a><br class="gmail_msg">
> >><br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > Thanks,<br class="gmail_msg">
> >> > Andrei<br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Is there any hope for a workaround?<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > On Tue, Jan 24, 2017 at 6:09 PM Ross Boucher <<a href="mailto:rboucher@gmail.com" class="gmail_msg" target="_blank">rboucher@gmail.com</a>><br class="gmail_msg">
> >> > > wrote:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Installing ip6tables got a bit further, but now it seems to fail<br class="gmail_msg">
> >> > > possibly<br class="gmail_msg">
> >> > > on sched_getscheduler:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > (00.032508) Error (criu/cr-dump.c:134): Can't get sched policy<br class="gmail_msg">
> for<br class="gmail_msg">
> >> > > 2337:<br class="gmail_msg">
> >> > > Function not implemented<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Full log:<br class="gmail_msg">
> >> > > <a href="https://gist.github.com/boucher/5c8edcbf0c7f9d9e39ed1d74c09440e5" rel="noreferrer" class="gmail_msg" target="_blank">https://gist.github.com/boucher/5c8edcbf0c7f9d9e39ed1d74c09440e5</a><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > On Tue, Jan 24, 2017 at 5:53 PM Ross Boucher <<a href="mailto:rboucher@gmail.com" class="gmail_msg" target="_blank">rboucher@gmail.com</a><br class="gmail_msg">
> ><br class="gmail_msg">
> >> > > wrote:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Hey everyone,<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Since checkpoint/restore has shipped in experimental mode<br class="gmail_msg">
> for<br class="gmail_msg">
> >> > > Docker, I<br class="gmail_msg">
> >> > > thought I'd try to get it working with Docker for Mac. I<br class="gmail_msg">
> think<br class="gmail_msg">
> >> > > this<br class="gmail_msg">
> >> > > should be possible, since it seems building for Alpine linux<br class="gmail_msg">
> >> > > has<br class="gmail_msg">
> >> > > already been taken care of, but I haven't gotten it working<br class="gmail_msg">
> >> > > just yet.<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > What I have done is install CRIU 2.9, from the apk testing<br class="gmail_msg">
> >> > > repository<br class="gmail_msg">
> >> > > for alpine linux, in the d4m vm[1], then run a simple<br class="gmail_msg">
> >> > > checkpoint on a<br class="gmail_msg">
> >> > > busybox container. Here's the dump log:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > <a href="https://gist.github.com/boucher/2ac2de1d80ab59bce518d108ec8d0371" rel="noreferrer" class="gmail_msg" target="_blank">https://gist.github.com/boucher/2ac2de1d80ab59bce518d108ec8d0371</a><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Seems that some network script isn't working, but I'm not<br class="gmail_msg">
> sure<br class="gmail_msg">
> >> > > if the<br class="gmail_msg">
> >> > > log is telling me that its an RPC script.<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > Thanis,<br class="gmail_msg">
> >> > > Ross<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > [1]: You can access the vm with screen:<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > > screen ~/Library/Containers/com.docker.docker/Data/<br class="gmail_msg">
> >> > > com.docker.driver.amd64-linux/tty<br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> > ><br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > > _______________________________________________<br class="gmail_msg">
> >> > > CRIU mailing list<br class="gmail_msg">
> >> > > <a href="mailto:CRIU@openvz.org" class="gmail_msg" target="_blank">CRIU@openvz.org</a><br class="gmail_msg">
> >> > > <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br class="gmail_msg">
> >> ><br class="gmail_msg">
> >> > _______________________________________________<br class="gmail_msg">
> >> > CRIU mailing list<br class="gmail_msg">
> >> > <a href="mailto:CRIU@openvz.org" class="gmail_msg" target="_blank">CRIU@openvz.org</a><br class="gmail_msg">
> >> > <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > _______________________________________________<br class="gmail_msg">
> > CRIU mailing list<br class="gmail_msg">
> > <a href="mailto:CRIU@openvz.org" class="gmail_msg" target="_blank">CRIU@openvz.org</a><br class="gmail_msg">
> > <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br class="gmail_msg">
> ><br class="gmail_msg">
><br class="gmail_msg">
</blockquote></div>