{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3602","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3602/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3602/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3602/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3602","id":153326848,"number":3602,"title":"ansible 2.0.1 not gathering facts on mounted nfs filesystems on remote RHEL 6.7 hosts","user":{"login":"ryanjkirk","id":143444,"avatar_url":"https://avatars.githubusercontent.com/u/143444?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanjkirk","html_url":"https://github.com/ryanjkirk","followers_url":"https://api.github.com/users/ryanjkirk/followers","following_url":"https://api.github.com/users/ryanjkirk/following{/other_user}","gists_url":"https://api.github.com/users/ryanjkirk/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjkirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjkirk/subscriptions","organizations_url":"https://api.github.com/users/ryanjkirk/orgs","repos_url":"https://api.github.com/users/ryanjkirk/repos","events_url":"https://api.github.com/users/ryanjkirk/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjkirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-05T21:09:35Z","updated_at":"2016-05-05T21:09:35Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nsetup (gather_facts)\r\n\r\n##### ANSIBLE VERSION\r\n    [rkirk@ansible ~]$ ansible --version\r\n    ansible 2.0.1.0\r\n      config file = /home/rkirk/ansible.cfg\r\n      configured module search path = Default w/o overrides\r\n\r\n##### CONFIGURATION\r\nSaving fact_cache to local jsonfile for inspection.\r\n\r\n##### OS / ENVIRONMENT\r\nRHEL 6.7 for both source and target\r\n\r\n##### SUMMARY\r\nansible is not saving NFS mounts in ansible_mounts for RHEL 6 servers. The same ansible *is* saving NFS mounts in ansible_mounts for remote Solaris 10 servers.\r\n\r\n##### STEPS TO REPRODUCE\r\nThe remote host has an nfs filesystem mounted:\r\n\r\n    [rkirk@rhel6host ~]$ grep nfs /proc/mounts \r\n    sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0\r\n    nfsserver:/nfs01/ /data01 nfs4     rw,nosuid,nodev,noexec,relatime,vers=4,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.125.23.107,minorversion=0,local_lock=none,addr=10.125.11.35 0 0\r\n\r\n    [rkirk@rhel6host ~]$ cat /etc/redhat-release; uname -a\r\n    Red Hat Enterprise Linux Server release 6.7 (Santiago)\r\n    Linux rhel6host 2.6.32-573.3.1.el6.x86_64 #1 SMP Mon Aug 10 09:44:54 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nBut the fact cache does not show it:\r\n\r\n    [rkirk@ansible ~]$ python -m json.tool < fact_cache/rhel6host | egrep \"nfs|mount\"\r\n        \"ansible_mounts\": [\r\n                \"mount\": \"/\", \r\n                \"mount\": \"/boot\", \r\n                \"mount\": \"/home\", \r\n                \"mount\": \"/opt\", \r\n                \"mount\": \"/tmp\", \r\n                \"mount\": \"/var\", \r\n                \"mount\": \"/var/crash\", \r\n                \"name\": \"nfs4-acl-tools\", \r\n                \"name\": \"nfs-utils-lib\", \r\n                \"name\": \"nfs-utils\", \r\n                \"name\": \"nfs\", \r\n                \"name\": \"nfs-rdma\", \r\n                \"name\": \"nfslock\", \r\n\r\nYet the same works for a remote Solaris 10 host:\r\n\r\n    [rkirk@ansible ~]$ python -m json.tool < fact_cache/sol10host | egrep \"nfs|mount\"\r\n        \"ansible_mounts\": [\r\n                \"mount\": \"/\", \r\n                \"mount\": \"/dev\", \r\n                \"mount\": \"/opt\", \r\n                \"mount\": \"/proc\", \r\n                \"mount\": \"/system/contract\", \r\n                \"mount\": \"/etc/mnttab\", \r\n                \"mount\": \"/system/object\", \r\n                \"mount\": \"/etc/svc/volatile\", \r\n                \"mount\": \"/lib/libc.so.1\", \r\n                \"mount\": \"/dev/fd\", \r\n                \"mount\": \"/tmp\", \r\n                \"mount\": \"/var/run\", \r\n                \"fstype\": \"nfs\", \r\n                \"mount\": \"/data01\", \r\n\r\nOn the Solaris host itself:\r\n\r\n    [rkirk@sol10host ~]$ grep nfs /etc/mnttab \r\n    nfsserver:/nfs01 /data01      nfs     nodevices,nosetuid,noexec,bg,hard,nointr,timeo=6000,rsize=65536,wsize=65536,xattr,zone=sol10host,dev=4f0000f       1453820431\r\n\r\n    [rkirk@sol10host ~]$ cat /etc/release; uname -a\r\n                        Oracle Solaris 10 1/13 s10x_u11wos_24a X86\r\n      Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.\r\n                                Assembled 17 January 2013\r\n    SunOS sol10host 5.10 Generic_150401-26 i86pc i386 i86pc\r\n\r\n\r\nHere is the playbook:\r\n\r\n    [rkirk@ansible ~]$ cat gatherfacts.yml \r\n    ---\r\n    - name: Gather Facts \r\n      hosts: \"{{ hosts }}\"\r\n      tasks:\r\n           - name: Gather Facts\r\n             setup: \r\n\r\n##### EXPECTED RESULTS\r\nI expected to see the nfs mount on both linux and Solaris, but only see it on Solaris.\r\n\r\n##### ACTUAL RESULTS\r\nI only see the nfs mount on Solaris as shown above."}}