{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16874","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16874/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16874/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16874/events","html_url":"https://github.com/ansible/ansible/issues/16874","id":168310923,"number":16874,"title":"Error \"invalid selinux context\" in copy module when using vxfs (veritas cluster) filesystem","user":{"login":"SimBou","id":11995140,"avatar_url":"https://avatars.githubusercontent.com/u/11995140?v=3","gravatar_id":"","url":"https://api.github.com/users/SimBou","html_url":"https://github.com/SimBou","followers_url":"https://api.github.com/users/SimBou/followers","following_url":"https://api.github.com/users/SimBou/following{/other_user}","gists_url":"https://api.github.com/users/SimBou/gists{/gist_id}","starred_url":"https://api.github.com/users/SimBou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimBou/subscriptions","organizations_url":"https://api.github.com/users/SimBou/orgs","repos_url":"https://api.github.com/users/SimBou/repos","events_url":"https://api.github.com/users/SimBou/events{/privacy}","received_events_url":"https://api.github.com/users/SimBou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T12:07:34Z","updated_at":"2016-07-29T12:07:34Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### ANSIBLE VERSION\r\nansible 2.0.2.0\r\nansible 2.1.0.0\r\n\r\n##### CONFIGURATION\r\n[selinux]\r\nspecial_context_filesystems=nfs,vboxsf,fuse,vxfs\r\n\r\n##### OS / ENVIRONMENT\r\nRHEL 7.2 with SELinux in permissive\r\n\r\n##### SUMMARY\r\nCopy module fails to transfert a file when the destination is on an vxfs filesystem on a server with SELinux in permissive enabled.\r\nIt works well when SELinux is totaly disabled.\r\nmsg: invalid selinux context\r\n\r\n##### STEPS TO REPRODUCE\r\nOn CLI:\r\nansible all -i server, -m copy -a \"src=test_file dest=/path/on/vxfs/filesystem/\"\r\nI have the same error within a playbook.\r\n\r\nOutput:\r\nansible all -i server, -m copy -a \"src=test_file dest=/applis/test/\"\r\nsever| FAILED! => {\r\n    \"changed\": false,\r\n    \"checksum\": \"9012b2e777fbed549591be2d03c6917d5debc571\",\r\n    \"cur_context\": [\r\n        \"unconfined_u\",\r\n        \"object_r\",\r\n        \"vxfs_t\",\r\n        \"s0\"\r\n    ],\r\n    \"failed\": true,\r\n    \"gid\": 397,\r\n    \"group\": \"my_group\",\r\n    \"input_was\": [\r\n        \"system_u\",\r\n        \"object_r\",\r\n        \"default_t\",\r\n        \"s0\"\r\n    ],\r\n    \"mode\": \"0600\",\r\n    \"msg\": \"invalid selinux context: [Errno 95] Operation not supported\",\r\n    \"new_context\": [\r\n        \"system_u\",\r\n        \"object_r\",\r\n        \"vxfs_t\",\r\n        \"s0\"\r\n    ],\r\n    \"owner\": \"my_user\",\r\n    \"path\": \"/applis/test/.ansible_tmplgGRRMtest_file\",\r\n    \"secontext\": \"unconfined_u:object_r:vxfs_t:s0\",\r\n    \"size\": 185311,\r\n    \"state\": \"file\",\r\n    \"uid\": 13906\r\n}\r\n\r\n##### EXPECTED RESULTS\r\nFile copied on remote directory\r\n\r\n##### ACTUAL RESULTS\r\nNothing done\r\n"}}
{"actor":{"display_login":"SimBou"}}