[CRIU] Fwd: CRIU » CRIU-iter » criu-dev - Build # 1209 - Failure! (origin/criu-dev)

Andrei Vagin avagin at virtuozzo.com
Mon Oct 24 12:32:31 PDT 2016


On Mon, Oct 24, 2016 at 06:18:56PM +0300, Pavel Emelyanov wrote:
> On 10/24/2016 05:10 PM, Tycho Andersen wrote:
> > On Mon, Oct 24, 2016 at 02:52:38PM +0300, Pavel Emelyanov wrote:
> >> Hi, Tycho.
> >>
> >> The macvlan test fails in uns flavor. Would you tale a look, please?
> > 
> > Hmm. Is it possible to get the output of the hook somehow? Seems like
> > that's what really failed.
> 
> Well, it ... sometimes passes actually :\
> 
> > One thing I thought of is that using pidof to get the pid of the test
> > probably isn't very robust, since there might be more than one test
> > running at the same time. But it would be good to know what really
> > failed :)
> 
> Andrey, would you suggest something?

17386 pts/0    T      0:00              |               \_ make --no-print-directory -C zdtm/static macvlan.pid
17400 pts/0    T      0:00              |               |   \_ ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
17401 ?        Ss     0:00              |               |       \_ ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
17403 ?        S      0:00              |               |           \_ ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
17404 ?        Ss     0:00              |               |               \_ ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
17387 pts/0    T      0:00              |               \_ /bin/bash zdtm/static/macvlan.hook --post-start
17388 pts/0    T      0:00              |                   \_ sleep 1000

When you call pidof there is four processes with the macvlan name
and the first one is running in the current namespaces, it will
exit when the test calls test_daemon().

I think you need to write a pid in a file from test instead of using "pidof"

> 
> > Tycho
> > 
> >> CRIU » CRIU-iter » criu-dev - Build # 1209 - Failure:
> >>
> >> Check console output at https://ci.openvz.org/job/CRIU/job/CRIU-iter/branch/criu-dev/1209/ to view the results.
> >>
> >>
> >> ======================== Run zdtm/static/macvlan in ns =========================
> >> Start test
> >> Test is SUID
> >> ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
> >> Cannot find device "zdtmmvlan0"
> >> Cannot find device "zdtmmvlan0"
> >> Cannot find device "zdtmmvlan0"
> >> Cannot find device "zdtmmvlan0"
> >> Running zdtm/static/macvlan.hook(--post-start)
> >> Run criu dump
> >> Running zdtm/static/macvlan.hook(--pre-restore)
> >> Run criu restore
> >> Run criu dump
> >> Running zdtm/static/macvlan.hook(--pre-restore)
> >> Run criu restore
> >> Run criu dump
> >> Running zdtm/static/macvlan.hook(--pre-restore)
> >> Run criu restore
> >> Send the 15 signal to  180
> >> Wait for zdtm/static/macvlan(180) to die for 0.100000
> >> Wait for zdtm/static/macvlan(180) to die for 0.200000
> >> Running zdtm/static/macvlan.hook(--clean)
> >> Removing dump/zdtm/static/macvlan/70
> >> ======================== Test zdtm/static/macvlan PASS =========================
> >>
> >> ======================== Run zdtm/static/macvlan in uns ========================
> >> Start test
> >> Test is SUID
> >> ./macvlan --pidfile=macvlan.pid --outfile=macvlan.out
> >> The test failed (0, 1)
> >> Makefile:300: recipe for target 'macvlan.pid' failed
> >> make: *** [macvlan.pid] Error 1
> >> Running zdtm/static/macvlan.hook(--post-start)
> >> #################### Test zdtm/static/macvlan FAIL at start ####################
> >> Test output: ================================
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> Device "zdtmmvlan0" does not exist.
> >> 11:20:21.748:     4: FAIL: macvlan.c:43: failed to inject macvlan device
> >>  (errno = 2 (No such file or directory))
> >> 11:20:21.752:     3: ERR: test.c:212: Test exited unexpectedly with code 1
> >>
> >>  <<< ================================
> >>
> >>
> >>
> > 
> > 
> > .
> > 
> 


More information about the CRIU mailing list