Closed array-in-a-matrix closed 5 months ago
I've got the same issue when setting
devture_systemd_docker_base_ipv6_enabled: true
The relevant message is
could not find an available, non-overlapping IPv6 address pool among the defaults to assign to the network
Seems that you just have to enable dynamic ipv6 subnet allocation via default-address-pools
.
I added an IPv6 pool in default-address-pools
and a fixed-cidr-v6
prefix. But I noticed these kept getting overridden.
To fix this, I added the following to my vars.yml:
matrix_playbook_docker_installation_enabled: false
Otherwise, the /etc/docker/daemon.json file kept getting overridden.
Now v6 works fine for the synapse container 😄
Thanks to d9598f0 (slightly fixed up in 4d91e8b), you can now easily pass additional Docker options via the playbook.
Example:
matrix_playbook_docker_installation_daemon_options_custom:
default-address-pools: ...
fixed-cidr-v6: ...
These _custom
options will be merged with the default ones (matrix_playbook_docker_installation_daemon_options_auto
) defined here: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/4d91e8b57928ab49169678e6078727250f0b741f/group_vars/matrix_servers#L24-L26
Describe the bug IPv6 fails to setup as one of the endpoints needed does not exist. Output of
just setup-all -K -vvv
:Click to see full output
```txt The full traceback is: Traceback (most recent call last): File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 263, in _raise_for_status response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.44/networks/create The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/modules/docker_network.py", line 668, in main File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/modules/docker_network.py", line 383, in __init__ File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/modules/docker_network.py", line 610, in present File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/modules/docker_network.py", line 539, in create_network File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 573, in post_json_to_json return self._result(self._post_json(self._url(pathfmt, *args, versioned_api=True), data, **kwargs), json=True) File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 270, in _result self._raise_for_status(response) File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/api/client.py", line 265, in _raise_for_status raise_from(create_api_error_from_http_exception(e), e) File "/tmp/ansible_community.general.docker_network_payload_00_8nr0s/ansible_community.general.docker_network_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/errors.py", line 45, in create_api_error_from_http_exception raise_from(cls(e, response=response, explanation=explanation), e) File "To Reproduce My
vars.yml
file looks like this:Enabling the new IPv6 option reproduces the issue:
Expected behavior Setup completes successfully.
Matrix Server:
Additional context I am running Dendrite 0.13.6+87f028d.