{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/17175","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/17175/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/17175/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/17175/events","html_url":"https://github.com/ansible/ansible/issues/17175","id":172422536,"number":17175,"title":"setup module fails in get_selinux_facts on Fedora Core 5","user":{"login":"aya","id":155455,"avatar_url":"https://avatars.githubusercontent.com/u/155455?v=3","gravatar_id":"","url":"https://api.github.com/users/aya","html_url":"https://github.com/aya","followers_url":"https://api.github.com/users/aya/followers","following_url":"https://api.github.com/users/aya/following{/other_user}","gists_url":"https://api.github.com/users/aya/gists{/gist_id}","starred_url":"https://api.github.com/users/aya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aya/subscriptions","organizations_url":"https://api.github.com/users/aya/orgs","repos_url":"https://api.github.com/users/aya/repos","events_url":"https://api.github.com/users/aya/events{/privacy}","received_events_url":"https://api.github.com/users/aya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/8","html_url":"https://github.com/ansible/ansible/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/8/labels","id":1702615,"number":8,"title":"2.2.0","description":"","creator":{"login":"sivel","id":39340,"avatar_url":"https://avatars.githubusercontent.com/u/39340?v=3","gravatar_id":"","url":"https://api.github.com/users/sivel","html_url":"https://github.com/sivel","followers_url":"https://api.github.com/users/sivel/followers","following_url":"https://api.github.com/users/sivel/following{/other_user}","gists_url":"https://api.github.com/users/sivel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivel/subscriptions","organizations_url":"https://api.github.com/users/sivel/orgs","repos_url":"https://api.github.com/users/sivel/repos","events_url":"https://api.github.com/users/sivel/events{/privacy}","received_events_url":"https://api.github.com/users/sivel/received_events","type":"User","site_admin":false},"open_issues":157,"closed_issues":107,"state":"open","created_at":"2016-04-12T23:10:49Z","updated_at":"2016-08-22T16:30:53Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-22T10:49:02Z","updated_at":"2016-08-22T16:31:38Z","closed_at":null,"body":"##### ISSUE TYPE\r\n Bug Report\r\n\r\n##### COMPONENT NAME\r\nsetup module\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.2.0 (devel 321d2e8cee) last updated 2016/08/22 11:48:55 (GMT +200)\r\n  lib/ansible/modules/core: (detached HEAD 24db4de245) last updated 2016/08/01 15:26:29 (GMT +200)\r\n  lib/ansible/modules/extras: (detached HEAD db979dde74) last updated 2016/08/01 15:26:35 (GMT +200)\r\n  config file = /home/yann/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\nManaged node running Fedora Core 5\r\n\r\n##### SUMMARY\r\nsetup module fails in get_selinux_facts on Fedora Core 5 with error : \"AttributeError: 'module' object has no attribute 'selinux_getpolicytype.\"\r\n\r\n##### STEPS TO REPRODUCE\r\nRun the setup module on a Fedora Core 5.\r\n\r\n##### EXPECTED RESULTS\r\n```\r\n$ ansible fc5 -m setup\r\n        \"ansible_python_version\": \"2.4.2\", \r\n        \"ansible_selinux\": {\r\n            \"config_mode\": \"enforcing\", \r\n            \"mode\": \"enforcing\", \r\n            \"policyvers\": 20, \r\n            \"status\": \"enabled\", \r\n            \"type\": \"unknown\"\r\n        }, \r\n```\r\n\r\n##### ACTUAL RESULTS\r\n```\r\n$ ansible fc5 -m setup\r\nfc51 | FAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"module_stderr\": \"\", \r\n    \"module_stdout\": \"Traceback (most recent call last):\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_module_setup.py\\\", line 127, in ?\\r\\n    main()\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_module_setup.py\\\", line 119, in main\\r\\n    data = get_all_facts(module)\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_modlib.zip/ansible/module_utils/facts.py\\\", line 3179, in get_all_facts\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_modlib.zip/ansible/module_utils/facts.py\\\", line 3123, in ansible_facts\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_modlib.zip/ansible/module_utils/facts.py\\\", line 188, in __init__\\r\\n  File \\\"/tmp/ansible_PM_vSq/ansible_modlib.zip/ansible/module_utils/facts.py\\\", line 713, in get_selinux_facts\\r\\nAttributeError: 'module' object has no attribute 'selinux_getpolicytype'\\r\\n\", \r\n    \"msg\": \"MODULE FAILURE\", \r\n    \"parsed\": false\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/241470353","html_url":"https://github.com/ansible/ansible/issues/17175#issuecomment-241470353","issue_url":"https://api.github.com/repos/ansible/ansible/issues/17175","id":241470353,"user":{"login":"alikins","id":15162,"avatar_url":"https://avatars.githubusercontent.com/u/15162?v=3","gravatar_id":"","url":"https://api.github.com/users/alikins","html_url":"https://github.com/alikins","followers_url":"https://api.github.com/users/alikins/followers","following_url":"https://api.github.com/users/alikins/following{/other_user}","gists_url":"https://api.github.com/users/alikins/gists{/gist_id}","starred_url":"https://api.github.com/users/alikins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikins/subscriptions","organizations_url":"https://api.github.com/users/alikins/orgs","repos_url":"https://api.github.com/users/alikins/repos","events_url":"https://api.github.com/users/alikins/events{/privacy}","received_events_url":"https://api.github.com/users/alikins/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T16:31:38Z","updated_at":"2016-08-22T16:31:38Z","body":"Since there seems to be a workaround/fix pr, leaving this open."}}
{"actor":{"display_login":"alikins"}}