Error while fetching server API version: Not supported URL scheme http+docker"

Bug #2072980 reported by Will Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
In Progress
Undecided
Unassigned

Bug Description

Hitting the following error in CI:

    TASK [inspection-store : Pulling inspection store container image] *************
    task path: /home/zuul/src/opendev.org/openstack/kayobe/ansible/roles/inspection-store/tasks/pull.yml:2
    Wednesday 10 July 2024 16:01:45 +0000 (0:00:00.117) 0:00:00.255 ********
    redirecting (type: modules) ansible.builtin.docker_image to community.docker.docker_image
    redirecting (type: modules) ansible.builtin.docker_image to community.docker.docker_image
    Using module file /home/zuul/kayobe-venv/lib64/python3.9/site-packages/ansible_collections/community/docker/plugins/modules/docker_image.py
    Pipelining is enabled.
    <192.168.33.3> ESTABLISH SSH CONNECTION FOR USER: stack
    <192.168.33.3> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="stack"' -o ConnectTimeout=10 -o 'ControlPath="/home/zuul/.ansible/cp/7b927b2174"' 192.168.33.3 '/bin/sh -c '"'"'/opt/kayobe/venvs/kayobe/bin/python && sleep 0'"'"''
    <192.168.33.3> (1, b'\n{"failed": true, "msg": "Error connecting: Error while fetching server API version: Not supported URL scheme http+docker", "exception": " File \\"/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/common_api.py\\", line 117, in __init__\\n super(AnsibleDockerClientBase, self).__init__(**self._connect_params)\\n File \\"/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py\\", line 188, in __init__\\n self._version = self._retrieve_server_version()\\n File \\"/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py\\", line 212, in _retrieve_server_version\\n raise DockerException(\\n", "invocation": {"module_args": {"name": "nginx:stable", "repository": "nginx:stable", "source": "pull", "state": "present", "docker_host": "unix://var/run/docker.sock", "api_version": "auto", "timeout": 60, "tls": false, "use_ssh_client": false, "validate_certs": false, "debug": false, "force_source": false, "force_absent": false, "force_tag": false, "push": false, "tag": "latest", "tls_hostname": null, "ca_cert": null, "client_cert": null, "client_key": null, "ssl_version": null, "build": null, "archive_path": null, "load_path": null, "pull": null}}}\n', b'')
    <192.168.33.3> Failed to connect to the host via ssh:
    The full traceback is:
      File "/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/common_api.py", line 117, in __init__
        super(AnsibleDockerClientBase, self).__init__(**self._connect_params)
      File "/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 188, in __init__
        self._version = self._retrieve_server_version()
      File "/tmp/ansible_docker_image_payload_aft15qng/ansible_docker_image_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 212, in _retrieve_server_version
        raise DockerException(
    failed: [controller0] (item={'key': 'inspection_store', 'value': {'container_name': 'inspection_store', 'enabled': True, 'image': 'nginx:stable', 'network_mode': 'host', 'volumes': ['/etc/localtime:/etc/localtime:ro', '/opt/kayobe/etc/inspection-store/nginx.conf:/etc/nginx/nginx.conf:ro', 'inspection_store:/data']}}) => {
        "ansible_loop_var": "item",
        "changed": false,
        "invocation": {
            "module_args": {
                "api_version": "auto",
                "archive_path": null,
                "build": null,
                "ca_cert": null,
                "client_cert": null,
                "client_key": null,
                "debug": false,
                "docker_host": "unix://var/run/docker.sock",
                "force_absent": false,
                "force_source": false,
                "force_tag": false,
                "load_path": null,
                "name": "nginx:stable",
                "pull": null,
                "push": false,
                "repository": "nginx:stable",
                "source": "pull",
                "ssl_version": null,
                "state": "present",
                "tag": "latest",
                "timeout": 60,
                "tls": false,
                "tls_hostname": null,
                "use_ssh_client": false,
                "validate_certs": false
            }
        },
        "item": {
            "key": "inspection_store",
            "value": {
                "container_name": "inspection_store",
                "enabled": true,
                "image": "nginx:stable",
                "network_mode": "host",
                "volumes": [
                    "/etc/localtime:/etc/localtime:ro",
                    "/opt/kayobe/etc/inspection-store/nginx.conf:/etc/nginx/nginx.conf:ro",
                    "inspection_store:/data"
                ]
            }
        },
        "msg": "Error connecting: Error while fetching server API version: Not supported URL scheme http+docker"
}

Will Szumski (willjs)
Changed in kayobe:
status: New → Invalid
Changed in kayobe:
status: Invalid → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.