I have just managed to reproduce it, triggering 'lctl dk' on both lustre client/aka NFS server and MDS server directly after the permission denied message, both files are attached, so I'm hoping there might be some information in the dumps.
This was the error:
File "/home/bnh65367/bin/LU-6528-reproducer1.sh", line 15, in <module>
sub_dir = tempfile.mkdtemp(prefix='sub_', dir=top_dir)
File "/usr/lib64/python2.6/tempfile.py", line 318, in mkdtemp
_os.mkdir(file, 0700)
OSError: [Errno 13] Permission denied: '/dls/p45/data/2015/cm12185-2/tmp/frederik-test/top_39JlTW/sub_ju6qhK'
Yes, I've have checked and this is the case.
Thanks,
Frederik