Closed ghost closed 3 years ago
Actually when I wait long enough it timeouts with this error:
The full traceback is:
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 102, in <module>
_ansiballz_main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible_collections.ibm.cloudcollection.plugins.modules.ibm_iam_user_invite', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib64/python3.6/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 226, in <module>
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 222, in main
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py", line 212, in run_module
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 445, in ibmcloud_terraform
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 701, in __init__
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 732, in _install_ibmcloud_tf_provider
File "/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py", line 714, in _download_extract_zip
File "/usr/lib64/python3.6/http/client.py", line 472, in read
s = self._safe_read(self.length)
File "/usr/lib64/python3.6/http/client.py", line 622, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
File "/usr/lib64/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib64/python3.6/ssl.py", line 971, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib64/python3.6/ssl.py", line 833, in read
return self._sslobj.read(len, buffer)
File "/usr/lib64/python3.6/ssl.py", line 590, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/vagrant/.ansible/tmp/ansible-tmp-1610695489.3672192-2801-27868330873631/AnsiballZ_ibm_iam_user_invite.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.ibm.cloudcollection.plugins.modules.ibm_iam_user_invite', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 226, in <module>\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 222, in main\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/modules/ibm_iam_user_invite.py\", line 212, in run_module\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 445, in ibmcloud_terraform\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 701, in __init__\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 732, in _install_ibmcloud_tf_provider\n File \"/tmp/ansible_ibm_iam_user_invite_payload_xnsh3lyw/ansible_ibm_iam_user_invite_payload.zip/ansible_collections/ibm/cloudcollection/plugins/module_utils/ibmcloud.py\", line 714, in _download_extract_zip\n File \"/usr/lib64/python3.6/http/client.py\", line 472, in read\n s = self._safe_read(self.length)\n File \"/usr/lib64/python3.6/http/client.py\", line 622, in _safe_read\n chunk = self.fp.read(min(amt, MAXAMOUNT))\n File \"/usr/lib64/python3.6/socket.py\", line 586, in readinto\n return self._sock.recv_into(b)\n File \"/usr/lib64/python3.6/ssl.py\", line 971, in recv_into\n return self.read(nbytes, buffer)\n File \"/usr/lib64/python3.6/ssl.py\", line 833, in read\n return self._sslobj.read(len, buffer)\n File \"/usr/lib64/python3.6/ssl.py\", line 590, in read\n v = self._sslobj.read(len, buffer)\nsocket.timeout: The read operation timed out\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
Does it timeout on terraform provider plugin download?
In fact this download is very slow for me when checking. Can I place it somewhere to bypass this step?
Looks like copying terraform binaries to /var/tmp/ansible/ibmcloud/ solves my problem.
Hi,
Maybe you can help me as I can't make it work.
Example playbook I try to run:
it just hans at this: