Code Monkey home page Code Monkey logo

Comments (1)

spham avatar spham commented on May 31, 2024

and now restart another issue

TASK [Register SSH key for test instance(s)] ***********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'ConnectionError' object has no attribute 'message'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connection.py\", line 169, in _new_conn\n    conn = connection.create_connection(\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):\n  File \"/usr/local/lib/python3.9/socket.py\", line 953, in getaddrinfo\n    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):\nsocket.gaierror: [Errno -2] Name or service not known\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 699, in urlopen\n    httplib_response = self._make_request(\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 382, in _make_request\n    self._validate_conn(conn)\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 1010, in _validate_conn\n    conn.connect()\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connection.py\", line 353, in connect\n    conn = self._new_conn()\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connection.py\", line 181, in _new_conn\n    raise NewConnectionError(\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3b965aba60>: Failed to establish a new connection: [Errno -2] Name or service not known\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/spham/.env/lib/python3.9/site-packages/requests/adapters.py\", line 439, in send\n    resp = conn.urlopen(\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 755, in urlopen\n    retries = retries.increment(\n  File \"/home/spham/.env/lib/python3.9/site-packages/urllib3/util/retry.py\", line 574, in increment\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.hetzner.cloud', port=443): Max retries exceeded with url: /v1/ssh_keys?name=molecule-generated-d3ef0e5a-996a-5139-b921-339c1e3ca7ac (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3b965aba60>: Failed to establish a new connection: [Errno -2] Name or service not known'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/tmp/ansible_hcloud_ssh_key_payload_hvvnb3yt/ansible_hcloud_ssh_key_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_ssh_key.py\", line 155, in _get_ssh_key\n  File \"/home/spham/.env/lib/python3.9/site-packages/hcloud/ssh_keys/client.py\", line 111, in get_by_name\n    return super(SSHKeysClient, self).get_by_name(name)\n  File \"/home/spham/.env/lib/python3.9/site-packages/hcloud/core/client.py\", line 88, in get_by_name\n    response = self.get_list(name=name)\n  File \"/home/spham/.env/lib/python3.9/site-packages/hcloud/ssh_keys/client.py\", line 80, in get_list\n    response = self._client.request(url=\"/ssh_keys\", method=\"GET\", params=params)\n  File \"/home/spham/.env/lib/python3.9/site-packages/hcloud/hcloud.py\", line 219, in request\n    response = self._requests_session.request(\n  File \"/home/spham/.env/lib/python3.9/site-packages/requests/sessions.py\", line 542, in request\n    resp = self.send(prep, **send_kwargs)\n  File \"/home/spham/.env/lib/python3.9/site-packages/requests/sessions.py\", line 655, in send\n    r = adapter.send(request, **kwargs)\n  File \"/home/spham/.env/lib/python3.9/site-packages/requests/adapters.py\", line 516, in send\n    raise ConnectionError(e, request=request)\nrequests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.hetzner.cloud', port=443): Max retries exceeded with url: /v1/ssh_keys?name=molecule-generated-d3ef0e5a-996a-5139-b921-339c1e3ca7ac (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3b965aba60>: Failed to establish a new connection: [Errno -2] Name or service not known'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/spham/.ansible/tmp/ansible-tmp-1637218956.961949-31464-266328750322359/AnsiballZ_hcloud_ssh_key.py\", line 100, in <module>\n    _ansiballz_main()\n  File \"/home/spham/.ansible/tmp/ansible-tmp-1637218956.961949-31464-266328750322359/AnsiballZ_hcloud_ssh_key.py\", line 92, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/spham/.ansible/tmp/ansible-tmp-1637218956.961949-31464-266328750322359/AnsiballZ_hcloud_ssh_key.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.hetzner.hcloud.plugins.modules.hcloud_ssh_key', init_globals=dict(_module_fqn='ansible_collections.hetzner.hcloud.plugins.modules.hcloud_ssh_key', _modlib_path=modlib_path),\n  File \"/usr/local/lib/python3.9/runpy.py\", line 210, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/local/lib/python3.9/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/local/lib/python3.9/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_hcloud_ssh_key_payload_hvvnb3yt/ansible_hcloud_ssh_key_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_ssh_key.py\", line 251, in <module>\n  File \"/tmp/ansible_hcloud_ssh_key_payload_hvvnb3yt/ansible_hcloud_ssh_key_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_ssh_key.py\", line 245, in main\n  File \"/tmp/ansible_hcloud_ssh_key_payload_hvvnb3yt/ansible_hcloud_ssh_key_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_ssh_key.py\", line 199, in present_ssh_key\n  File \"/tmp/ansible_hcloud_ssh_key_payload_hvvnb3yt/ansible_hcloud_ssh_key_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_ssh_key.py\", line 160, in _get_ssh_key\nAttributeError: 'ConnectionError' object has no attribute 'message'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

from molecule-hetznercloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.