Public bug reported:

I am trying to run a command inside docker which uses NFS filer to
execute command and then exit.


Below command 1 used to create a docker and command 2 to check if the file 
exists where it hangs until we kill the process.

1) docker run -d -it --name --mount 
type=bind,source=/prj/qct,target=/prj/qct,readonly ubuntu
2) command to check if file exists [ -f /prj/qct/path/path2 ] 

 dpkg -l|grep -i nfs
ii  liblockfile1:amd64                    1.09-6ubuntu1                         
     amd64        NFS-safe locking library
ii  libnfsidmap2:amd64                    0.25-5                                
     amd64        NFS idmapping library
ii  nfs-common                            1:1.2.8-9ubuntu12.2                   
     amd64        NFS support files common to client and server


:~# tail -f /var/log/syslog
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_fail:499: 
AUTOFS_DEV_IOCTL_FAIL: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_fail:499: 
AUTOFS_DEV_IOCTL_FAIL: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: do_mount_direct: direct 
trigger not valid or already mounted /prj/qct/asw/SABin
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_ready:444: 
AUTOFS_DEV_IOCTL_READY: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_fail:499: 
AUTOFS_DEV_IOCTL_FAIL: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: do_mount_direct: direct 
trigger not valid or already mounted /prj/qct/asw/SABin
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_ready:444: 
AUTOFS_DEV_IOCTL_READY: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_fail:499: 
AUTOFS_DEV_IOCTL_FAIL: error Bad file descriptor
Nov 15 21:31:58 hydpwlabldtst01 automount[2247]: dev_ioctl_send_fail:499: 
AUTOFS_DEV_IOCTL_FAIL: error Bad file descriptor
Nov 15 21:35:01 hydpwlabldtst01 CRON[12091]: (root) CMD (command -v debian-sa1 
> /dev/null && debian-sa1 1 1)
Nov 15 21:39:22 hydpwlabldtst01 gv-passwd-subsystem: Incorrect principal: 
Running kdestroy
Nov 15 21:39:22 hydpwlabldtst01 gv-passwd-subsystem: Incorrect principal: 
Running kdestroy


The above scenario works fine if I do an ls -l /prj/qct/path/path2 and
run the above two commands.

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: nfshung

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1852769

Title:
  nfs filer hungs while binding nfs filer to docker at  first run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1852769/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to