[libvirt-users] autpfs + nfs stuck on stat() inside libvirt lxc 1.2.18

Hi all. Has someone success story with using autofs + nfs inside libvirt LXC container ? In my case nfs client and server in lxc work just fine, but with autofs hang on system call state(). I use CE7_64 on nodes and inside container with libvirt 1.2.18 May be I must set some of capabilities in <feature> (http://man7.org/linux/man-pages/man7/capabilities.7.html) ? I try only CAP_SYS_ADMIN and it's no solve problem. b.r. Maxim Kozin

Additioanl info. after start automount inside LXC, in /etc/mtab added string: /etc/auto.nfs /host autofs rw,relatime,fd=6,pgrp=679,timeout=10,minproto=5,maxproto=5,indirect 0 0 And autmount hang on lstat('/host/SOMETHING') If comment lstat() in code, automount would try make directory inside /host/ and mkdir in such case return -1: 126 int ret = mkdir(path, mode); (gdb) p path $3 = 0x7ffff7fc5250 "/host/vortex" (gdb) p mode $4 = 365 (gdb) n 127 (void) umask(mask); (gdb) p ret $5 = -1

https://bugs.centos.org/view.php?id=7455 On 10/8/15, mxs kolo <kolomaxes@gmail.com> wrote:
Additioanl info. after start automount inside LXC, in /etc/mtab added string: /etc/auto.nfs /host autofs rw,relatime,fd=6,pgrp=679,timeout=10,minproto=5,maxproto=5,indirect 0 0 And autmount hang on lstat('/host/SOMETHING')
If comment lstat() in code, automount would try make directory inside /host/ and mkdir in such case return -1: 126 int ret = mkdir(path, mode); (gdb) p path $3 = 0x7ffff7fc5250 "/host/vortex" (gdb) p mode $4 = 365 (gdb) n 127 (void) umask(mask); (gdb) p ret $5 = -1
participants (1)
-
mxs kolo