stas@stas-custis-desktop ~/projects/bugs/ansible-container-django $ ansible-container --debug build 2017-06-26T14:41:05.452483 The default type is [container.config] caller_file=/home/stas/projects/ansible-container/container/config.py caller_func=_resolve_defaults caller_line=140 config= defaults= 2017-06-26T14:41:05.453111 Getting environment variables... [container.config] caller_file=/home/stas/projects/ansible-container/container/config.py caller_func=_get_environment_variables caller_line=156 2017-06-26T14:41:05.453672 Read environment variables [container.config] caller_file=/home/stas/projects/ansible-container/container/config.py caller_func=_get_environment_variables caller_line=161 env_vars={} 2017-06-26T14:41:05.454139 Resolved template variables [container.config] caller_file=/home/stas/projects/ansible-container/container/config.py caller_func=_resolve_defaults caller_line=145 template_vars={"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true} 2017-06-26T14:41:05.454649 Parsed config [container.config] caller_file=/home/stas/projects/ansible-container/container/config.py caller_func=set_env caller_line=121 config={"version": "2", "settings": {"conductor_base": "centos:7", "pwd": "/home/stas/projects/bugs/ansible-container-django"}, "defaults": {"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true}, "services": {"django": {"from": "centos:7", "roles": ["django-gunicorn"], "environment": {"DATABASE_URL": "pgsql://{{ POSTGRES_USER }}:{{ POSTGRES_PASSWORD }}@postgres:5432/{{ POSTGRES_DB }}", "DJANGO_ROOT": "{{ DJANGO_ROOT }}", "DJANGO_VENV": "{{ DJANGO_VENV }}"}, "links": ["postgres", "postgres:postgresql"], "ports": ["{{ DJANGO_PORT }}"], "working_dir": "{{ DJANGO_ROOT }}", "user": "{{ DJANGO_USER }}", "command": ["{{ DJANGO_VENV }}/bin/gunicorn", "-w", "2", "-b", "0.0.0.0:{{ DJANGO_PORT }}", "project.wsgi:application"], "entrypoint": ["/usr/bin/dumb-init", "/usr/bin/entrypoint.sh"], "volumes": ["static:{{ DJANGO_ROOT }}"]}, "nginx": {"from": "centos:7", "roles": ["nginx"], "ports": ["{{ DJANGO_PORT }}:8000"], "user": "nginx", "links": ["django"], "command": ["/usr/bin/dumb-init", "nginx", "-c", "/etc/nginx/nginx.conf"], "volumes": ["static:{{ STATIC_ROOT }}"]}, "postgres": {"from": "postgres:9.6", "environment": {"POSTGRES_USER": "{{ POSTGRES_USER }}", "POSTGRES_PASSWORD": "{{ POSTGRES_PASSWORD }}", "POSTGRES_DB": "{{ POSTGRES_DB }}"}}}, "volumes": {"static": {}}, "registries": {}} 2017-06-26T14:41:05.455048 Loading engine capabilities [container.utils.loader] caller_file=/home/stas/projects/ansible-container/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD', 'RUN'] engine=docker 2017-06-26T14:41:05.486214 Could not find container for conductor [container.docker.engine] all_containers=[, , ] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=get_container_id_for_service caller_line=385 container=u'ansible-container-django_conductor' 2017-06-26T14:41:05.492572 Call: Engine.build_conductor_image [container.docker.engine] args=('/home/stas/projects/bugs/ansible-container-django', 'centos:7') caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=Engine.build_conductor_image caller_line=23 kwargs={'cache': True} 2017-06-26T14:41:05.494120 Using temporary directory [container.utils.temp] caller_file=/home/stas/projects/ansible-container/container/utils/temp.py caller_func=__enter__ caller_line=17 path=/tmp/tmpC0mPFQ 2017-06-26T14:41:05.494643 Building Docker Engine context... [container.docker.engine] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=650 2017-06-26T14:41:05.510972 Rendered Jinja Template: [container.utils] body=FROM centos:7 ENV ANSIBLE_CONTAINER=1 RUN yum update -y && \ yum install -y epel-release && \ yum install -y gcc git python-devel rsync libffi-devel openssl-devel && \ yum clean all ADD https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz /tmp/docker.tgz COPY /contrib/get-pip.py /get-pip.py RUN python /get-pip.py && \ mkdir -p /etc/ansible/roles /_ansible/src && \ cd /usr/local/bin && \ tar -xz --strip-components=1 -f /tmp/docker.tgz # The COPY here will break cache if the version of conductor changed COPY /container-src /_ansible/container RUN cd /_ansible && \ pip install -r container/conductor-build/conductor-requirements.txt && \ PYTHONPATH=. LC_ALL="en_US.UTF-8" python container/conductor-build/setup.py develop -v && \ ansible-galaxy install -p /etc/ansible/roles -r container/conductor-build/conductor-requirements.yml # The COPY here will break cache if the requirements or ansible.cfg has changed COPY /build-src /_ansible/build RUN ( test -f /_ansible/build/ansible-requirements.txt && pip install --no-cache-dir -r /_ansible/build/ansible-requirements.txt || true ) && \ ( test -f /_ansible/build/requirements.yml && ansible-galaxy install -p /etc/ansible/roles -r /_ansible/build/requirements.yml || true ) && \ ( test -f /_ansible/build/ansible.cfg && cp /_ansible/build/ansible.cfg /etc/ansible/ansible.cfg || true) VOLUME /usr caller_file=/home/stas/projects/ansible-container/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=81 2017-06-26T14:41:05.511681 Context manifest: [container.docker.engine] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=706 2017-06-26T14:41:05.511829 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg 2017-06-26T14:41:05.511933 tarball item: build-src/ansible-requirements.txt (129 bytes) [container.docker.engine] bytes=129 file=build-src/ansible-requirements.txt 2017-06-26T14:41:05.512026 tarball item: build-src/requirements.yml (297 bytes) [container.docker.engine] bytes=297 file=build-src/requirements.yml 2017-06-26T14:41:05.512116 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch 2017-06-26T14:41:05.512204 tarball item: contrib/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=contrib/get-pip.py 2017-06-26T14:41:05.512292 tarball item: container-src (0 bytes) [container.docker.engine] bytes=0L file=container-src 2017-06-26T14:41:05.512395 tarball item: container-src/openshift (0 bytes) [container.docker.engine] bytes=0L file=container-src/openshift 2017-06-26T14:41:05.512495 tarball item: container-src/openshift/deploy.py (6203 bytes) [container.docker.engine] bytes=6203 file=container-src/openshift/deploy.py 2017-06-26T14:41:05.512591 tarball item: container-src/openshift/engine.py (2151 bytes) [container.docker.engine] bytes=2151 file=container-src/openshift/engine.py 2017-06-26T14:41:05.512689 tarball item: container-src/openshift/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/openshift/__init__.py 2017-06-26T14:41:05.512773 tarball item: container-src/config.py (14021 bytes) [container.docker.engine] bytes=14021 file=container-src/config.py 2017-06-26T14:41:05.512856 tarball item: container-src/k8s (0 bytes) [container.docker.engine] bytes=0L file=container-src/k8s 2017-06-26T14:41:05.512967 tarball item: container-src/k8s/deploy.py (1720 bytes) [container.docker.engine] bytes=1720 file=container-src/k8s/deploy.py 2017-06-26T14:41:05.513051 tarball item: container-src/k8s/base_deploy.py (27642 bytes) [container.docker.engine] bytes=27642 file=container-src/k8s/base_deploy.py 2017-06-26T14:41:05.513150 tarball item: container-src/k8s/engine.py (2389 bytes) [container.docker.engine] bytes=2389 file=container-src/k8s/engine.py 2017-06-26T14:41:05.513235 tarball item: container-src/k8s/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/k8s/__init__.py 2017-06-26T14:41:05.513321 tarball item: container-src/k8s/base_engine.py (5164 bytes) [container.docker.engine] bytes=5164 file=container-src/k8s/base_engine.py 2017-06-26T14:41:05.513409 tarball item: container-src/exceptions.py (1991 bytes) [container.docker.engine] bytes=1991 file=container-src/exceptions.py 2017-06-26T14:41:05.513494 tarball item: container-src/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates 2017-06-26T14:41:05.513604 tarball item: container-src/templates/install-docker-compose.j2.yml (712 bytes) [container.docker.engine] bytes=712 file=container-src/templates/install-docker-compose.j2.yml 2017-06-26T14:41:05.513691 tarball item: container-src/templates/ansible-container-inventory.py (1230 bytes) [container.docker.engine] bytes=1230 file=container-src/templates/ansible-container-inventory.py 2017-06-26T14:41:05.513776 tarball item: container-src/templates/run-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/run-docker-compose.j2.yml 2017-06-26T14:41:05.513877 tarball item: container-src/templates/builder.sh (620 bytes) [container.docker.engine] bytes=620 file=container-src/templates/builder.sh 2017-06-26T14:41:05.513992 tarball item: container-src/templates/role (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role 2017-06-26T14:41:05.514106 tarball item: container-src/templates/role/defaults (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/defaults 2017-06-26T14:41:05.514205 tarball item: container-src/templates/role/defaults/main.j2.yml (55 bytes) [container.docker.engine] bytes=55 file=container-src/templates/role/defaults/main.j2.yml 2017-06-26T14:41:05.514292 tarball item: container-src/templates/role/.travis.j2.yml (540 bytes) [container.docker.engine] bytes=540 file=container-src/templates/role/.travis.j2.yml 2017-06-26T14:41:05.514387 tarball item: container-src/templates/role/meta (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/meta 2017-06-26T14:41:05.514477 tarball item: container-src/templates/role/meta/main.j2.yml (3220 bytes) [container.docker.engine] bytes=3220 file=container-src/templates/role/meta/main.j2.yml 2017-06-26T14:41:05.514564 tarball item: container-src/templates/role/test (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/test 2017-06-26T14:41:05.514650 tarball item: container-src/templates/role/test/test.j2.yml (81 bytes) [container.docker.engine] bytes=81 file=container-src/templates/role/test/test.j2.yml 2017-06-26T14:41:05.514736 tarball item: container-src/templates/role/README.j2.md (1287 bytes) [container.docker.engine] bytes=1287 file=container-src/templates/role/README.j2.md 2017-06-26T14:41:05.514825 tarball item: container-src/templates/ansible.cfg (41 bytes) [container.docker.engine] bytes=41 file=container-src/templates/ansible.cfg 2017-06-26T14:41:05.514912 tarball item: container-src/templates/hosts.j2 (90 bytes) [container.docker.engine] bytes=90 file=container-src/templates/hosts.j2 2017-06-26T14:41:05.515022 tarball item: container-src/templates/restart-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/restart-docker-compose.j2.yml 2017-06-26T14:41:05.515112 tarball item: container-src/templates/compose_versioned.j2.yml (237 bytes) [container.docker.engine] bytes=237 file=container-src/templates/compose_versioned.j2.yml 2017-06-26T14:41:05.515200 tarball item: container-src/templates/wait_on_host.py (2365 bytes) [container.docker.engine] bytes=2365 file=container-src/templates/wait_on_host.py 2017-06-26T14:41:05.515285 tarball item: container-src/templates/ansible-dockerfile.j2 (1194 bytes) [container.docker.engine] bytes=1194 file=container-src/templates/ansible-dockerfile.j2 2017-06-26T14:41:05.515376 tarball item: container-src/templates/init (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/init 2017-06-26T14:41:05.515476 tarball item: container-src/templates/init/requirements.j2.yml (298 bytes) [container.docker.engine] bytes=298 file=container-src/templates/init/requirements.j2.yml 2017-06-26T14:41:05.515591 tarball item: container-src/templates/init/ansible-requirements.j2.txt (130 bytes) [container.docker.engine] bytes=130 file=container-src/templates/init/ansible-requirements.j2.txt 2017-06-26T14:41:05.515738 tarball item: container-src/templates/init/container.j2.yml (2116 bytes) [container.docker.engine] bytes=2116 file=container-src/templates/init/container.j2.yml 2017-06-26T14:41:05.515881 tarball item: container-src/templates/init/meta.j2.yml (1231 bytes) [container.docker.engine] bytes=1231 file=container-src/templates/init/meta.j2.yml 2017-06-26T14:41:05.516049 tarball item: container-src/templates/init/ansible.j2.cfg (145 bytes) [container.docker.engine] bytes=145 file=container-src/templates/init/ansible.j2.cfg 2017-06-26T14:41:05.516217 tarball item: container-src/templates/listhosts-docker-compose.j2.yml (1640 bytes) [container.docker.engine] bytes=1640 file=container-src/templates/listhosts-docker-compose.j2.yml 2017-06-26T14:41:05.516424 tarball item: container-src/templates/build-docker-compose.j2.yml (1635 bytes) [container.docker.engine] bytes=1635 file=container-src/templates/build-docker-compose.j2.yml 2017-06-26T14:41:05.516611 tarball item: container-src/templates/stop-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/stop-docker-compose.j2.yml 2017-06-26T14:41:05.516716 tarball item: container-src/__init__.pyc (1226 bytes) [container.docker.engine] bytes=1226 file=container-src/__init__.pyc 2017-06-26T14:41:05.516807 tarball item: container-src/docker (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker 2017-06-26T14:41:05.516899 tarball item: container-src/docker/deploy.py (248 bytes) [container.docker.engine] bytes=248 file=container-src/docker/deploy.py 2017-06-26T14:41:05.516986 tarball item: container-src/docker/tests (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests 2017-06-26T14:41:05.517073 tarball item: container-src/docker/tests/import (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import 2017-06-26T14:41:05.517160 tarball item: container-src/docker/tests/import/blue-fish.txt (10 bytes) [container.docker.engine] bytes=10 file=container-src/docker/tests/import/blue-fish.txt 2017-06-26T14:41:05.517246 tarball item: container-src/docker/tests/import/Dockerfile (1151 bytes) [container.docker.engine] bytes=1151 file=container-src/docker/tests/import/Dockerfile 2017-06-26T14:41:05.517338 tarball item: container-src/docker/tests/import/red-fish (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/red-fish 2017-06-26T14:41:05.517444 tarball item: container-src/docker/tests/import/red-fish/lulz.txt (10 bytes) [container.docker.engine] bytes=10 file=container-src/docker/tests/import/red-fish/lulz.txt 2017-06-26T14:41:05.517549 tarball item: container-src/docker/tests/import/lulz.tgz (59072 bytes) [container.docker.engine] bytes=59072 file=container-src/docker/tests/import/lulz.tgz 2017-06-26T14:41:05.517682 tarball item: container-src/docker/tests/import/two-fish (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/two-fish 2017-06-26T14:41:05.518048 tarball item: container-src/docker/tests/import/two-fish/who.txt (7 bytes) [container.docker.engine] bytes=7 file=container-src/docker/tests/import/two-fish/who.txt 2017-06-26T14:41:05.518410 tarball item: container-src/docker/tests/import/two-fish/green-eggs (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/two-fish/green-eggs 2017-06-26T14:41:05.518543 tarball item: container-src/docker/tests/import/two-fish/green-eggs/ham.txt (5 bytes) [container.docker.engine] bytes=5 file=container-src/docker/tests/import/two-fish/green-eggs/ham.txt 2017-06-26T14:41:05.518631 tarball item: container-src/docker/tests/import/one-fish.txt (6 bytes) [container.docker.engine] bytes=6 file=container-src/docker/tests/import/one-fish.txt 2017-06-26T14:41:05.518712 tarball item: container-src/docker/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/templates 2017-06-26T14:41:05.518835 tarball item: container-src/docker/templates/conductor-dockerfile.j2 (2901 bytes) [container.docker.engine] bytes=2901 file=container-src/docker/templates/conductor-dockerfile.j2 2017-06-26T14:41:05.518921 tarball item: container-src/docker/files (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/files 2017-06-26T14:41:05.519125 tarball item: container-src/docker/files/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=container-src/docker/files/get-pip.py 2017-06-26T14:41:05.519219 tarball item: container-src/docker/importer.py (23310 bytes) [container.docker.engine] bytes=23310 file=container-src/docker/importer.py 2017-06-26T14:41:05.519307 tarball item: container-src/docker/engine.py (34751 bytes) [container.docker.engine] bytes=34751 file=container-src/docker/engine.py 2017-06-26T14:41:05.519402 tarball item: container-src/docker/__init__.py (205 bytes) [container.docker.engine] bytes=205 file=container-src/docker/__init__.py 2017-06-26T14:41:05.519506 tarball item: container-src/utils (0 bytes) [container.docker.engine] bytes=0L file=container-src/utils 2017-06-26T14:41:05.519657 tarball item: container-src/utils/logmux.py (1313 bytes) [container.docker.engine] bytes=1313 file=container-src/utils/logmux.py 2017-06-26T14:41:05.519814 tarball item: container-src/utils/_text.py (12304 bytes) [container.docker.engine] bytes=12304 file=container-src/utils/_text.py 2017-06-26T14:41:05.520049 tarball item: container-src/utils/galaxy.py (8120 bytes) [container.docker.engine] bytes=8120 file=container-src/utils/galaxy.py 2017-06-26T14:41:05.520267 tarball item: container-src/utils/temp.py (698 bytes) [container.docker.engine] bytes=698 file=container-src/utils/temp.py 2017-06-26T14:41:05.520451 tarball item: container-src/utils/visibility.py (3329 bytes) [container.docker.engine] bytes=3329 file=container-src/utils/visibility.py 2017-06-26T14:41:05.520557 tarball item: container-src/utils/__init__.py (10744 bytes) [container.docker.engine] bytes=10744 file=container-src/utils/__init__.py 2017-06-26T14:41:05.520651 tarball item: container-src/utils/loader.py (906 bytes) [container.docker.engine] bytes=906 file=container-src/utils/loader.py 2017-06-26T14:41:05.520748 tarball item: container-src/engine.py (6074 bytes) [container.docker.engine] bytes=6074 file=container-src/engine.py 2017-06-26T14:41:05.520833 tarball item: container-src/core.py (37981 bytes) [container.docker.engine] bytes=37981 file=container-src/core.py 2017-06-26T14:41:05.520920 tarball item: container-src/cli.py (19540 bytes) [container.docker.engine] bytes=19540 file=container-src/cli.py 2017-06-26T14:41:05.521006 tarball item: container-src/__init__.py (947 bytes) [container.docker.engine] bytes=947 file=container-src/__init__.py 2017-06-26T14:41:05.521094 tarball item: container-src/conductor-build/setup.py (3215 bytes) [container.docker.engine] bytes=3215 file=container-src/conductor-build/setup.py 2017-06-26T14:41:05.521186 tarball item: container-src/conductor-build/conductor-requirements.txt (294 bytes) [container.docker.engine] bytes=294 file=container-src/conductor-build/conductor-requirements.txt 2017-06-26T14:41:05.521274 tarball item: container-src/conductor-build/conductor-requirements.yml (60 bytes) [container.docker.engine] bytes=60 file=container-src/conductor-build/conductor-requirements.yml 2017-06-26T14:41:05.521360 tarball item: Dockerfile (1417 bytes) [container.docker.engine] bytes=1417 file=Dockerfile 2017-06-26T14:41:05.521869 Starting Docker build of Ansible Container Conductor image (please be patient)... [container.docker.engine] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=714 Step 1 : FROM centos:7 ---> 3bee3060bfc8 Step 2 : ENV ANSIBLE_CONTAINER 1 ---> Using cache ---> 10eb1c32a003 Step 3 : RUN yum update -y && yum install -y epel-release && yum install -y gcc git python-devel rsync libffi-devel openssl-devel && yum clean all ---> Using cache ---> 98242a561f51 Step 4 : ADD https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz /tmp/docker.tgz ---> Using cache ---> 2c58b494f8c3 Step 5 : COPY /contrib/get-pip.py /get-pip.py ---> Using cache ---> c0014cd64ef7 Step 6 : RUN python /get-pip.py && mkdir -p /etc/ansible/roles /_ansible/src && cd /usr/local/bin && tar -xz --strip-components=1 -f /tmp/docker.tgz ---> Using cache ---> 3b5d07000471 Step 7 : COPY /container-src /_ansible/container ---> a85c7622fed8 Removing intermediate container da2393cbcf1f Step 8 : RUN cd /_ansible && pip install -r container/conductor-build/conductor-requirements.txt && PYTHONPATH=. LC_ALL="en_US.UTF-8" python container/conductor-build/setup.py develop -v && ansible-galaxy install -p /etc/ansible/roles -r container/conductor-build/conductor-requirements.yml ---> Running in 5488d2f690c1 Collecting ansible>=2.3.0 (from -r container/conductor-build/conductor-requirements.txt (line 2)) Downloading ansible-2.3.1.0.tar.gz (4.3MB) Collecting openshift-1.0.0 from https://github.com/openshift/openshift-restclient-python/archive/master.tar.gz#egg=openshift-1.0.0 (from -r container/conductor-build/conductor-requirements.txt (line 3)) Downloading https://github.com/openshift/openshift-restclient-python/archive/master.tar.gz (698kB) Running setup.py (path:/tmp/pip-build-7vyRRF/openshift-1.0.0/setup.py) egg_info for package openshift-1.0.0 produced metadata for project name openshift. Fix your #egg=openshift-1.0.0 fragments. Collecting PyYAML>=3.12 (from -r container/conductor-build/conductor-requirements.txt (line 4)) Downloading PyYAML-3.12.tar.gz (253kB) Collecting docker-compose>=1.7 (from -r container/conductor-build/conductor-requirements.txt (line 5)) Downloading docker_compose-1.14.0-py2.py3-none-any.whl (97kB) Collecting requests>=2 (from -r container/conductor-build/conductor-requirements.txt (line 6)) Downloading requests-2.18.1-py2.py3-none-any.whl (88kB) Collecting ruamel.yaml>=0.14.2 (from -r container/conductor-build/conductor-requirements.txt (line 7)) Downloading ruamel.yaml-0.15.14-cp27-cp27mu-manylinux1_x86_64.whl (525kB) Collecting six>=1.10 (from -r container/conductor-build/conductor-requirements.txt (line 8)) Downloading six-1.10.0-py2.py3-none-any.whl Collecting structlog[dev]>=16.1 (from -r container/conductor-build/conductor-requirements.txt (line 9)) Downloading structlog-17.2.0-py2.py3-none-any.whl Collecting python-string-utils>=0.6.0 (from -r container/conductor-build/conductor-requirements.txt (line 10)) Downloading python-string-utils-0.6.0.tar.gz Collecting jinja2 (from ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB) Collecting paramiko (from ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading paramiko-2.2.1-py2.py3-none-any.whl (176kB) Collecting pycrypto>=2.6 (from ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading pycrypto-2.6.1.tar.gz (446kB) Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Collecting dictdiffer (from openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading dictdiffer-0.6.1-py2.py3-none-any.whl Collecting kubernetes~=1.0.0 (from openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading kubernetes-1.0.2-py2.py3-none-any.whl (577kB) Collecting cached-property<2,>=1.2.0 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading cached_property-1.3.0-py2.py3-none-any.whl Collecting backports.ssl-match-hostname>=3.5; python_version < "3.5" (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading backports.ssl_match_hostname-3.5.0.1.tar.gz Collecting ipaddress>=1.0.16; python_version < "3.3" (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading ipaddress-1.0.18-py2-none-any.whl Collecting jsonschema<3,>=2.5.1 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading jsonschema-2.6.0-py2.py3-none-any.whl Collecting texttable<0.9,>=0.8.1 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading texttable-0.8.8.tar.gz Collecting docker<3.0,>=2.3.0 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading docker-2.3.0-py2.py3-none-any.whl (108kB) Collecting enum34<2,>=1.0.4; python_version < "3.4" (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading enum34-1.1.6-py2-none-any.whl Collecting websocket-client<1.0,>=0.32.0 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading websocket_client-0.44.0-py2.py3-none-any.whl (199kB) Collecting colorama<0.4,>=0.3.7 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading colorama-0.3.9-py2.py3-none-any.whl Collecting docopt<0.7,>=0.6.1 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading docopt-0.6.2.tar.gz Collecting dockerpty<0.5,>=0.4.1 (from docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading dockerpty-0.4.1.tar.gz Collecting chardet<3.1.0,>=3.0.2 (from requests>=2->-r container/conductor-build/conductor-requirements.txt (line 6)) Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB) Collecting certifi>=2017.4.17 (from requests>=2->-r container/conductor-build/conductor-requirements.txt (line 6)) Downloading certifi-2017.4.17-py2.py3-none-any.whl (375kB) Collecting idna<2.6,>=2.5 (from requests>=2->-r container/conductor-build/conductor-requirements.txt (line 6)) Downloading idna-2.5-py2.py3-none-any.whl (55kB) Collecting urllib3<1.22,>=1.21.1 (from requests>=2->-r container/conductor-build/conductor-requirements.txt (line 6)) Downloading urllib3-1.21.1-py2.py3-none-any.whl (131kB) Collecting ruamel.ordereddict; platform_python_implementation == "CPython" and python_version <= "2.7" (from ruamel.yaml>=0.14.2->-r container/conductor-build/conductor-requirements.txt (line 7)) Downloading ruamel.ordereddict-0.4.9-cp27-cp27mu-manylinux1_x86_64.whl (99kB) Collecting MarkupSafe>=0.23 (from jinja2->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading MarkupSafe-1.0.tar.gz Collecting cryptography>=1.1 (from paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading cryptography-1.9.tar.gz (409kB) Collecting bcrypt>=3.1.3 (from paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading bcrypt-3.1.3-cp27-cp27mu-manylinux1_x86_64.whl (57kB) Collecting pyasn1>=0.1.7 (from paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB) Collecting pynacl>=1.0.1 (from paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl (539kB) Collecting python-dateutil (from kubernetes~=1.0.0->openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB) Collecting oauth2client (from kubernetes~=1.0.0->openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading oauth2client-4.1.1-py2.py3-none-any.whl (185kB) Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading functools32-3.2.3-2.zip Collecting docker-pycreds>=0.2.1 (from docker<3.0,>=2.3.0->docker-compose>=1.7->-r container/conductor-build/conductor-requirements.txt (line 5)) Downloading docker_pycreds-0.2.1-py2.py3-none-any.whl Collecting asn1crypto>=0.21.0 (from cryptography>=1.1->paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB) Collecting cffi>=1.7 (from cryptography>=1.1->paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading cffi-1.10.0-cp27-cp27mu-manylinux1_x86_64.whl (392kB) Collecting pyasn1-modules>=0.0.5 (from oauth2client->kubernetes~=1.0.0->openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading pyasn1_modules-0.0.9-py2.py3-none-any.whl (60kB) Collecting rsa>=3.1.4 (from oauth2client->kubernetes~=1.0.0->openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading rsa-3.4.2-py2.py3-none-any.whl (46kB) Collecting httplib2>=0.9.1 (from oauth2client->kubernetes~=1.0.0->openshift->-r container/conductor-build/conductor-requirements.txt (line 3)) Downloading httplib2-0.10.3.tar.gz (204kB) Collecting pycparser (from cffi>=1.7->cryptography>=1.1->paramiko->ansible>=2.3.0->-r container/conductor-build/conductor-requirements.txt (line 2)) Downloading pycparser-2.17.tar.gz (231kB) Building wheels for collected packages: ansible, PyYAML, python-string-utils, pycrypto, backports.ssl-match-hostname, texttable, docopt, dockerpty, MarkupSafe, cryptography, functools32, httplib2, pycparser Running setup.py bdist_wheel for ansible: started Running setup.py bdist_wheel for ansible: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/db/42/8c/a00fdd1e70acccc3f3b27eb4265cbfcccb5f6a52a4b9195403 Running setup.py bdist_wheel for PyYAML: started Running setup.py bdist_wheel for PyYAML: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc Running setup.py bdist_wheel for python-string-utils: started Running setup.py bdist_wheel for python-string-utils: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/d0/1e/51/115797342efee448467a3d92203678d1d690772d25c7057ee1 Running setup.py bdist_wheel for pycrypto: started Running setup.py bdist_wheel for pycrypto: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/80/1f/94/f76e9746864f198eb0e304aeec319159fa41b082f61281ffce Running setup.py bdist_wheel for backports.ssl-match-hostname: started Running setup.py bdist_wheel for backports.ssl-match-hostname: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/5d/72/36/b2a31507b613967b728edc33378a5ff2ada0f62855b93c5ae1 Running setup.py bdist_wheel for texttable: started Running setup.py bdist_wheel for texttable: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/63/d6/7c/2a14851751d06bbfa54b7339678df0939d123b26df88edd882 Running setup.py bdist_wheel for docopt: started Running setup.py bdist_wheel for docopt: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/b2/16/5f/c33a2bb5f2dce71205f8e65cbfd05647d79d441282be31fd82 Running setup.py bdist_wheel for dockerpty: started Running setup.py bdist_wheel for dockerpty: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/ae/d5/14/a25cbb003bd70ffefba0fdfbd5a5c4ea4d2a11bde7736f7482 Running setup.py bdist_wheel for MarkupSafe: started Running setup.py bdist_wheel for MarkupSafe: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57 Running setup.py bdist_wheel for cryptography: started Running setup.py bdist_wheel for cryptography: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/ff/a5/ef/186bb4f6a89ef0bb8373bf53e5c9884b96722f0857bd3111b8 Running setup.py bdist_wheel for functools32: started Running setup.py bdist_wheel for functools32: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/3c/d0/09/cd78d0ff4d6cfecfbd730782a7815a4571cd2cd4d2ed6e69d9 Running setup.py bdist_wheel for httplib2: started Running setup.py bdist_wheel for httplib2: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/ca/ac/5f/749651f7925b231103f5316cacca82a487810c22d30f011c0c Running setup.py bdist_wheel for pycparser: started Running setup.py bdist_wheel for pycparser: finished with status 'done' Stored in directory: /root/.cache/pip/wheels/a8/0b/41/dc95621f9d3a0da7bc191b8a71f0e8182ffd3cc5f33ac55005 Successfully built ansible PyYAML python-string-utils pycrypto backports.ssl-match-hostname texttable docopt dockerpty MarkupSafe cryptography functools32 httplib2 pycparser Installing collected packages: MarkupSafe, jinja2, PyYAML, idna, asn1crypto, six, enum34, ipaddress, pycparser, cffi, cryptography, bcrypt, pyasn1, pynacl, paramiko, pycrypto, ansible, dictdiffer, websocket-client, python-dateutil, pyasn1-modules, rsa, httplib2, oauth2client, urllib3, certifi, kubernetes, python-string-utils, ruamel.ordereddict, ruamel.yaml, openshift, cached-property, backports.ssl-match-hostname, functools32, jsonschema, texttable, chardet, requests, docker-pycreds, docker, colorama, docopt, dockerpty, docker-compose, structlog Running setup.py install for openshift: started Running setup.py install for openshift: finished with status 'done' Found existing installation: chardet 2.2.1 Uninstalling chardet-2.2.1: Successfully uninstalled chardet-2.2.1 Successfully installed MarkupSafe-1.0 PyYAML-3.12 ansible-2.3.1.0 asn1crypto-0.22.0 backports.ssl-match-hostname-3.5.0.1 bcrypt-3.1.3 cached-property-1.3.0 certifi-2017.4.17 cffi-1.10.0 chardet-3.0.4 colorama-0.3.9 cryptography-1.9 dictdiffer-0.6.1 docker-2.3.0 docker-compose-1.14.0 docker-pycreds-0.2.1 dockerpty-0.4.1 docopt-0.6.2 enum34-1.1.6 functools32-3.2.3.post2 httplib2-0.10.3 idna-2.5 ipaddress-1.0.18 jinja2-2.9.6 jsonschema-2.6.0 kubernetes-1.0.2 oauth2client-4.1.1 openshift-1.0.0-snapshot paramiko-2.2.1 pyasn1-0.2.3 pyasn1-modules-0.0.9 pycparser-2.17 pycrypto-2.6.1 pynacl-1.1.2 python-dateutil-2.6.0 python-string-utils-0.6.0 requests-2.18.1 rsa-3.4.2 ruamel.ordereddict-0.4.9 ruamel.yaml-0.15.14 six-1.10.0 structlog-17.2.0 texttable-0.8.8 urllib3-1.21.1 websocket-client-0.44.0 running develop running egg_info creating ansible_container.egg-info writing ansible_container.egg-info/PKG-INFO writing top-level names to ansible_container.egg-info/top_level.txt writing dependency_links to ansible_container.egg-info/dependency_links.txt writing entry points to ansible_container.egg-info/entry_points.txt writing manifest file 'ansible_container.egg-info/SOURCES.txt' reading manifest file 'ansible_container.egg-info/SOURCES.txt' writing manifest file 'ansible_container.egg-info/SOURCES.txt' running build_ext Creating /usr/lib/python2.7/site-packages/ansible-container.egg-link (link to .) Adding ansible-container 0.9.1 to easy-install.pth file Installing conductor script to /usr/bin Installed /_ansible Processing dependencies for ansible-container==0.9.1 Finished processing dependencies for ansible-container==0.9.1 - downloading role 'kubernetes-modules', owned by ansible - downloading role from https://github.com/ansible/ansible-kubernetes-modules/archive/master.tar.gz - extracting kubernetes-modules to /etc/ansible/roles/kubernetes-modules - kubernetes-modules (master) was installed successfully ---> 9cc0a5b88274 Removing intermediate container 5488d2f690c1 Step 9 : COPY /build-src /_ansible/build ---> ce935ed4fb60 Removing intermediate container 57a95bfb971f Step 10 : RUN ( test -f /_ansible/build/ansible-requirements.txt && pip install --no-cache-dir -r /_ansible/build/ansible-requirements.txt || true ) && ( test -f /_ansible/build/requirements.yml && ansible-galaxy install -p /etc/ansible/roles -r /_ansible/build/requirements.yml || true ) && ( test -f /_ansible/build/ansible.cfg && cp /_ansible/build/ansible.cfg /etc/ansible/ansible.cfg || true) ---> Running in cbbbf8d5de94 You must give at least one requirement to install (see "pip help install") ERROR! No roles found in file: /_ansible/build/requirements.yml ---> c4a4f40d3cc0 Removing intermediate container cbbbf8d5de94 Step 11 : VOLUME /usr ---> Running in 007d43a05465 ---> fd1de8dd637a Removing intermediate container 007d43a05465 Successfully built fd1de8dd637a 2017-06-26T14:42:43.119785 Cleaning up temporary directory [container.utils.temp] caller_file=/home/stas/projects/ansible-container/container/utils/temp.py caller_func=__exit__ caller_line=22 path=/tmp/tmpC0mPFQ 2017-06-26T14:42:43.120484 Config settings [container.core] caller_file=/home/stas/projects/ansible-container/container/core.py caller_func=hostcmd_build caller_line=160 config= rawsettings={"conductor_base": "centos:7", "pwd": "/home/stas/projects/bugs/ansible-container-django"} settings={"conductor_base": "centos:7", "pwd": "/home/stas/projects/bugs/ansible-container-django"} tconf= 2017-06-26T14:42:43.121055 Call: Engine.run_conductor [container.docker.engine] args=('build', {'defaults': ordereddict([('POSTGRES_USER', 'django'), ('POSTGRES_PASSWORD', 'sesame'), ('POSTGRES_DB', 'django'), ('DJANGO_PORT', 8080), ('relax', True)]), 'settings': CommentedMap([('conductor_base', 'centos:7'), ('pwd', '/home/stas/projects/bugs/ansible-container-django')]), 'version': '2', 'volumes': CommentedMap([('static', CommentedMap())]), 'services': CommentedMap([('django', CommentedMap([('from', 'centos:7'), ('roles', ['django-gunicorn']), ('environment', CommentedMap([('DATABASE_URL', 'pgsql://{{ POSTGRES_USER }}:{{ POSTGRES_PASSWORD }}@postgres:5432/{{ POSTGRES_DB }}'), ('DJANGO_ROOT', '{{ DJANGO_ROOT }}'), ('DJANGO_VENV', '{{ DJANGO_VENV }}')])), ('links', ['postgres', 'postgres:postgresql']), ('ports', ['{{ DJANGO_PORT }}']), ('working_dir', '{{ DJANGO_ROOT }}'), ('user', '{{ DJANGO_USER }}'), ('command', ['{{ DJANGO_VENV }}/bin/gunicorn', '-w', '2', '-b', '0.0.0.0:{{ DJANGO_PORT }}', 'project.wsgi:application']), ('entrypoint', ['/usr/bin/dumb-init', '/usr/bin/entrypoint.sh']), ('volumes', ['static:{{ DJANGO_ROOT }}'])])), ('nginx', CommentedMap([('from', 'centos:7'), ('roles', ['nginx']), ('ports', ['{{ DJANGO_PORT }}:8000']), ('user', 'nginx'), ('links', ['django']), ('command', ['/usr/bin/dumb-init', 'nginx', '-c', '/etc/nginx/nginx.conf']), ('volumes', ['static:{{ STATIC_ROOT }}'])])), ('postgres', CommentedMap([('from', 'postgres:9.6'), ('environment', CommentedMap([('POSTGRES_USER', '{{ POSTGRES_USER }}'), ('POSTGRES_PASSWORD', '{{ POSTGRES_PASSWORD }}'), ('POSTGRES_DB', '{{ POSTGRES_DB }}')]))]))]), 'registries': CommentedMap()}, '/home/stas/projects/bugs/ansible-container-django', {'with_volumes': [], 'cache': True, 'local_python': False, 'with_variables': [], 'selinux': True, 'purge_last': True, 'subcommand': 'build', 'no_conductor_runtime': True, 'devel': False, 'roles_path': None, 'ansible_options': u'', 'flatten': False, 'debug': True, 'save_conductor_container': False}) caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={} 2017-06-26T14:42:43.123024 Docker run: [container.docker.engine] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=run_conductor caller_line=300 image=u'sha256:fd1de8dd637a1c97f847e77296d67821a7848920ec544cbabcddede226aeff38' params={'name': u'ansible-container-django_conductor', 'cap_add': ['SYS_ADMIN'], 'environment': {'DOCKER_HOST': 'unix:///var/run/docker.sock', 'ANSIBLE_ROLES_PATH': '/src/roles:/etc/ansible/roles'}, 'working_dir': '/src', 'command': ['conductor', 'build', '--project-name', 'ansible-container-django', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNhY2hlIjogdHJ1ZSwgImxvY2FsX3B5dGhvbiI6IGZhbHNlLCAid2l0aF92YXJpYWJsZXMiOiBbXSwgInNlbGludXgiOiB0cnVlLCAicHVyZ2VfbGFzdCI6IHRydWUsICJzdWJjb21tYW5kIjogImJ1aWxkIiwgIm5vX2NvbmR1Y3Rvcl9ydW50aW1lIjogdHJ1ZSwgImRldmVsIjogZmFsc2UsICJyb2xlc19wYXRoIjogbnVsbCwgImFuc2libGVfb3B0aW9ucyI6ICIiLCAiZmxhdHRlbiI6IGZhbHNlLCAiZGVidWciOiB0cnVlLCAic2F2ZV9jb25kdWN0b3JfY29udGFpbmVyIjogZmFsc2V9', '--config', u'eyJkZWZhdWx0cyI6IFtbIlBPU1RHUkVTX1VTRVIiLCAiZGphbmdvIl0sIFsiUE9TVEdSRVNfUEFTU1dPUkQiLCAic2VzYW1lIl0sIFsiUE9TVEdSRVNfREIiLCAiZGphbmdvIl0sIFsiREpBTkdPX1BPUlQiLCA4MDgwXSwgWyJyZWxheCIsIHRydWVdXSwgInNldHRpbmdzIjogW1siY29uZHVjdG9yX2Jhc2UiLCAiY2VudG9zOjciXSwgWyJwd2QiLCAiL2hvbWUvc3Rhcy9wcm9qZWN0cy9idWdzL2Fuc2libGUtY29udGFpbmVyLWRqYW5nbyJdXSwgInZlcnNpb24iOiAiMiIsICJ2b2x1bWVzIjogW1sic3RhdGljIiwge31dXSwgInNlcnZpY2VzIjogW1siZGphbmdvIiwgeyJmcm9tIjogImNlbnRvczo3IiwgInJvbGVzIjogWyJkamFuZ28tZ3VuaWNvcm4iXSwgImVudmlyb25tZW50IjogeyJEQVRBQkFTRV9VUkwiOiAicGdzcWw6Ly97eyBQT1NUR1JFU19VU0VSIH19Ont7IFBPU1RHUkVTX1BBU1NXT1JEIH19QHBvc3RncmVzOjU0MzIve3sgUE9TVEdSRVNfREIgfX0iLCAiREpBTkdPX1JPT1QiOiAie3sgREpBTkdPX1JPT1QgfX0iLCAiREpBTkdPX1ZFTlYiOiAie3sgREpBTkdPX1ZFTlYgfX0ifSwgImxpbmtzIjogWyJwb3N0Z3JlcyIsICJwb3N0Z3Jlczpwb3N0Z3Jlc3FsIl0sICJwb3J0cyI6IFsie3sgREpBTkdPX1BPUlQgfX0iXSwgIndvcmtpbmdfZGlyIjogInt7IERKQU5HT19ST09UIH19IiwgInVzZXIiOiAie3sgREpBTkdPX1VTRVIgfX0iLCAiY29tbWFuZCI6IFsie3sgREpBTkdPX1ZFTlYgfX0vYmluL2d1bmljb3JuIiwgIi13IiwgIjIiLCAiLWIiLCAiMC4wLjAuMDp7eyBESkFOR09fUE9SVCB9fSIsICJwcm9qZWN0LndzZ2k6YXBwbGljYXRpb24iXSwgImVudHJ5cG9pbnQiOiBbIi91c3IvYmluL2R1bWItaW5pdCIsICIvdXNyL2Jpbi9lbnRyeXBvaW50LnNoIl0sICJ2b2x1bWVzIjogWyJzdGF0aWM6e3sgREpBTkdPX1JPT1QgfX0iXX1dLCBbIm5naW54IiwgeyJmcm9tIjogImNlbnRvczo3IiwgInJvbGVzIjogWyJuZ2lueCJdLCAicG9ydHMiOiBbInt7IERKQU5HT19QT1JUIH19OjgwMDAiXSwgInVzZXIiOiAibmdpbngiLCAibGlua3MiOiBbImRqYW5nbyJdLCAiY29tbWFuZCI6IFsiL3Vzci9iaW4vZHVtYi1pbml0IiwgIm5naW54IiwgIi1jIiwgIi9ldGMvbmdpbngvbmdpbnguY29uZiJdLCAidm9sdW1lcyI6IFsic3RhdGljOnt7IFNUQVRJQ19ST09UIH19Il19XSwgWyJwb3N0Z3JlcyIsIHsiZnJvbSI6ICJwb3N0Z3Jlczo5LjYiLCAiZW52aXJvbm1lbnQiOiB7IlBPU1RHUkVTX1VTRVIiOiAie3sgUE9TVEdSRVNfVVNFUiB9fSIsICJQT1NUR1JFU19QQVNTV09SRCI6ICJ7eyBQT1NUR1JFU19QQVNTV09SRCB9fSIsICJQT1NUR1JFU19EQiI6ICJ7eyBQT1NUR1JFU19EQiB9fSJ9fV1dLCAicmVnaXN0cmllcyI6IFtdfQ==', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/home/stas/projects/bugs/ansible-container-django': {'bind': '/src', 'mode': 'ro'}}, 'detach': True, 'privileged': True} Parsing conductor CLI args. 2017-06-26T11:42:44.551803 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=266 2017-06-26T11:42:44.553263 Processing section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=volumes 2017-06-26T11:42:44.555157 Processing section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=registries 2017-06-26T11:42:44.556493 Processing service... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=281 service=u'django' service_data={u'from': u'centos:7', u'roles': [u'django-gunicorn'], u'links': [u'postgres', u'postgres:postgresql'], u'environment': {u'DJANGO_VENV': u'{{ DJANGO_VENV }}', u'DATABASE_URL': u'pgsql://{{ POSTGRES_USER }}:{{ POSTGRES_PASSWORD }}@postgres:5432/{{ POSTGRES_DB }}', u'DJANGO_ROOT': u'{{ DJANGO_ROOT }}'}, u'working_dir': u'{{ DJANGO_ROOT }}', u'command': [u'{{ DJANGO_VENV }}/bin/gunicorn', u'-w', u'2', u'-b', u'0.0.0.0:{{ DJANGO_PORT }}', u'project.wsgi:application'], u'user': u'{{ DJANGO_USER }}', u'volumes': [u'static:{{ DJANGO_ROOT }}'], u'entrypoint': [u'/usr/bin/dumb-init', u'/usr/bin/entrypoint.sh'], u'ports': [u'{{ DJANGO_PORT }}']} 2017-06-26T11:42:44.564671 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=304 defaults={"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true, "DJANGO_RPM_DEPS": ["postgresql-devel", "python-devel", "gcc", "python-virtualenv", "nc", "rsync"], "DJANGO_USER": "django", "DJANGO_ROOT": "/django", "DJANGO_VENV": "/venv", "DJANGO_STATIC_ROOT": "/static"} service=u'django' 2017-06-26T11:42:44.591053 Processing service... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=281 service=u'nginx' service_data={u'from': u'centos:7', u'roles': [u'nginx'], u'links': [u'django'], u'command': [u'/usr/bin/dumb-init', u'nginx', u'-c', u'/etc/nginx/nginx.conf'], u'user': u'nginx', u'volumes': [u'static:{{ STATIC_ROOT }}'], u'ports': [u'{{ DJANGO_PORT }}:8000']} 2017-06-26T11:42:44.599869 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=304 defaults={"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true, "STATIC_ROOT": "/static", "PIDFILE_DIR": "/run/nginx", "ASSET_PATHS": [], "PROXY": "yes", "PROXY_PASS": "http://django:8080", "PROXY_LOCATION": "/"} service=u'nginx' 2017-06-26T11:42:44.608733 Processing service... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=281 service=u'postgres' service_data={u'environment': {u'POSTGRES_PASSWORD': u'{{ POSTGRES_PASSWORD }}', u'POSTGRES_USER': u'{{ POSTGRES_USER }}', u'POSTGRES_DB': u'{{ POSTGRES_DB }}'}, u'from': u'postgres:9.6'} 2017-06-26T11:42:44.611355 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=304 defaults={"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true} service=u'postgres' 2017-06-26T11:42:44.615842 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=353 services={"django": {"from": "centos:7", "roles": ["django-gunicorn"], "links": ["postgres", "postgres:postgresql"], "environment": {"DJANGO_VENV": "/venv", "DATABASE_URL": "pgsql://django:sesame@postgres:5432/django", "DJANGO_ROOT": "/django"}, "working_dir": "/django", "command": ["/venv/bin/gunicorn", "-w", "2", "-b", "0.0.0.0:8080", "project.wsgi:application"], "user": "django", "volumes": ["static:/django"], "entrypoint": ["/usr/bin/dumb-init", "/usr/bin/entrypoint.sh"], "ports": ["8080"], "defaults": {"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true, "DJANGO_RPM_DEPS": ["postgresql-devel", "python-devel", "gcc", "python-virtualenv", "nc", "rsync"], "DJANGO_USER": "django", "DJANGO_ROOT": "/django", "DJANGO_VENV": "/venv", "DJANGO_STATIC_ROOT": "/static"}}, "nginx": {"from": "centos:7", "ports": ["8080:8000"], "user": "nginx", "command": ["/usr/bin/dumb-init", "nginx", "-c", "/etc/nginx/nginx.conf"], "roles": ["nginx"], "links": ["django"], "volumes": ["static:/static"], "defaults": {"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true, "STATIC_ROOT": "/static", "PIDFILE_DIR": "/run/nginx", "ASSET_PATHS": [], "PROXY": "yes", "PROXY_PASS": "http://django:8080", "PROXY_LOCATION": "/"}}, "postgres": {"environment": {"POSTGRES_PASSWORD": "sesame", "POSTGRES_USER": "django", "POSTGRES_DB": "django"}, "from": "postgres:9.6", "defaults": {"POSTGRES_USER": "django", "POSTGRES_PASSWORD": "sesame", "POSTGRES_DB": "django", "DJANGO_PORT": 8080, "relax": true}}} 2017-06-26T11:42:44.617933 Loading engine capabilities [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD'] engine=docker 2017-06-26T11:42:44.633502 2017-06-26T11:42:44.633502 Dockerâ„¢ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=612 project=ansible-container-django 2017-06-26T11:42:44.636212 Building service... [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=618 project=ansible-container-django service=u'django' 2017-06-26T11:42:44.644620 Base fingerprint hash = d5818d776479534e635584a2d85940c026cfa8911fd8c95a99017234daaae40a [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=623 hash=d5818d776479534e635584a2d85940c026cfa8911fd8c95a99017234daaae40a service=u'django' 2017-06-26T11:42:44.813012 Still trying to keep cache. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=638 service=u'django' 2017-06-26T11:42:44.822233 Cache busted! No layer found [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=653 fingerprint=05b5da356b3ac581c0e546c753fdf5815a9edb824f613e273e2fb5d9cf11948a service=u'django' 2017-06-26T11:42:44.836922 Call: Engine.run_container [container.docker.engine] args=(u'sha256:3bee3060bfc81c061ce7069df35ce090593bda584d4ef464bc0f38086c11371d', u'django') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'ansible-container-django_django', 'environment': {'PYTHONPATH': '/_usr/lib/python2.7', 'CPATH': '/_usr/include:/_usr/local/include', 'LD_LIBRARY_PATH': '/_usr/lib:/_usr/lib64:/_usr/local/lib', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin'}, 'working_dir': '/', 'entrypoint': [], 'user': 'root', 'volumes': {u'72023ae44339ac388ee99b2a5a29466cf6047e76f1156c0d89f5a520f657aa01': {'bind': '/_usr', 'mode': 'ro'}}, 'command': 'sh -c "while true; do sleep 1; done"', 'privileged': True} 2017-06-26T11:42:44.839523 Removing keys [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=168 keys=[u'from', 'defaults', u'roles', 'links'] 2017-06-26T11:42:44.843287 Running container in docker [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=192 image=u'sha256:3bee3060bfc81c061ce7069df35ce090593bda584d4ef464bc0f38086c11371d' params={"environment": {"PYTHONPATH": "/_usr/lib/python2.7", "CPATH": "/_usr/include:/_usr/local/include", "LD_LIBRARY_PATH": "/_usr/lib:/_usr/lib64:/_usr/local/lib", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin"}, "working_dir": "/", "command": "sh -c \"while true; do sleep 1; done\"", "user": "root", "volumes": {"72023ae44339ac388ee99b2a5a29466cf6047e76f1156c0d89f5a520f657aa01": {"bind": "/_usr", "mode": "ro"}}, "entrypoint": [], "ports": {"8080": [null]}, "name": "ansible-container-django_django", "privileged": true} 2017-06-26T11:42:44.979228 Container running [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=715 id=u'79e6dc4a7de1905ff12b1ce1d0b27009bf5b7babcd34c12e81bca61c2fac5a21' 2017-06-26T11:42:44.981981 writing playbook to /tmp/tmpXCRemK/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=486 2017-06-26T11:42:44.983222 playbook [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=487 playbook=[{'hosts': u'django', 'roles': ['django-gunicorn'], 'vars': {u'POSTGRES_USER': u'django', u'relax': True, u'POSTGRES_PASSWORD': u'sesame', 'DJANGO_STATIC_ROOT': '/static', u'POSTGRES_DB': u'django', 'DJANGO_ROOT': '/django', 'DJANGO_VENV': '/venv', 'DJANGO_RPM_DEPS': ['postgresql-devel', 'python-devel', 'gcc', 'python-virtualenv', 'nc', 'rsync'], u'DJANGO_PORT': 8080, 'DJANGO_USER': 'django'}}] 2017-06-26T11:42:44.986856 found dir /tmp/tmpXCRemK/files [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=510 2017-06-26T11:42:44.988082 found dir /tmp/tmpXCRemK/templates [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=510 2017-06-26T11:42:44.989274 found file /tmp/tmpXCRemK/hosts [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=513 2017-06-26T11:42:44.990464 found file /tmp/tmpXCRemK/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=513 2017-06-26T11:42:44.998463 Running Ansible Playbook [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=545 command=ansible-playbook -vvvv -i /tmp/tmpXCRemK/hosts -c docker /tmp/tmpXCRemK/playbook.yml cwd=/src Using /src/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: playbook.yml ********************************************************* 1 plays in /tmp/tmpXCRemK/playbook.yml PLAY [django] ****************************************************************** TASK [Gathering Facts] ********************************************************* fatal: [django]: FAILED! => { "failed": true, "msg": "Docker version check (['/usr/local/bin/docker', 'version', '--format', \"'{{.Server.Version}}'\"]) failed: Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.23)\n" } to retry, use: --limit @/tmp/tmpXCRemK/playbook.retry PLAY RECAP ********************************************************************* django : ok=0 changed=0 unreachable=0 failed=1 2017-06-26T11:42:45.448768 Error applying role! [container.core] caller_file=/_ansible/container/core.py caller_func=apply_role_to_container caller_line=603 engine= exit_code=2 playbook=[{'hosts': u'django', 'roles': ['django-gunicorn'], 'vars': {u'POSTGRES_USER': u'django', u'relax': True, u'POSTGRES_PASSWORD': u'sesame', 'DJANGO_STATIC_ROOT': '/static', u'POSTGRES_DB': u'django', 'DJANGO_ROOT': '/django', 'DJANGO_VENV': '/venv', 'DJANGO_RPM_DEPS': ['postgresql-devel', 'python-devel', 'gcc', 'python-virtualenv', 'nc', 'rsync'], u'DJANGO_PORT': 8080, 'DJANGO_USER': 'django'}}] 2017-06-26T11:42:45.450770 Playbook run finished. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=722 exit_code=2 Traceback (most recent call last): File "/usr/bin/conductor", line 11, in load_entry_point('ansible-container', 'console_scripts', 'conductor')() File "/_ansible/container/__init__.py", line 19, in __wrapped__ return fn(*args, **kwargs) File "/_ansible/container/cli.py", line 360, in conductor_commandline **params) File "/_ansible/container/__init__.py", line 19, in __wrapped__ return fn(*args, **kwargs) File "/_ansible/container/core.py", line 724, in conductorcmd_build raise RuntimeError('Build failed.') RuntimeError: Build failed. 2017-06-26T14:42:45.579694 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/home/stas/projects/ansible-container/container/docker/engine.py caller_func=await_conductor_command caller_line=327 command_rc=1 conductor_id=u'27df376c4fe96d03621af113c6a10c170ef423a1bafb116253692e75bfce9128' save_container=False 2017-06-26T14:42:45.583976 Conductor exited with status 1 [container.cli] caller_file=/home/stas/projects/ansible-container/container/cli.py caller_func=__call__ caller_line=280