kolla-ansible/ansible/library
Mark Goddard 8d25b306f5 Fall back to regexes in kolla_toolbox with Docker API 1.24
Since
70b515bf12
was merged, we implicitly require Docker API version 1.25
(https://docs.docker.com/engine/api/v1.25/) to support passing
environment variables to docker exec. The version of docker we deployed
before the Docker CE upgrade was 1.12.0, which is Docker API version
1.24, and so does not support this. We get the following error:

    Setting environment for exec is not supported in API < 1.25

This change modifies the kolla_toolbox module to use the new JSON
method for parsing Ansible's output when Docker API 1.25 is available,
falling back to the old regex-based method otherwise.

This change can be reverted when we require a minimum Docker API version
of 1.25+.

Change-Id: Ie671624ecca5b43d7bd8fbd959d701d9e21d66b3
Closes-Bug: #1845681
2019-09-30 16:54:38 +01:00
..
bslurp.py Add support for sha256 in ceph key distribution 2019-08-07 11:57:46 +00:00
kolla_ceph_keyring.py ceph: fixes to deployment and upgrade 2019-08-05 06:26:25 +00:00
kolla_container_facts.py Update hacking version 2018-12-27 04:44:49 +00:00
kolla_docker.py Use fluentd image labels 2019-08-22 12:36:51 +00:00
kolla_toolbox.py Fall back to regexes in kolla_toolbox with Docker API 1.24 2019-09-30 16:54:38 +01:00