Hi,
I am having problems when I use the template module over a ZFS filesystem (in NAS4Free) with NFS mounted with a selinux context for Apache.
Here is all the information:
https://gist.github.com/Pablohn26/8434558
On my research, I guess the problem is the next operation,[https://github.com/ansible/ansible/blob/ca112f64a68afef63669b5145ae92d11136ed39d/lib/ansible/module_utils/basic.py#L364](https://github.com/ansible/ansible/blob/ca112f64a68afef63669b5145ae92d11136ed39d/lib/ansible/module_utils/basic.py#L364)
which is dropping the next error: [Errno 95] Operation not supported
Maybe there is a problem with SELinux and ZFS, but this is caused because the cur_context != new_context, as you can see in the debug [https://gist.github.com/Pablohn26/8434558#file-invalid-selinux-context-L33](https://gist.github.com/Pablohn26/8434558#file-invalid-selinux-context-L33)
That is, the problem is when ansible tries to get the context (not sure if it gets that from the command ).
I do not know why the "input_was" and "new_context" in the debug output have a "default_t" selinux type when I have passed the context that I want as a parameter and selinux is disabled in the host running ansible.
Maybe the variables try to be self explanatory, but I do not get the difference between "cur_context" and "secontext".
Is it a bug? or I did something wrong.
Cheers
Small favor – when posting to the list, please include most of the problem when posting to the actual list.
This saves clicking over to the gist, but also makes Google Search work.
Right now I’m having to toggle this between two seperate tabs and the gist viewer doesn’t wrap lines, nor does this email.
Sorry, last time I had to put in a gist and I supposed it was the way to do it.
Well, I start again:
I am having problems when I use the template module over a ZFS filesystem (in NAS4Free) with NFS mounted with a selinux context for Apache.
Sorry again for the format. I wrote that inside https://groups.google.com/forum/#!topic/ansible-project/ZvnOAqYvOVk and there characters are not so different. I have just read it on Gmail and the change of font sucks.
Not a problem, gist can be good for when there are multiple files, I just have a limited time to read the lists so it’s hard to find a few extra minutes to mentally merge two separate pages of context together
I’ll leave someone else to dig into the SELinux/ZFS crossover question for now.
If you don’t find any resolution, I’d probably recommend filing a bug ticket also.
Hi again,
I have opened a bug ticket here https://github.com/ansible/ansible/issues/5632
We continue there
Thanks