Comment 2 for bug 1530962

Revision history for this message
Andres Toomsalu (andres-active) wrote : Re: mariadb "Creating haproxy mysql user" task failing with "no no attribute 'add_metaclass'" error

This patch works around the issue - but that is just a quick hack:

diff --git a/docker/kolla-ansible/Dockerfile.j2 b/docker/kolla-ansible/Dockerfile.j2
index fdfec7c..cb75a90 100644
--- a/docker/kolla-ansible/Dockerfile.j2
+++ b/docker/kolla-ansible/Dockerfile.j2
@@ -26,6 +26,8 @@ RUN git clone --depth 1 -b v2.0.0-0.2.alpha2 https://github.com/ansible/ansible.
     && git submodule update --init --recursive \
     && pip --no-cache-dir install .

+RUN pip install --upgrade ansible
+
 RUN mkdir -p /etc/ansible /usr/share/ansible \
     && echo 'localhost ansible_connection=local' > /etc/ansible/hosts