psf / requests

A simple, yet elegant, HTTP library.
https://requests.readthedocs.io/en/latest/
Apache License 2.0
52.19k stars 9.33k forks source link

Not supported URL scheme http+docker KOLLA ANSIBLE #6713

Closed takatoejji closed 6 months ago

takatoejji commented 6 months ago

hello Im trying to deploy an openstack cloud using kolla ansible it was working fine until yesterday in the prechecks step an error occurs Not supported URL scheme http+docker An exception occurred during task execution. To see the full traceback, use -vvv. The error was: docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker here is the log fatal: [controller]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.10/dist-packages/requests/adapters.py\", line 555, in send\n conn = self.get_connection_with_tls_context(\n File \"/usr/local/lib/python3.10/dist-packages/requests/adapters.py\", line 411, in get_connection_with_tls_context\n conn = self.poolmanager.connection_from_host(\n File \"/usr/lib/python3/dist-packages/urllib3/poolmanager.py\", line 245, in connection_from_host\n return self.connection_from_context(request_context)\n File \"/usr/lib/python3/dist-packages/urllib3/poolmanager.py\", line 257, in connection_from_context\n raise URLSchemeUnknown(scheme)\nurllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.10/dist-packages/docker/api/client.py\", line 214, in _retrieve_server_version\n return self.version(api_version=False)[\"ApiVersion\"]\n File \"/usr/local/lib/python3.10/dist-packages/docker/api/daemon.py\", line 181, in version\n return self._result(self._get(url), json=True)\n File \"/usr/local/lib/python3.10/dist-packages/docker/utils/decorators.py\", line 46, in inner\n return f(self, *args, kwargs)\n File \"/usr/local/lib/python3.10/dist-packages/docker/api/client.py\", line 237, in _get\n return self.get(url, self._set_request_timeout(kwargs))\n File \"/usr/local/lib/python3.10/dist-packages/requests/sessions.py\", line 602, in get\n return self.request(\"GET\", url, kwargs)\n File \"/usr/local/lib/python3.10/dist-packages/requests/sessions.py\", line 589, in request\n resp = self.send(prep, send_kwargs)\n File \"/usr/local/lib/python3.10/dist-packages/requests/sessions.py\", line 703, in send\n r = adapter.send(request, **kwargs)\n File \"/usr/local/lib/python3.10/dist-packages/requests/adapters.py\", line 559, in send\n raise InvalidURL(e, request=request)\nrequests.exceptions.InvalidURL: Not supported URL scheme http+docker\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/deploy-user/.ansible/tmp/ansible-tmp-1716321231.812923-13434-26055658970347/AnsiballZ_kolla_container_facts.py\", line 107, in \n _ansiballz_main()\n File \"/home/deploy-user/.ansible/tmp/ansible-tmp-1716321231.812923-13434-26055658970347/AnsiballZ_kolla_container_facts.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/deploy-user/.ansible/tmp/ansible-tmp-1716321231.812923-13434-26055658970347/AnsiballZ_kolla_container_facts.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible.modules.kolla_container_facts', init_globals=dict(_module_fqn='ansible.modules.kolla_container_facts', _modlib_path=modlib_path),\n File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_kolla_container_facts_payload_upu5x80v/ansible_kolla_container_facts_payload.zip/ansible/modules/kolla_container_facts.py\", line 132, in \n File \"/tmp/ansible_kolla_container_facts_payload_upu5x80v/ansible_kolla_container_facts_payload.zip/ansible/modules/kolla_container_facts.py\", line 126, in main\n File \"/tmp/ansible_kolla_container_facts_payload_upu5x80v/ansible_kolla_container_facts_payload.zip/ansible/modules/kolla_container_facts.py\", line 74, in use_docker\n File \"/usr/local/lib/python3.10/dist-packages/docker/api/client.py\", line 197, in init\n self._version = self._retrieve_server_version()\n File \"/usr/local/lib/python3.10/dist-packages/docker/api/client.py\", line 221, in _retrieve_server_version\n raise DockerException(\ndocker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

github-actions[bot] commented 6 months ago

As described in the template, we won't be able to answer questions on this issue tracker. Please use Stack Overflow