{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39104","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39104/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39104/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39104/events","html_url":"https://github.com/ansible/ansible/issues/39104","id":316414511,"number":39104,"title":"H\"msg\": \"credssp: must be type, not classobj\",","user":{"login":"DRAKUN","id":366065,"avatar_url":"https://avatars0.githubusercontent.com/u/366065?v=4","gravatar_id":"","url":"https://api.github.com/users/DRAKUN","html_url":"https://github.com/DRAKUN","followers_url":"https://api.github.com/users/DRAKUN/followers","following_url":"https://api.github.com/users/DRAKUN/following{/other_user}","gists_url":"https://api.github.com/users/DRAKUN/gists{/gist_id}","starred_url":"https://api.github.com/users/DRAKUN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DRAKUN/subscriptions","organizations_url":"https://api.github.com/users/DRAKUN/orgs","repos_url":"https://api.github.com/users/DRAKUN/repos","events_url":"https://api.github.com/users/DRAKUN/events{/privacy}","received_events_url":"https://api.github.com/users/DRAKUN/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":785271699,"url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false},{"id":108461331,"url":"https://api.github.com/repos/ansible/ansible/labels/windows","name":"windows","color":"777777","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-20T21:17:21Z","updated_at":"2018-04-24T14:33:34Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and devel branch are affected too.\r\nAlways add information AFTER of these html comments. -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest -->\r\n - Bug Report\r\n - Feature Idea\r\n - Documentation Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, the OS you are running Ansible from, and the OS you are\r\nmanaging, or say \"N/A\" for anything that is not platform-specific.\r\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nCENTOS/7\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n192.168.56.101 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"credssp: must be type, not classobj\",\r\n    \"unreachable\": true\r\n}\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n[ansible@localhost UT5]$ ansible windows -i hosts -m win_ping\r\n192.168.56.101 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"credssp: must be type, not classobj\",\r\n    \"unreachable\": true\r\n}\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n[ansible@localhost UT5]$ ansible windows -i hosts -m win_ping -vvvv                                              \r\nansible 2.5.0                                                                                                    \r\n  config file = /etc/ansible/ansible.cfg                                                                         \r\n  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/module\r\ns']                                                                                                              \r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible                                      \r\n  executable location = /usr/bin/ansible                                                                         \r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]                \r\nUsing /etc/ansible/ansible.cfg as config file                                                                    \r\nsetting up inventory plugins                                                                                     \r\nParsed /home/ansible/UT5/hosts inventory source with ini plugin                                                  \r\nLoading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callba\r\nck/minimal.pyc                                                                                                   \r\nMETA: ran handlers                                                                                               \r\nUsing module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1                          \r\n<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: administrateur on PORT 5986 TO 192.168.56.101              \r\nchecking if winrm_host 192.168.56.101 is an IPv6 address                                                         \r\n192.168.56.101 | UNREACHABLE! => {                                                                               \r\n    \"changed\": false,                                                                                            \r\n    \"msg\": \"credssp: must be type, not classobj\",                                                                \r\n    \"unreachable\": true                                                                                          \r\n}                                                                                                                \r\n[ansible@localhost UT5]$                                                                                         \r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/383955063","html_url":"https://github.com/ansible/ansible/issues/39104#issuecomment-383955063","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39104","id":383955063,"user":{"login":"DRAKUN","id":366065,"avatar_url":"https://avatars0.githubusercontent.com/u/366065?v=4","gravatar_id":"","url":"https://api.github.com/users/DRAKUN","html_url":"https://github.com/DRAKUN","followers_url":"https://api.github.com/users/DRAKUN/followers","following_url":"https://api.github.com/users/DRAKUN/following{/other_user}","gists_url":"https://api.github.com/users/DRAKUN/gists{/gist_id}","starred_url":"https://api.github.com/users/DRAKUN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DRAKUN/subscriptions","organizations_url":"https://api.github.com/users/DRAKUN/orgs","repos_url":"https://api.github.com/users/DRAKUN/repos","events_url":"https://api.github.com/users/DRAKUN/events{/privacy}","received_events_url":"https://api.github.com/users/DRAKUN/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T14:33:34Z","updated_at":"2018-04-24T14:33:34Z","author_association":"NONE","body":"here the debug\r\n````\r\n[ansible@localhost UT5]$ ansible windows -i hosts -m win_ping -vvvvv\r\nansible 2.5.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\nUsing /etc/ansible/ansible.cfg as config file\r\nsetting up inventory plugins\r\nParsed /home/ansible/UT5/hosts inventory source with ini plugin\r\nLoading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/minimal.pyc\r\nMETA: ran handlers\r\nUsing module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1\r\n<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: administrateur on PORT 5986 TO 192.168.56.101\r\nchecking if winrm_host 192.168.56.101 is an IPv6 address\r\n<192.168.56.101> WINRM CONNECT: transport=credssp endpoint=https://192.168.56.101:5986/wsman\r\n<192.168.56.101> WINRM CONNECTION ERROR: must be type, not classobj\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py\", line 345, in _winrm_connect\r\n    self.shell_id = protocol.open_shell(codepage=65001)  # UTF-8\r\n  File \"/usr/lib/python2.7/site-packages/winrm/protocol.py\", line 157, in open_shell\r\n    res = self.send_message(xmltodict.unparse(req))\r\n  File \"/usr/lib/python2.7/site-packages/winrm/protocol.py\", line 234, in send_message\r\n    resp = self.transport.send_message(message)\r\n  File \"/usr/lib/python2.7/site-packages/winrm/transport.py\", line 256, in send_message\r\n    response = self._send_message_request(prepared_request, message)\r\n  File \"/usr/lib/python2.7/site-packages/winrm/transport.py\", line 261, in _send_message_request\r\n    response = self.session.send(prepared_request, timeout=self.read_timeout_sec)\r\n  File \"/usr/lib/python2.7/site-packages/requests/sessions.py\", line 625, in send\r\n    r = dispatch_hook('response', hooks, r, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests/hooks.py\", line 31, in dispatch_hook\r\n    _hook_data = hook(hook_data, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests_credssp/credssp.py\", line 447, in response_hook\r\n    response = self.handle_401(response, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/requests_credssp/credssp.py\", line 486, in handle_401\r\n    out_token, step_name = credssp_gen.send(in_token)\r\n  File \"/usr/lib/python2.7/site-packages/requests_credssp/credssp.py\", line 111, in credssp_generator\r\n    ts_request = TSRequest()\r\n  File \"/usr/lib/python2.7/site-packages/requests_credssp/asn_structures.py\", line 105, in __init__\r\n    super(TSRequest, self).__init__(**kwargs)\r\nTypeError: must be type, not classobj\r\n\r\n192.168.56.101 | UNREACHABLE! => {\r\n    \"changed\": false,\r\n    \"msg\": \"credssp: must be type, not classobj\",\r\n    \"unreachable\": true\r\n}\r\n\r\n````"}}
{"actor":{"display_login":"DRAKUN"}}