Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

linux spec user: unable to find user root: no matching entries in passwd file #400

Closed
dougbtv opened this issue Mar 16, 2017 · 16 comments
Closed
Labels

Comments

@dougbtv
Copy link

dougbtv commented Mar 16, 2017

ISSUE TYPE
  • Bug Report
container.yml
defaults:
  PROXY_DOMAIN: "toad.tld"
  PROXY_LOG_LEVEL: "DEBUG"
version: '2'
services:
  # fails with "root user not found" (or some such.)
  proxy:
    image: traefik
    command: --web --docker --docker.domain={{ PROXY_DOMAIN }} --docker.exposedbydefault=false --logLevel={{ PROXY_LOG_LEVEL }}
    user: traefik
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /dev/null:/traefik.toml
  jenkins_master:
    image: centos:centos7
    # build:
    #   context: ./dockerfiles
    #   dockerfile: centos7_base
    # container_name: jenkins_master
    entrypoint: /sbin/init
    privileged: true
    # depends_on:
    #   - proxy
    # security_opt:
    #   - seccomp:unconfined
    volumes:
      - /run
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
      - ./:/opt/toad
      - ./container_data/jenkins/data:/var/lib/jenkins/userContent
      - ./container_data/jenkins/log:/var/log/jenkins
      - ./container_data/jenkins/jobs:/etc/jenkins_jobs
    labels:
      - "traefik.enable=true"
      - "traefik.backend=jenkins_master"
      - "traefik.frontend.rule=Host:jenkins.{{ PROXY_DOMAIN }}"
      - "traefik.port=8080"
    expose:
      - "8080"
main.yml
- hosts: all
  gather_facts: false
- hosts: jenkins_master
  vars_files:
    - "../vars/main.yml"
    - ./vars/toad_vars.yml
  tags:
    - jenkins_master
  vars:
    sudo_defaults:
      - defaults: '!requiretty'
  tasks: 
    - name: Do things
      shell: >
        echo foo
OS / ENVIRONMENT
Ansible Container, version 0.3.0-pre
Linux, demoans, 3.10.0-514.el7.x86_64, #1 SMP Tue Nov 22 16:42:41 UTC 2016, x86_64
2.7.5 (default, Nov  6 2016, 00:28:07) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] /bin/python
No DOCKER_HOST environment variable found. Assuming UNIX socket at /var/run/docker.sock
{u'Architecture': u'x86_64',
 u'BridgeNfIp6tables': False,
 u'BridgeNfIptables': False,
 u'CPUSet': True,
 u'CPUShares': True,
 u'CgroupDriver': u'systemd',
 u'ClusterAdvertise': u'',
 u'ClusterStore': u'',
 u'Containers': 8,
 u'ContainersPaused': 0,
 u'ContainersRunning': 1,
 u'ContainersStopped': 7,
 u'CpuCfsPeriod': True,
 u'CpuCfsQuota': True,
 u'Debug': False,
 u'DefaultRuntime': u'docker-runc',
 u'DockerRootDir': u'/var/lib/docker',
 u'Driver': u'devicemapper',
 u'DriverStatus': [[u'Pool Name', u'docker-253:1-800-pool'],
                   [u'Pool Blocksize', u'65.54 kB'],
                   [u'Base Device Size', u'10.74 GB'],
                   [u'Backing Filesystem', u'xfs'],
                   [u'Data file', u'/dev/loop0'],
                   [u'Metadata file', u'/dev/loop1'],
                   [u'Data Space Used', u'1.658 GB'],
                   [u'Data Space Total', u'107.4 GB'],
                   [u'Data Space Available', u'4.556 GB'],
                   [u'Metadata Space Used', u'2.818 MB'],
                   [u'Metadata Space Total', u'2.147 GB'],
                   [u'Metadata Space Available', u'2.145 GB'],
                   [u'Thin Pool Minimum Free Space', u'10.74 GB'],
                   [u'Udev Sync Supported', u'true'],
                   [u'Deferred Removal Enabled', u'false'],
                   [u'Deferred Deletion Enabled', u'false'],
                   [u'Deferred Deleted Device Count', u'0'],
                   [u'Data loop file',
                    u'/var/lib/docker/devicemapper/devicemapper/data'],
                   [u'Metadata loop file',
                    u'/var/lib/docker/devicemapper/devicemapper/metadata'],
                   [u'Library Version', u'1.02.135-RHEL7 (2016-11-16)']],
 u'ExecutionDriver': u'',
 u'ExperimentalBuild': False,
 u'HttpProxy': u'',
 u'HttpsProxy': u'',
 u'ID': u'R3Q7:5GXS:UT6E:422K:WJDP:Z5LK:BQOA:PFN7:JBXH:OUCQ:KXWM:DJON',
 u'IPv4Forwarding': True,
 u'Images': 5,
 u'IndexServerAddress': u'https://index.docker.io/v1/',
 u'IndexServerName': u'docker.io',
 u'KernelMemory': True,
 u'KernelVersion': u'3.10.0-514.el7.x86_64',
 u'Labels': None,
 u'LiveRestoreEnabled': False,
 u'LoggingDriver': u'journald',
 u'MemTotal': 3974926336,
 u'MemoryLimit': True,
 u'NCPU': 4,
 u'NEventsListener': 0,
 u'NFd': 26,
 u'NGoroutines': 37,
 u'Name': u'demoans',
 u'NoProxy': u'',
 u'OSType': u'linux',
 u'OomKillDisable': True,
 u'OperatingSystem': u'CentOS Linux 7 (Core)',
 u'PkgVersion': u'docker-common-1.12.6-11.el7.centos.x86_64',
 u'Plugins': {u'Authorization': None,
              u'Network': [u'null', u'host', u'bridge', u'overlay'],
              u'Volume': [u'local']},
 u'Registries': [{u'Name': u'docker.io', u'Secure': True}],
 u'RegistryConfig': {u'IndexConfigs': {u'docker.io': {u'Mirrors': None,
                                                      u'Name': u'docker.io',
                                                      u'Official': True,
                                                      u'Secure': True}},
                     u'InsecureRegistryCIDRs': [u'127.0.0.0/8'],
                     u'Mirrors': None},
 u'Runtimes': {u'docker-runc': {u'path': u'/usr/libexec/docker/docker-runc-current'},
               u'runc': {u'path': u'docker-runc'}},
 u'SecurityOptions': [u'seccomp', u'selinux'],
 u'ServerVersion': u'1.12.6',
 u'SwapLimit': True,
 u'Swarm': {u'Cluster': {u'CreatedAt': u'0001-01-01T00:00:00Z',
                         u'ID': u'',
                         u'Spec': {u'CAConfig': {},
                                   u'Dispatcher': {},
                                   u'Orchestration': {},
                                   u'Raft': {},
                                   u'TaskDefaults': {}},
                         u'UpdatedAt': u'0001-01-01T00:00:00Z',
                         u'Version': {}},
            u'ControlAvailable': False,
            u'Error': u'',
            u'LocalNodeState': u'inactive',
            u'Managers': 0,
            u'NodeAddr': u'',
            u'NodeID': u'',
            u'Nodes': 0,
            u'RemoteManagers': None},
 u'SystemStatus': None,
 u'SystemTime': u'2017-03-16T20:00:16.349858786Z'}
{u'ApiVersion': u'1.24',
 u'Arch': u'amd64',
 u'BuildTime': u'2017-03-07T09:23:34.785530776+00:00',
 u'GitCommit': u'96d83a5/1.12.6',
 u'GoVersion': u'go1.7.4',
 u'KernelVersion': u'3.10.0-514.el7.x86_64',
 u'Os': u'linux',
 u'PkgVersion': u'docker-common-1.12.6-11.el7.centos.x86_64',
 u'Version': u'1.12.6'}
SUMMARY

When running a container that is supposed to be run from a downloaded image (e.g. not one managed by this ansible-container project) it happens to fail with this error:

ERROR: for proxy  Cannot start service proxy: linux spec user: unable to find user root: no matching entries in passwd file
Execution failed with <class 'compose.project.ProjectError'>

In this case the image specifically is traefik and likely uses alpine linux.

The container.yml is borrowed from a working docker-compose.yml (with docker-compose, as you'd guess).

STEPS TO REPRODUCE
ansible-container build
EXPECTED RESULTS

No error.

ACTUAL RESULTS
ERROR: for proxy  Cannot start service proxy: linux spec user: unable to find user root: no matching entries in passwd file
Execution failed with <class 'compose.project.ProjectError'>
@chouseknecht
Copy link
Contributor

@dougbtv, I'm confused by your main.yml. Specifically the first two lines:

- hosts: all
  gather_facts: false

This is an empty play, meaning there are no tasks. However, I suspect that Ansible may still be attempting to connect to each (or all) of the hosts. Can you remove these two lines, and give it another try.

@dougbtv
Copy link
Author

dougbtv commented Mar 17, 2017

@chouseknecht thanks for the eyes to check that out. Wondering where I got that, I think it was copy-pasta from some reference ansible-container main.yml I found in the wild.

I went ahead and re-ran it with main.yml with just:

- hosts: jenkins_master
  vars_files:
    - "../vars/main.yml"
    - ./vars/toad_vars.yml
  tags:
    - jenkins_master
  vars:
    sudo_defaults:
      - defaults: '!requiretty'
  tasks: 
    - name: Do things
      shell: >
        echo foo

And I had the same results:

[root@demoans toad]# ansible-container build
No DOCKER_HOST environment variable found. Assuming UNIX socket at /var/run/docker.sock
Starting Docker Compose engine to build your images...
Attaching to ansible_ansible-container_1
Cleaning up Ansible Container builder...
No image found for tag toad-jenkins_master:latest, so building from scratch
No image found for tag toad-proxy:latest, so building from scratch

ERROR: for proxy  Cannot start service proxy: linux spec user: unable to find user traefik: no matching entries in passwd file
Execution failed with <class 'compose.project.ProjectError'>

Something that also jumps out at me is:

No image found for tag toad-proxy:latest, so building from scratch

In this case, I don't actually need to or want to customize this image. Is there a way to specifically say in the containers.yml that "I don't want to build this image -- I just want the third party image as downloaded from some registry -- don't bother trying to build it, just run the container from this image"?

I tried reading through the container.yml reference but, I'm not seeing anything there. Seeing it's a really stripped down image that I don't want to modify, I'm wondering if it's having trouble trying to run it "in a special ansible-containers" way.

Thanks again, too!

@michalmedvecky
Copy link

michalmedvecky commented May 25, 2017

I'm running into this issue too.

docker.errors.APIError: 500 Server Error: Internal Server Error ("linux spec user: unable to find user root: no matching entries in passwd file")

this is my container.yml:

version: "2"
settings:
  conductor_base: ubuntu:16.10
services:
  ssportal:
    from: ubuntu:16.04
    roles:
      - ansible-ssportal
    ports:
    - 80
    entrypoint: ['/usr/bin/dumb-init', '/usr/bin/entrypoint.sh']
volumes:
  static:
    docker: {}
registries: {}

the ansible-ssportal role just tries to install apache2 package on ubuntu:16.10.

@LeHack
Copy link

LeHack commented Jun 3, 2017

@michalmedvecky

I encountered the same issue with a similar setup:

version: "2"
settings:
  conductor_base: centos:7
services:
  web:
    roles:
      - testapp

Where the testapp role actually uses python:3 as the base image.
I tried a couple of things, each time cleaning up the old conductor images and volumes and then it struck me that I never seen the python:3 image when running: docker image ls
On a hunch I've run: docker image pull python:3 and it helped.
Looks like for some reason ansible-container did not pull the image itself (I'm using 0.9.2rc0, that's the current HEAD in develop).

Thus try pulling ubuntu:16.04 and see if it helps (since your conductor uses 16.10)

@mhumeSF
Copy link
Contributor

mhumeSF commented Jun 27, 2017

Was running into this issue and think it would be a cool feature when passing around ansible-container projects, to be able to pull necessary docker images before running ansible-container build project. Or if docker images not found locally or remotely, throwing a better warning

@LeHack
Copy link

LeHack commented Jun 28, 2017

@mhumeSF Actually I'd consider it more of a bug, since if it handles fetching the conductor image from remote, it should also be able to do the same for each service built.

@rokroskar
Copy link

I have the same problem -- running on macos 10.10.5 with Docker version 17.03.1-ce, build c6d412e and current ansible-container develop branch. It seems to go away if add a dummy service at the beginning that just loads the centos image and does nothing else, e.g.:

services: 
  test: 
    from: 'centos:7'
@chouseknecht
Copy link
Contributor

@rokroskar:

Can you share a more complete container.yml that will reproduce the issue. I would like to see if we can solve this.

Thanks!

@rokroskar
Copy link

@chouseknecht -- unreal, I'm just trying to reproduce it again (after staring at that error for many hours yesterday) and I cannot. I will report back here if I manage to break it again.

I believe what fixed it was

pip install -U --force-reinstall --no-cache-dir -e .\[docker\]
@mhumeSF
Copy link
Contributor

mhumeSF commented Jun 28, 2017

Having trouble creating a reproducible test case, but our scenario is referencing an image from a private aws container repo. These containers are referenced from the local tag name. If the containers have not been pulled from the private repo and tagged appropriately, the error above happens. I do see the Could not find container for <service> error, but maybe if that were more prominent

@flaub
Copy link

flaub commented Jul 1, 2017

I have reproduced this issue with the following container.yml:

version: "2"
settings:
  project_name: bug
  conductor_base: ubuntu:14.04
services:
  ubuntu-14.04:
    from: ubuntu:14.04
    roles:
    - role: container-bootstrap
    command: ['/bin/true']
  ubuntu-17.04:
    from: ubuntu:17.04
    roles:
    - role: container-bootstrap
    command: ['/bin/true']

The container-bootstrap role is defined as:

---
- name: Install python for ansible-container support
  raw: which python || apt-get -y update && apt-get install -y python
- name: Gather facts
  setup:

This is what I get from running ansible-container build:

Building Docker Engine context...
Starting Docker build of Ansible Container Conductor image (please be patient)...
Parsing conductor CLI args.
Docker™ daemon integration engine loaded. Build starting.	project=bug
Building service...	project=bug service=ubuntu-14.04
mount: warning: /tmp/tmpFrbgrP/files seems to be mounted read-only.
mount: warning: /tmp/tmpFrbgrP/templates seems to be mounted read-only.

PLAY [ubuntu-14.04] ************************************************************

TASK [Gathering Facts] *********************************************************
ok: [ubuntu-14.04]

PLAY RECAP *********************************************************************
ubuntu-14.04               : ok=1    changed=0    unreachable=0    failed=0

Applied role to service	role=ordereddict([('role', 'container-bootstrap')]) service=ubuntu-14.04
Committed layer as image	image=sha256:08b47d538f90bce3232527491656f82329cbda3e150c9d03b58b1ca69ce1abd4 service=ubuntu-14.04
Build complete.	service=ubuntu-14.04
Building service...	project=bug service=ubuntu-17.04
Traceback (most recent call last):
  File "/usr/local/bin/conductor", line 11, in <module>
    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 378, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 735, in conductorcmd_build
    container_id = engine.run_container(cur_image_id, service_name, **run_kwargs)
  File "/_ansible/container/docker/engine.py", line 83, in __wrapped__
    return fn(self, *args, **kwargs)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/docker/engine.py", line 202, in run_container
    **run_kwargs
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 703, in run
    container.start()
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 333, in start
    return self.client.api.start(self.id, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 1079, in start
    self._raise_for_status(res)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 222, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("linux spec user: unable to find user root: no matching entries in passwd file")
Conductor terminated. Cleaning up.	command_rc=1 conductor_id=16efa6a44a883e2f258d7d0052e4d3487efb212b4d22c1225fa7eee34523a143 save_container=False
ERROR	Conductor exited with status 1

I'm using the HEAD of develop:

$ ansible-container version
Ansible Container, version 0.9.2rc0
@SalahAdDin
Copy link

SalahAdDin commented Jul 10, 2017

Yes, i have the same problem with the same version:

Traceback (most recent call last):
  File "/usr/local/bin/conductor", line 11, in <module>
    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 378, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 736, in conductorcmd_build
    container_id = engine.run_container(cur_image_id, service_name, **run_kwargs)
  File "/_ansible/container/docker/engine.py", line 83, in __wrapped__
    return fn(self, *args, **kwargs)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/docker/engine.py", line 202, in run_container
    **run_kwargs
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 703, in run
    container.start()
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 333, in start
    return self.client.api.start(self.id, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 1079, in start
    self._raise_for_status(res)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 222, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("linux spec user: unable to find user root: no matching entries in passwd file")
2017-07-11T02:21:52.089779 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/home/salahaddin/Proyectos/Works/text-ansible-container/ansible-container/container/docker/engine.py caller_func=await_conductor_command caller_line=356 command_rc=1 conductor_id=089b46a965035175845fac5ba3436af60dbafcc336ff6e835bb33868c48926a2 save_container=False
2017-07-11T02:21:52.703598 Conductor exited with status 1 [container.cli] caller_file=/home/salahaddin/Proyectos/Works/text-ansible-container/ansible-container/container/cli.py caller_func=__call__ caller_line=290
@asantos82
Copy link

I think I have found what is happening with this issues and how to reproduce it.
This happens when you don't have locally the docker image defined for the service in the container.yml
The logs bellow are from the time when the postgres:9.3 image wasn't present on the machine.

  • Container.yml
version: "2"
settings:
  conductor_base: debian:jessie
services:
  pgsql:
    from: postgres:9.3
    roles:
      - pgsql
  • main.yml
---
# tasks file for pgsql

- name: Ensure /var/lib/postgresql/scripts exists
  file:
    path: /var/lib/postgresql/scripts
    state: directory
    recurse: yes
    owner: postgres
    group: postgres
  • docker images
docker image ls | grep postgres
postgres                                  9.6                 f8d91fbcfa35        13 days ago         269MB
postgres                                  latest              ecd991538a0f        5 months ago        265MB
  • ansible-container logs
ansible-container --debug build
2017-07-11T09:45:41.007245 The default type is            [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=140 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<type '_ordereddict.ordereddict'>
2017-07-11T09:45:41.008131 Getting environment variables... [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=156
2017-07-11T09:45:41.008900 Read environment variables     [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=161 env_vars={}
2017-07-11T09:45:41.009522 Resolved template variables    [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=145 template_vars={}
2017-07-11T09:45:41.010135 Parsed config                  [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=set_env caller_line=121 config={"version": "2", "settings": {"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"}, "services": {"pgsql": {"from": "postgres:9.3", "roles": ["pgsql"]}}, "defaults": {}}
2017-07-11T09:45:41.010826 Loading engine capabilities    [container.utils.loader] caller_file=/usr/lib/python2.7/site-packages/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD', 'RUN'] engine=docker
2017-07-11T09:45:41.049460 Could not find container for conductor [container.docker.engine] all_containers=[] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=get_container_id_for_service caller_line=384 container=u'ansible_tst_git_conductor'
2017-07-11T09:45:41.067567 Could not find the latest image for service, searching for other tags with same image name [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=get_latest_image_for_service caller_line=423 image_name=u'ansible_tst_git-conductor' service=conductor
2017-07-11T09:45:41.070800 Call: Engine.build_conductor_image [container.docker.engine] args=('/home/asantos/mydockerbuild/ansible_tst_git', 'debian:jessie') caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.build_conductor_image caller_line=23 kwargs={'cache': True}
2017-07-11T09:45:41.072927 Using temporary directory      [container.utils.temp] caller_file=/usr/lib/python2.7/site-packages/container/utils/temp.py caller_func=__enter__ caller_line=17 path=/tmp/tmpxQJg93
2017-07-11T09:45:41.073514 Building Docker Engine context... [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=649
2017-07-11T09:45:41.112713 Rendered Jinja Template:       [container.utils] body=FROM debian:jessie
ENV ANSIBLE_CONTAINER=1


RUN apt-get update -y && \
    apt-get install -y gcc python2.7 git python-dev rsync libffi-dev libssl-dev dpkg-dev python-apt libpopt0 && \
    cd /usr/bin && \
    rm -f lsb_release && \
    ln -fs python2.7 python && \
    apt-get clean


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

VOLUME /lib


 caller_file=/usr/lib/python2.7/site-packages/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=81
2017-07-11T09:45:41.113783 Context manifest:              [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=705
2017-07-11T09:45:41.113992 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2017-07-11T09:45:41.114184 tarball item: build-src/ansible-requirements.txt (129 bytes) [container.docker.engine] bytes=129 file=build-src/ansible-requirements.txt
2017-07-11T09:45:41.114349 tarball item: build-src/requirements.yml (297 bytes) [container.docker.engine] bytes=297 file=build-src/requirements.yml
2017-07-11T09:45:41.114506 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2017-07-11T09:45:41.114669 tarball item: contrib/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=contrib/get-pip.py
2017-07-11T09:45:41.114815 tarball item: container-src (0 bytes) [container.docker.engine] bytes=0L file=container-src
2017-07-11T09:45:41.114945 tarball item: container-src/k8s (0 bytes) [container.docker.engine] bytes=0L file=container-src/k8s
2017-07-11T09:45:41.115073 tarball item: container-src/k8s/__init__.pyc (324 bytes) [container.docker.engine] bytes=324 file=container-src/k8s/__init__.pyc
2017-07-11T09:45:41.115200 tarball item: container-src/k8s/base_deploy.py (27642 bytes) [container.docker.engine] bytes=27642 file=container-src/k8s/base_deploy.py
2017-07-11T09:45:41.115326 tarball item: container-src/k8s/engine.py (2389 bytes) [container.docker.engine] bytes=2389 file=container-src/k8s/engine.py
2017-07-11T09:45:41.115451 tarball item: container-src/k8s/base_engine.pyc (5509 bytes) [container.docker.engine] bytes=5509 file=container-src/k8s/base_engine.pyc
2017-07-11T09:45:41.115592 tarball item: container-src/k8s/base_engine.py (5164 bytes) [container.docker.engine] bytes=5164 file=container-src/k8s/base_engine.py
2017-07-11T09:45:41.115739 tarball item: container-src/k8s/deploy.py (1720 bytes) [container.docker.engine] bytes=1720 file=container-src/k8s/deploy.py
2017-07-11T09:45:41.115885 tarball item: container-src/k8s/base_deploy.pyc (19901 bytes) [container.docker.engine] bytes=19901 file=container-src/k8s/base_deploy.pyc
2017-07-11T09:45:41.116031 tarball item: container-src/k8s/engine.pyc (1893 bytes) [container.docker.engine] bytes=1893 file=container-src/k8s/engine.pyc
2017-07-11T09:45:41.116166 tarball item: container-src/k8s/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/k8s/__init__.py
2017-07-11T09:45:41.116323 tarball item: container-src/k8s/deploy.pyc (1961 bytes) [container.docker.engine] bytes=1961 file=container-src/k8s/deploy.pyc
2017-07-11T09:45:41.116466 tarball item: container-src/__init__.pyc (1391 bytes) [container.docker.engine] bytes=1391 file=container-src/__init__.pyc
2017-07-11T09:45:41.116615 tarball item: container-src/docker (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker
2017-07-11T09:45:41.116760 tarball item: container-src/docker/__init__.pyc (327 bytes) [container.docker.engine] bytes=327 file=container-src/docker/__init__.pyc
2017-07-11T09:45:41.116896 tarball item: container-src/docker/files (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/files
2017-07-11T09:45:41.117019 tarball item: container-src/docker/files/conductor-requirements.yml (60 bytes) [container.docker.engine] bytes=60 file=container-src/docker/files/conductor-requirements.yml
2017-07-11T09:45:41.117149 tarball item: container-src/docker/files/get-pip.pyc (1593358 bytes) [container.docker.engine] bytes=1593358 file=container-src/docker/files/get-pip.pyc
2017-07-11T09:45:41.117276 tarball item: container-src/docker/files/conductor-requirements.txt (294 bytes) [container.docker.engine] bytes=294 file=container-src/docker/files/conductor-requirements.txt
2017-07-11T09:45:41.117399 tarball item: container-src/docker/files/setup.pyc (4005 bytes) [container.docker.engine] bytes=4005 file=container-src/docker/files/setup.pyc
2017-07-11T09:45:41.117529 tarball item: container-src/docker/files/setup.py (3215 bytes) [container.docker.engine] bytes=3215 file=container-src/docker/files/setup.py
2017-07-11T09:45:41.117664 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-07-11T09:45:41.117809 tarball item: container-src/docker/engine.py (34750 bytes) [container.docker.engine] bytes=34750 file=container-src/docker/engine.py
2017-07-11T09:45:41.117952 tarball item: container-src/docker/deploy.py (248 bytes) [container.docker.engine] bytes=248 file=container-src/docker/deploy.py
2017-07-11T09:45:41.118094 tarball item: container-src/docker/importer.pyc (19532 bytes) [container.docker.engine] bytes=19532 file=container-src/docker/importer.pyc
2017-07-11T09:45:41.118236 tarball item: container-src/docker/importer.py (23310 bytes) [container.docker.engine] bytes=23310 file=container-src/docker/importer.py
2017-07-11T09:45:41.118381 tarball item: container-src/docker/engine.pyc (29147 bytes) [container.docker.engine] bytes=29147 file=container-src/docker/engine.pyc
2017-07-11T09:45:41.118529 tarball item: container-src/docker/__init__.py (205 bytes) [container.docker.engine] bytes=205 file=container-src/docker/__init__.py
2017-07-11T09:45:41.118675 tarball item: container-src/docker/deploy.pyc (325 bytes) [container.docker.engine] bytes=325 file=container-src/docker/deploy.pyc
2017-07-11T09:45:41.118821 tarball item: container-src/docker/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/templates
2017-07-11T09:45:41.118955 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-07-11T09:45:41.119088 tarball item: container-src/engine.py (6074 bytes) [container.docker.engine] bytes=6074 file=container-src/engine.py
2017-07-11T09:45:41.119229 tarball item: container-src/config.pyc (12699 bytes) [container.docker.engine] bytes=12699 file=container-src/config.pyc
2017-07-11T09:45:41.119373 tarball item: container-src/core.py (37981 bytes) [container.docker.engine] bytes=37981 file=container-src/core.py
2017-07-11T09:45:41.119519 tarball item: container-src/utils (0 bytes) [container.docker.engine] bytes=0L file=container-src/utils
2017-07-11T09:45:41.119665 tarball item: container-src/utils/__init__.pyc (11630 bytes) [container.docker.engine] bytes=11630 file=container-src/utils/__init__.pyc
2017-07-11T09:45:41.119808 tarball item: container-src/utils/visibility.py (3329 bytes) [container.docker.engine] bytes=3329 file=container-src/utils/visibility.py
2017-07-11T09:45:41.119951 tarball item: container-src/utils/galaxy.py (8120 bytes) [container.docker.engine] bytes=8120 file=container-src/utils/galaxy.py
2017-07-11T09:45:41.120094 tarball item: container-src/utils/temp.pyc (1358 bytes) [container.docker.engine] bytes=1358 file=container-src/utils/temp.pyc
2017-07-11T09:45:41.120226 tarball item: container-src/utils/logmux.py (1313 bytes) [container.docker.engine] bytes=1313 file=container-src/utils/logmux.py
2017-07-11T09:45:41.120350 tarball item: container-src/utils/loader.py (906 bytes) [container.docker.engine] bytes=906 file=container-src/utils/loader.py
2017-07-11T09:45:41.120472 tarball item: container-src/utils/logmux.pyc (2559 bytes) [container.docker.engine] bytes=2559 file=container-src/utils/logmux.pyc
2017-07-11T09:45:41.120618 tarball item: container-src/utils/visibility.pyc (4119 bytes) [container.docker.engine] bytes=4119 file=container-src/utils/visibility.pyc
2017-07-11T09:45:41.120750 tarball item: container-src/utils/_text.pyc (8755 bytes) [container.docker.engine] bytes=8755 file=container-src/utils/_text.pyc
2017-07-11T09:45:41.120873 tarball item: container-src/utils/__init__.py (10744 bytes) [container.docker.engine] bytes=10744 file=container-src/utils/__init__.py
2017-07-11T09:45:41.120996 tarball item: container-src/utils/loader.pyc (1170 bytes) [container.docker.engine] bytes=1170 file=container-src/utils/loader.pyc
2017-07-11T09:45:41.121116 tarball item: container-src/utils/_text.py (12304 bytes) [container.docker.engine] bytes=12304 file=container-src/utils/_text.py
2017-07-11T09:45:41.121238 tarball item: container-src/utils/galaxy.pyc (7803 bytes) [container.docker.engine] bytes=7803 file=container-src/utils/galaxy.pyc
2017-07-11T09:45:41.121359 tarball item: container-src/utils/temp.py (698 bytes) [container.docker.engine] bytes=698 file=container-src/utils/temp.py
2017-07-11T09:45:41.121482 tarball item: container-src/core.pyc (27148 bytes) [container.docker.engine] bytes=27148 file=container-src/core.pyc
2017-07-11T09:45:41.121611 tarball item: container-src/cli.py (19540 bytes) [container.docker.engine] bytes=19540 file=container-src/cli.py
2017-07-11T09:45:41.121859 tarball item: container-src/config.py (14021 bytes) [container.docker.engine] bytes=14021 file=container-src/config.py
2017-07-11T09:45:41.121991 tarball item: container-src/engine.pyc (9644 bytes) [container.docker.engine] bytes=9644 file=container-src/engine.pyc
2017-07-11T09:45:41.122118 tarball item: container-src/__init__.py (947 bytes) [container.docker.engine] bytes=947 file=container-src/__init__.py
2017-07-11T09:45:41.122242 tarball item: container-src/exceptions.pyc (5225 bytes) [container.docker.engine] bytes=5225 file=container-src/exceptions.pyc
2017-07-11T09:45:41.122367 tarball item: container-src/openshift (0 bytes) [container.docker.engine] bytes=0L file=container-src/openshift
2017-07-11T09:45:41.122491 tarball item: container-src/openshift/__init__.pyc (330 bytes) [container.docker.engine] bytes=330 file=container-src/openshift/__init__.pyc
2017-07-11T09:45:41.122622 tarball item: container-src/openshift/engine.py (2151 bytes) [container.docker.engine] bytes=2151 file=container-src/openshift/engine.py
2017-07-11T09:45:41.122746 tarball item: container-src/openshift/deploy.py (6203 bytes) [container.docker.engine] bytes=6203 file=container-src/openshift/deploy.py
2017-07-11T09:45:41.122867 tarball item: container-src/openshift/engine.pyc (2606 bytes) [container.docker.engine] bytes=2606 file=container-src/openshift/engine.pyc
2017-07-11T09:45:41.122988 tarball item: container-src/openshift/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/openshift/__init__.py
2017-07-11T09:45:41.123110 tarball item: container-src/openshift/deploy.pyc (5186 bytes) [container.docker.engine] bytes=5186 file=container-src/openshift/deploy.pyc
2017-07-11T09:45:41.123231 tarball item: container-src/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates
2017-07-11T09:45:41.123352 tarball item: container-src/templates/role (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role
2017-07-11T09:45:41.123474 tarball item: container-src/templates/role/defaults (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/defaults
2017-07-11T09:45:41.123602 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-07-11T09:45:41.123724 tarball item: container-src/templates/role/test (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/test
2017-07-11T09:45:41.123846 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-07-11T09:45:41.123966 tarball item: container-src/templates/role/meta (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/meta
2017-07-11T09:45:41.124087 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-07-11T09:45:41.124209 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-07-11T09:45:41.124344 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-07-11T09:45:41.124474 tarball item: container-src/templates/ansible.cfg (41 bytes) [container.docker.engine] bytes=41 file=container-src/templates/ansible.cfg
2017-07-11T09:45:41.124612 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-07-11T09:45:41.124754 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-07-11T09:45:41.124892 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-07-11T09:45:41.125014 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-07-11T09:45:41.125135 tarball item: container-src/templates/wait_on_host.pyc (2483 bytes) [container.docker.engine] bytes=2483 file=container-src/templates/wait_on_host.pyc
2017-07-11T09:45:41.125259 tarball item: container-src/templates/builder.sh (620 bytes) [container.docker.engine] bytes=620 file=container-src/templates/builder.sh
2017-07-11T09:45:41.125377 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-07-11T09:45:41.125494 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-07-11T09:45:41.125619 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-07-11T09:45:41.125735 tarball item: container-src/templates/ansible-container-inventory.pyc (2032 bytes) [container.docker.engine] bytes=2032 file=container-src/templates/ansible-container-inventory.pyc
2017-07-11T09:45:41.125852 tarball item: container-src/templates/init (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/init
2017-07-11T09:45:41.125968 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-07-11T09:45:41.126085 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-07-11T09:45:41.126233 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-07-11T09:45:41.126388 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-07-11T09:45:41.126507 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-07-11T09:45:41.126632 tarball item: container-src/templates/ansible-dockerfile.j2 (1194 bytes) [container.docker.engine] bytes=1194 file=container-src/templates/ansible-dockerfile.j2
2017-07-11T09:45:41.126749 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-07-11T09:45:41.126867 tarball item: container-src/templates/hosts.j2 (90 bytes) [container.docker.engine] bytes=90 file=container-src/templates/hosts.j2
2017-07-11T09:45:41.126983 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-07-11T09:45:41.127100 tarball item: container-src/exceptions.py (1991 bytes) [container.docker.engine] bytes=1991 file=container-src/exceptions.py
2017-07-11T09:45:41.127216 tarball item: container-src/cli.pyc (15602 bytes) [container.docker.engine] bytes=15602 file=container-src/cli.pyc
2017-07-11T09:45:41.127332 tarball item: container-src/conductor-build/setup.py (3215 bytes) [container.docker.engine] bytes=3215 file=container-src/conductor-build/setup.py
2017-07-11T09:45:41.127449 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-07-11T09:45:41.127572 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-07-11T09:45:41.127688 tarball item: Dockerfile (1519 bytes) [container.docker.engine] bytes=1519 file=Dockerfile
2017-07-11T09:45:41.128262 Starting Docker build of Ansible Container Conductor image (please be patient)... [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=713
Step 1/12 : FROM debian:jessie
 ---> 62a932a5c143
Step 2/12 : ENV ANSIBLE_CONTAINER 1
 ---> Using cache
 ---> 819006cc16d8
Step 3/12 : RUN apt-get update -y &&     apt-get install -y gcc python2.7 git python-dev rsync libffi-dev libssl-dev dpkg-dev python-apt libpopt0 &&     cd /usr/bin &&     rm -f lsb_release &&     ln -fs python2.7 python &&     apt-get clean
 ---> Using cache
 ---> 56fece6cf89e
Step 4/12 : ADD https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz /tmp/docker.tgz

 ---> Using cache
 ---> fec61990731a
Step 5/12 : COPY /contrib/get-pip.py /get-pip.py
 ---> Using cache
 ---> 8825ba14d518
Step 6/12 : 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
 ---> 2f9ab7b1f641
Step 7/12 : COPY /container-src /_ansible/container
 ---> Using cache
 ---> ddd914babf52
Step 8/12 : 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
 ---> Using cache
 ---> f86cf34fa700
Step 9/12 : COPY /build-src /_ansible/build
 ---> Using cache
 ---> 347cbffbc0d5
Step 10/12 : 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)
 ---> Using cache
 ---> 2baebe7e328b
Step 11/12 : VOLUME /usr
 ---> Using cache
 ---> 8563d4e70bbe
Step 12/12 : VOLUME /lib
 ---> Using cache
 ---> f2e80525e203
Successfully built f2e80525e203
Successfully tagged ansible_tst_git-conductor:latest
2017-07-11T09:45:51.422604 Cleaning up temporary directory [container.utils.temp] caller_file=/usr/lib/python2.7/site-packages/container/utils/temp.py caller_func=__exit__ caller_line=22 path=/tmp/tmpxQJg93
2017-07-11T09:45:51.423777 Config settings                [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_build caller_line=160 config=<container.config.AnsibleContainerConfig object at 0x7fdaffca2e50> rawsettings={"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"} settings={"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"} tconf=<class 'container.config.AnsibleContainerConfig'>
2017-07-11T09:45:51.424803 Call: Engine.run_conductor     [container.docker.engine] args=('build', {'services': ordereddict([('pgsql', ordereddict([('from', 'postgres:9.3'), ('roles', ['pgsql'])]))]), 'version': '2', 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'debian:jessie'), ('pwd', '/home/asantos/mydockerbuild/ansible_tst_git')])}, '/home/asantos/mydockerbuild/ansible_tst_git', {'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=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-07-11T09:45:51.427857 Docker run:                    [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=run_conductor caller_line=299 image=u'sha256:f2e80525e2037f96e07c775a2d415808c2cc7c8efab4dbf2e426b9f8d62f89a0' params={'name': u'ansible_tst_git_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_tst_git', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNhY2hlIjogdHJ1ZSwgImxvY2FsX3B5dGhvbiI6IGZhbHNlLCAid2l0aF92YXJpYWJsZXMiOiBbXSwgInNlbGludXgiOiB0cnVlLCAicHVyZ2VfbGFzdCI6IHRydWUsICJzdWJjb21tYW5kIjogImJ1aWxkIiwgIm5vX2NvbmR1Y3Rvcl9ydW50aW1lIjogdHJ1ZSwgImRldmVsIjogZmFsc2UsICJyb2xlc19wYXRoIjogbnVsbCwgImFuc2libGVfb3B0aW9ucyI6ICIiLCAiZmxhdHRlbiI6IGZhbHNlLCAiZGVidWciOiB0cnVlLCAic2F2ZV9jb25kdWN0b3JfY29udGFpbmVyIjogZmFsc2V9', '--config', u'eyJzZXJ2aWNlcyI6IFtbInBnc3FsIiwgeyJmcm9tIjogInBvc3RncmVzOjkuMyIsICJyb2xlcyI6IFsicGdzcWwiXX1dXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3JfYmFzZSIsICJkZWJpYW46amVzc2llIl0sIFsicHdkIiwgIi9ob21lL2FzYW50b3MvbXlkb2NrZXJidWlsZC9hbnNpYmxlX3RzdF9naXQiXV19', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/home/asantos/mydockerbuild/ansible_tst_git': {'bind': '/src', 'mode': 'ro'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-07-11T08:46:08.509063 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=266
2017-07-11T08:46:08.511021 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=volumes
2017-07-11T08:46:08.513160 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=registries
2017-07-11T08:46:08.515172 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=281 service=u'pgsql' service_data={u'from': u'postgres:9.3', u'roles': [u'pgsql']}
2017-07-11T08:46:08.519837 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=304 defaults={} service=u'pgsql'
2017-07-11T08:46:08.522953 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=353 services={"pgsql": {"from": "postgres:9.3", "roles": ["pgsql"], "defaults": {}}}
2017-07-11T08:46:08.525797 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-07-11T08:46:08.541651 2017-07-11T08:46:08.541651 Docker™ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=612 project=ansible_tst_git
2017-07-11T08:46:08.544086 Building service...            [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=618 project=ansible_tst_git service=u'pgsql'
2017-07-11T08:46:08.550669 Base fingerprint hash = 119b555dc615705db526e954cc6e084f59646020a26a4ff1e923e3d57fa51754 [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=623 hash=119b555dc615705db526e954cc6e084f59646020a26a4ff1e923e3d57fa51754 service=u'pgsql'
2017-07-11T08:46:08.561747 Could not find container for pgsql [container.docker.engine] all_containers=[<Container: ead39969c8>] caller_file=/_ansible/container/docker/engine.py caller_func=get_container_id_for_service caller_line=384 container=u'ansible_tst_git_pgsql'
2017-07-11T08:46:08.570944 Still trying to keep cache.    [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=638 service=u'pgsql'
2017-07-11T08:46:08.594143 Cache busted! No layer found   [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=653 fingerprint=f3291c983a3a55121f873ddf81c1dc27f5df1c61372968a0e7894d86ab279fa8 service=u'pgsql'
2017-07-11T08:46:08.626287 Detected architecture x86_64-linux-gnu [container.core] architecture=x86_64-linux-gnu caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=687 service=u'pgsql'
2017-07-11T08:46:08.632993 Call: Engine.run_container     [container.docker.engine] args=(None, u'pgsql') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'ansible_tst_git_pgsql', 'environment': {'PYTHONPATH': '/_usr/lib/python2.7', 'CPATH': '/_usr/include:/_usr/local/include', 'LD_LIBRARY_PATH': '/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_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'0bf8b7439d7c15560c084f6b961a3b0713dbb460c8413a085752178288efdb57': {'bind': '/_usr', 'mode': 'ro'}, u'babca4c03f02e5074278a322e6ca755c5682ebb2c5607319aa07b41792a8df7e': {'bind': '/_lib', 'mode': 'ro'}}, 'command': 'sh -c "while true; do sleep 1; done"', 'privileged': True}
2017-07-11T08:46:08.635824 Removing keys                  [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=167 keys=[u'from', u'roles', 'defaults', 'links']
2017-07-11T08:46:08.637920 Running container in docker    [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=191 image=None params={"name": "ansible_tst_git_pgsql", "environment": {"PYTHONPATH": "/_usr/lib/python2.7", "CPATH": "/_usr/include:/_usr/local/include", "LD_LIBRARY_PATH": "/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_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": {"0bf8b7439d7c15560c084f6b961a3b0713dbb460c8413a085752178288efdb57": {"bind": "/_usr", "mode": "ro"}, "babca4c03f02e5074278a322e6ca755c5682ebb2c5607319aa07b41792a8df7e": {"bind": "/_lib", "mode": "ro"}}, "command": "sh -c \"while true; do sleep 1; done\"", "privileged": true}
Traceback (most recent call last):
  File "/usr/local/bin/conductor", line 11, in <module>
    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 711, in conductorcmd_build
    container_id = engine.run_container(cur_image_id, service_name, **run_kwargs)
  File "/_ansible/container/docker/engine.py", line 82, in __wrapped__
    return fn(self, *args, **kwargs)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/docker/engine.py", line 196, in run_container
    **run_kwargs
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 703, in run
    container.start()
  File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 333, in start
    return self.client.api.start(self.id, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 1079, in start
    self._raise_for_status(res)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 222, in _raise_for_status
    raise create_api_error_from_http_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("linux spec user: unable to find user root: no matching entries in passwd file")
2017-07-11T09:46:09.746147 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=await_conductor_command caller_line=326 command_rc=1 conductor_id=u'ead39969c8cbb8232396ae3272c74e671c72a703eb6a14ecf793edb041c66c88' save_container=False
2017-07-11T09:46:09.819621 Conductor exited with status 1 [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=280

=============================================================================

The logs bellow are from when the image postgres:9.3 was previously downloaded.

  • docker pull
docker pull postgres:9.3
9.3: Pulling from library/postgres
9f0706ba7422: Already exists 
df3070b9fd62: Already exists 
945954562465: Already exists 
4fa64a58ef1a: Already exists 
796db2a3276b: Already exists 
10e84c2461e4: Already exists 
e0fef4506448: Pull complete 
dc8edab26c17: Pull complete 
2cfa7b78a053: Pull complete 
76f99088674a: Pull complete 
3d4d83be1786: Pull complete 
e522b4fe1f9f: Pull complete 
acb46ca5be87: Pull complete 
Digest: sha256:f732b91acdccf46914d83d25c992219ed44056e1d470d817f3fe3a62f10df4d6
Status: Downloaded newer image for postgres:9.3
  • ansible-container build
ansible-container --debug build
2017-07-11T09:48:03.966166 The default type is            [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=140 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<type '_ordereddict.ordereddict'>
2017-07-11T09:48:03.966888 Getting environment variables... [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=156
2017-07-11T09:48:03.967562 Read environment variables     [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=161 env_vars={}
2017-07-11T09:48:03.968162 Resolved template variables    [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=145 template_vars={}
2017-07-11T09:48:03.968793 Parsed config                  [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=set_env caller_line=121 config={"version": "2", "settings": {"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"}, "services": {"pgsql": {"from": "postgres:9.3", "roles": ["pgsql"]}}, "defaults": {}}
2017-07-11T09:48:03.969342 Loading engine capabilities    [container.utils.loader] caller_file=/usr/lib/python2.7/site-packages/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD', 'RUN'] engine=docker
2017-07-11T09:48:03.991125 Could not find container for conductor [container.docker.engine] all_containers=[] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=get_container_id_for_service caller_line=384 container=u'ansible_tst_git_conductor'
2017-07-11T09:48:03.997333 Call: Engine.build_conductor_image [container.docker.engine] args=('/home/asantos/mydockerbuild/ansible_tst_git', 'debian:jessie') caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.build_conductor_image caller_line=23 kwargs={'cache': True}
2017-07-11T09:48:03.999472 Using temporary directory      [container.utils.temp] caller_file=/usr/lib/python2.7/site-packages/container/utils/temp.py caller_func=__enter__ caller_line=17 path=/tmp/tmp6N7n7D
2017-07-11T09:48:04.000161 Building Docker Engine context... [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=649
2017-07-11T09:48:04.024805 Rendered Jinja Template:       [container.utils] body=FROM debian:jessie
ENV ANSIBLE_CONTAINER=1


RUN apt-get update -y && \
    apt-get install -y gcc python2.7 git python-dev rsync libffi-dev libssl-dev dpkg-dev python-apt libpopt0 && \
    cd /usr/bin && \
    rm -f lsb_release && \
    ln -fs python2.7 python && \
    apt-get clean


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

VOLUME /lib


 caller_file=/usr/lib/python2.7/site-packages/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=81
2017-07-11T09:48:04.025854 Context manifest:              [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=705
2017-07-11T09:48:04.026088 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2017-07-11T09:48:04.026310 tarball item: build-src/ansible-requirements.txt (129 bytes) [container.docker.engine] bytes=129 file=build-src/ansible-requirements.txt
2017-07-11T09:48:04.026513 tarball item: build-src/requirements.yml (297 bytes) [container.docker.engine] bytes=297 file=build-src/requirements.yml
2017-07-11T09:48:04.026738 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2017-07-11T09:48:04.026933 tarball item: contrib/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=contrib/get-pip.py
2017-07-11T09:48:04.027125 tarball item: container-src (0 bytes) [container.docker.engine] bytes=0L file=container-src
2017-07-11T09:48:04.027326 tarball item: container-src/k8s (0 bytes) [container.docker.engine] bytes=0L file=container-src/k8s
2017-07-11T09:48:04.027521 tarball item: container-src/k8s/__init__.pyc (324 bytes) [container.docker.engine] bytes=324 file=container-src/k8s/__init__.pyc
2017-07-11T09:48:04.027727 tarball item: container-src/k8s/base_deploy.py (27642 bytes) [container.docker.engine] bytes=27642 file=container-src/k8s/base_deploy.py
2017-07-11T09:48:04.027945 tarball item: container-src/k8s/engine.py (2389 bytes) [container.docker.engine] bytes=2389 file=container-src/k8s/engine.py
2017-07-11T09:48:04.028156 tarball item: container-src/k8s/base_engine.pyc (5509 bytes) [container.docker.engine] bytes=5509 file=container-src/k8s/base_engine.pyc
2017-07-11T09:48:04.028368 tarball item: container-src/k8s/base_engine.py (5164 bytes) [container.docker.engine] bytes=5164 file=container-src/k8s/base_engine.py
2017-07-11T09:48:04.028586 tarball item: container-src/k8s/deploy.py (1720 bytes) [container.docker.engine] bytes=1720 file=container-src/k8s/deploy.py
2017-07-11T09:48:04.028803 tarball item: container-src/k8s/base_deploy.pyc (19901 bytes) [container.docker.engine] bytes=19901 file=container-src/k8s/base_deploy.pyc
2017-07-11T09:48:04.029017 tarball item: container-src/k8s/engine.pyc (1893 bytes) [container.docker.engine] bytes=1893 file=container-src/k8s/engine.pyc
2017-07-11T09:48:04.029227 tarball item: container-src/k8s/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/k8s/__init__.py
2017-07-11T09:48:04.029505 tarball item: container-src/k8s/deploy.pyc (1961 bytes) [container.docker.engine] bytes=1961 file=container-src/k8s/deploy.pyc
2017-07-11T09:48:04.029686 tarball item: container-src/__init__.pyc (1391 bytes) [container.docker.engine] bytes=1391 file=container-src/__init__.pyc
2017-07-11T09:48:04.029822 tarball item: container-src/docker (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker
2017-07-11T09:48:04.029951 tarball item: container-src/docker/__init__.pyc (327 bytes) [container.docker.engine] bytes=327 file=container-src/docker/__init__.pyc
2017-07-11T09:48:04.030088 tarball item: container-src/docker/files (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/files
2017-07-11T09:48:04.030292 tarball item: container-src/docker/files/conductor-requirements.yml (60 bytes) [container.docker.engine] bytes=60 file=container-src/docker/files/conductor-requirements.yml
2017-07-11T09:48:04.030492 tarball item: container-src/docker/files/get-pip.pyc (1593358 bytes) [container.docker.engine] bytes=1593358 file=container-src/docker/files/get-pip.pyc
2017-07-11T09:48:04.030731 tarball item: container-src/docker/files/conductor-requirements.txt (294 bytes) [container.docker.engine] bytes=294 file=container-src/docker/files/conductor-requirements.txt
2017-07-11T09:48:04.030892 tarball item: container-src/docker/files/setup.pyc (4005 bytes) [container.docker.engine] bytes=4005 file=container-src/docker/files/setup.pyc
2017-07-11T09:48:04.031033 tarball item: container-src/docker/files/setup.py (3215 bytes) [container.docker.engine] bytes=3215 file=container-src/docker/files/setup.py
2017-07-11T09:48:04.031170 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-07-11T09:48:04.031310 tarball item: container-src/docker/engine.py (34750 bytes) [container.docker.engine] bytes=34750 file=container-src/docker/engine.py
2017-07-11T09:48:04.031446 tarball item: container-src/docker/deploy.py (248 bytes) [container.docker.engine] bytes=248 file=container-src/docker/deploy.py
2017-07-11T09:48:04.031623 tarball item: container-src/docker/importer.pyc (19532 bytes) [container.docker.engine] bytes=19532 file=container-src/docker/importer.pyc
2017-07-11T09:48:04.031765 tarball item: container-src/docker/importer.py (23310 bytes) [container.docker.engine] bytes=23310 file=container-src/docker/importer.py
2017-07-11T09:48:04.031908 tarball item: container-src/docker/engine.pyc (29147 bytes) [container.docker.engine] bytes=29147 file=container-src/docker/engine.pyc
2017-07-11T09:48:04.032046 tarball item: container-src/docker/__init__.py (205 bytes) [container.docker.engine] bytes=205 file=container-src/docker/__init__.py
2017-07-11T09:48:04.032182 tarball item: container-src/docker/deploy.pyc (325 bytes) [container.docker.engine] bytes=325 file=container-src/docker/deploy.pyc
2017-07-11T09:48:04.032315 tarball item: container-src/docker/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/templates
2017-07-11T09:48:04.032449 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-07-11T09:48:04.032589 tarball item: container-src/engine.py (6074 bytes) [container.docker.engine] bytes=6074 file=container-src/engine.py
2017-07-11T09:48:04.032738 tarball item: container-src/config.pyc (12699 bytes) [container.docker.engine] bytes=12699 file=container-src/config.pyc
2017-07-11T09:48:04.032876 tarball item: container-src/core.py (37981 bytes) [container.docker.engine] bytes=37981 file=container-src/core.py
2017-07-11T09:48:04.033012 tarball item: container-src/utils (0 bytes) [container.docker.engine] bytes=0L file=container-src/utils
2017-07-11T09:48:04.033148 tarball item: container-src/utils/__init__.pyc (11630 bytes) [container.docker.engine] bytes=11630 file=container-src/utils/__init__.pyc
2017-07-11T09:48:04.033287 tarball item: container-src/utils/visibility.py (3329 bytes) [container.docker.engine] bytes=3329 file=container-src/utils/visibility.py
2017-07-11T09:48:04.033440 tarball item: container-src/utils/galaxy.py (8120 bytes) [container.docker.engine] bytes=8120 file=container-src/utils/galaxy.py
2017-07-11T09:48:04.033588 tarball item: container-src/utils/temp.pyc (1358 bytes) [container.docker.engine] bytes=1358 file=container-src/utils/temp.pyc
2017-07-11T09:48:04.033748 tarball item: container-src/utils/logmux.py (1313 bytes) [container.docker.engine] bytes=1313 file=container-src/utils/logmux.py
2017-07-11T09:48:04.033884 tarball item: container-src/utils/loader.py (906 bytes) [container.docker.engine] bytes=906 file=container-src/utils/loader.py
2017-07-11T09:48:04.034018 tarball item: container-src/utils/logmux.pyc (2559 bytes) [container.docker.engine] bytes=2559 file=container-src/utils/logmux.pyc
2017-07-11T09:48:04.034163 tarball item: container-src/utils/visibility.pyc (4119 bytes) [container.docker.engine] bytes=4119 file=container-src/utils/visibility.pyc
2017-07-11T09:48:04.034300 tarball item: container-src/utils/_text.pyc (8755 bytes) [container.docker.engine] bytes=8755 file=container-src/utils/_text.pyc
2017-07-11T09:48:04.034438 tarball item: container-src/utils/__init__.py (10744 bytes) [container.docker.engine] bytes=10744 file=container-src/utils/__init__.py
2017-07-11T09:48:04.034628 tarball item: container-src/utils/loader.pyc (1170 bytes) [container.docker.engine] bytes=1170 file=container-src/utils/loader.pyc
2017-07-11T09:48:04.034878 tarball item: container-src/utils/_text.py (12304 bytes) [container.docker.engine] bytes=12304 file=container-src/utils/_text.py
2017-07-11T09:48:04.035135 tarball item: container-src/utils/galaxy.pyc (7803 bytes) [container.docker.engine] bytes=7803 file=container-src/utils/galaxy.pyc
2017-07-11T09:48:04.035367 tarball item: container-src/utils/temp.py (698 bytes) [container.docker.engine] bytes=698 file=container-src/utils/temp.py
2017-07-11T09:48:04.035625 tarball item: container-src/core.pyc (27148 bytes) [container.docker.engine] bytes=27148 file=container-src/core.pyc
2017-07-11T09:48:04.035776 tarball item: container-src/cli.py (19540 bytes) [container.docker.engine] bytes=19540 file=container-src/cli.py
2017-07-11T09:48:04.035912 tarball item: container-src/config.py (14021 bytes) [container.docker.engine] bytes=14021 file=container-src/config.py
2017-07-11T09:48:04.036046 tarball item: container-src/engine.pyc (9644 bytes) [container.docker.engine] bytes=9644 file=container-src/engine.pyc
2017-07-11T09:48:04.036179 tarball item: container-src/__init__.py (947 bytes) [container.docker.engine] bytes=947 file=container-src/__init__.py
2017-07-11T09:48:04.036313 tarball item: container-src/exceptions.pyc (5225 bytes) [container.docker.engine] bytes=5225 file=container-src/exceptions.pyc
2017-07-11T09:48:04.036444 tarball item: container-src/openshift (0 bytes) [container.docker.engine] bytes=0L file=container-src/openshift
2017-07-11T09:48:04.036584 tarball item: container-src/openshift/__init__.pyc (330 bytes) [container.docker.engine] bytes=330 file=container-src/openshift/__init__.pyc
2017-07-11T09:48:04.036738 tarball item: container-src/openshift/engine.py (2151 bytes) [container.docker.engine] bytes=2151 file=container-src/openshift/engine.py
2017-07-11T09:48:04.036901 tarball item: container-src/openshift/deploy.py (6203 bytes) [container.docker.engine] bytes=6203 file=container-src/openshift/deploy.py
2017-07-11T09:48:04.037102 tarball item: container-src/openshift/engine.pyc (2606 bytes) [container.docker.engine] bytes=2606 file=container-src/openshift/engine.pyc
2017-07-11T09:48:04.037313 tarball item: container-src/openshift/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/openshift/__init__.py
2017-07-11T09:48:04.037545 tarball item: container-src/openshift/deploy.pyc (5186 bytes) [container.docker.engine] bytes=5186 file=container-src/openshift/deploy.pyc
2017-07-11T09:48:04.037768 tarball item: container-src/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates
2017-07-11T09:48:04.038002 tarball item: container-src/templates/role (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role
2017-07-11T09:48:04.038250 tarball item: container-src/templates/role/defaults (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/defaults
2017-07-11T09:48:04.038499 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-07-11T09:48:04.038695 tarball item: container-src/templates/role/test (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/test
2017-07-11T09:48:04.038883 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-07-11T09:48:04.039076 tarball item: container-src/templates/role/meta (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/meta
2017-07-11T09:48:04.039266 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-07-11T09:48:04.039434 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-07-11T09:48:04.039574 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-07-11T09:48:04.039864 tarball item: container-src/templates/ansible.cfg (41 bytes) [container.docker.engine] bytes=41 file=container-src/templates/ansible.cfg
2017-07-11T09:48:04.040008 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-07-11T09:48:04.040146 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-07-11T09:48:04.040281 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-07-11T09:48:04.040414 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-07-11T09:48:04.040553 tarball item: container-src/templates/wait_on_host.pyc (2483 bytes) [container.docker.engine] bytes=2483 file=container-src/templates/wait_on_host.pyc
2017-07-11T09:48:04.040694 tarball item: container-src/templates/builder.sh (620 bytes) [container.docker.engine] bytes=620 file=container-src/templates/builder.sh
2017-07-11T09:48:04.040820 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-07-11T09:48:04.040945 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-07-11T09:48:04.041069 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-07-11T09:48:04.041195 tarball item: container-src/templates/ansible-container-inventory.pyc (2032 bytes) [container.docker.engine] bytes=2032 file=container-src/templates/ansible-container-inventory.pyc
2017-07-11T09:48:04.041319 tarball item: container-src/templates/init (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/init
2017-07-11T09:48:04.041443 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-07-11T09:48:04.041574 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-07-11T09:48:04.041698 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-07-11T09:48:04.041821 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-07-11T09:48:04.041944 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-07-11T09:48:04.042066 tarball item: container-src/templates/ansible-dockerfile.j2 (1194 bytes) [container.docker.engine] bytes=1194 file=container-src/templates/ansible-dockerfile.j2
2017-07-11T09:48:04.042190 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-07-11T09:48:04.042312 tarball item: container-src/templates/hosts.j2 (90 bytes) [container.docker.engine] bytes=90 file=container-src/templates/hosts.j2
2017-07-11T09:48:04.042435 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-07-11T09:48:04.042599 tarball item: container-src/exceptions.py (1991 bytes) [container.docker.engine] bytes=1991 file=container-src/exceptions.py
2017-07-11T09:48:04.042828 tarball item: container-src/cli.pyc (15602 bytes) [container.docker.engine] bytes=15602 file=container-src/cli.pyc
2017-07-11T09:48:04.043053 tarball item: container-src/conductor-build/setup.py (3215 bytes) [container.docker.engine] bytes=3215 file=container-src/conductor-build/setup.py
2017-07-11T09:48:04.043249 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-07-11T09:48:04.043484 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-07-11T09:48:04.043745 tarball item: Dockerfile (1519 bytes) [container.docker.engine] bytes=1519 file=Dockerfile
2017-07-11T09:48:04.044573 Starting Docker build of Ansible Container Conductor image (please be patient)... [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=713
Step 1/12 : FROM debian:jessie
 ---> 62a932a5c143
Step 2/12 : ENV ANSIBLE_CONTAINER 1
 ---> Using cache
 ---> 819006cc16d8
Step 3/12 : RUN apt-get update -y &&     apt-get install -y gcc python2.7 git python-dev rsync libffi-dev libssl-dev dpkg-dev python-apt libpopt0 &&     cd /usr/bin &&     rm -f lsb_release &&     ln -fs python2.7 python &&     apt-get clean
 ---> Using cache
 ---> 56fece6cf89e
Step 4/12 : ADD https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz /tmp/docker.tgz

 ---> Using cache
 ---> fec61990731a
Step 5/12 : COPY /contrib/get-pip.py /get-pip.py
 ---> Using cache
 ---> 8825ba14d518
Step 6/12 : 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
 ---> 2f9ab7b1f641
Step 7/12 : COPY /container-src /_ansible/container
 ---> Using cache
 ---> ddd914babf52
Step 8/12 : 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
 ---> Using cache
 ---> f86cf34fa700
Step 9/12 : COPY /build-src /_ansible/build
 ---> Using cache
 ---> 347cbffbc0d5
Step 10/12 : 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)
 ---> Using cache
 ---> 2baebe7e328b
Step 11/12 : VOLUME /usr
 ---> Using cache
 ---> 8563d4e70bbe
Step 12/12 : VOLUME /lib
 ---> Using cache
 ---> f2e80525e203
Successfully built f2e80525e203
Successfully tagged ansible_tst_git-conductor:latest
2017-07-11T09:48:13.439491 Cleaning up temporary directory [container.utils.temp] caller_file=/usr/lib/python2.7/site-packages/container/utils/temp.py caller_func=__exit__ caller_line=22 path=/tmp/tmp6N7n7D
2017-07-11T09:48:13.441192 Config settings                [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_build caller_line=160 config=<container.config.AnsibleContainerConfig object at 0x7efecf238e50> rawsettings={"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"} settings={"conductor_base": "debian:jessie", "pwd": "/home/asantos/mydockerbuild/ansible_tst_git"} tconf=<class 'container.config.AnsibleContainerConfig'>
2017-07-11T09:48:13.442344 Call: Engine.run_conductor     [container.docker.engine] args=('build', {'services': ordereddict([('pgsql', ordereddict([('from', 'postgres:9.3'), ('roles', ['pgsql'])]))]), 'version': '2', 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'debian:jessie'), ('pwd', '/home/asantos/mydockerbuild/ansible_tst_git')])}, '/home/asantos/mydockerbuild/ansible_tst_git', {'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=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-07-11T09:48:13.446092 Docker run:                    [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=run_conductor caller_line=299 image=u'sha256:f2e80525e2037f96e07c775a2d415808c2cc7c8efab4dbf2e426b9f8d62f89a0' params={'name': u'ansible_tst_git_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_tst_git', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNhY2hlIjogdHJ1ZSwgImxvY2FsX3B5dGhvbiI6IGZhbHNlLCAid2l0aF92YXJpYWJsZXMiOiBbXSwgInNlbGludXgiOiB0cnVlLCAicHVyZ2VfbGFzdCI6IHRydWUsICJzdWJjb21tYW5kIjogImJ1aWxkIiwgIm5vX2NvbmR1Y3Rvcl9ydW50aW1lIjogdHJ1ZSwgImRldmVsIjogZmFsc2UsICJyb2xlc19wYXRoIjogbnVsbCwgImFuc2libGVfb3B0aW9ucyI6ICIiLCAiZmxhdHRlbiI6IGZhbHNlLCAiZGVidWciOiB0cnVlLCAic2F2ZV9jb25kdWN0b3JfY29udGFpbmVyIjogZmFsc2V9', '--config', u'eyJzZXJ2aWNlcyI6IFtbInBnc3FsIiwgeyJmcm9tIjogInBvc3RncmVzOjkuMyIsICJyb2xlcyI6IFsicGdzcWwiXX1dXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3JfYmFzZSIsICJkZWJpYW46amVzc2llIl0sIFsicHdkIiwgIi9ob21lL2FzYW50b3MvbXlkb2NrZXJidWlsZC9hbnNpYmxlX3RzdF9naXQiXV19', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/home/asantos/mydockerbuild/ansible_tst_git': {'bind': '/src', 'mode': 'ro'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-07-11T08:48:21.832432 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=266
2017-07-11T08:48:21.834378 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=volumes
2017-07-11T08:48:21.836208 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=275 section=registries
2017-07-11T08:48:21.837989 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=281 service=u'pgsql' service_data={u'from': u'postgres:9.3', u'roles': [u'pgsql']}
2017-07-11T08:48:21.841876 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=304 defaults={} service=u'pgsql'
2017-07-11T08:48:21.844572 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=353 services={"pgsql": {"from": "postgres:9.3", "roles": ["pgsql"], "defaults": {}}}
2017-07-11T08:48:21.847108 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-07-11T08:48:21.860704 2017-07-11T08:48:21.860704 Docker™ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=612 project=ansible_tst_git
2017-07-11T08:48:21.862681 Building service...            [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=618 project=ansible_tst_git service=u'pgsql'
2017-07-11T08:48:21.868999 Base fingerprint hash = ae075505f23b7265797121c47c5c049c0f9171a89db6806a60c6ec5757e0a60f [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=623 hash=ae075505f23b7265797121c47c5c049c0f9171a89db6806a60c6ec5757e0a60f service=u'pgsql'
2017-07-11T08:48:21.936727 Still trying to keep cache.    [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=638 service=u'pgsql'
2017-07-11T08:48:21.955566 Cache busted! No layer found   [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=653 fingerprint=ef621114a3ad2f48236fba8f99e1a3919bc25450d3acfa2216da57a3f8f1847d service=u'pgsql'
2017-07-11T08:48:21.987433 Detected architecture x86_64-linux-gnu [container.core] architecture=x86_64-linux-gnu caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=687 service=u'pgsql'
2017-07-11T08:48:21.997795 Call: Engine.run_container     [container.docker.engine] args=(u'sha256:27a6a25d9de5f455de6d600044e2c516e6e1763bcc0619bad2274a2583b1fee0', u'pgsql') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'ansible_tst_git_pgsql', 'environment': {'PYTHONPATH': '/_usr/lib/python2.7', 'CPATH': '/_usr/include:/_usr/local/include', 'LD_LIBRARY_PATH': '/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_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'fed37f597e8376253ab46643b8b1db19a0054c7d5d41564edbccb4b2282a474f': {'bind': '/_usr', 'mode': 'ro'}, u'b04fd76143435d4e7ba1aed7b056670bb6f35c588889d10a29915ae5f41b4418': {'bind': '/_lib', 'mode': 'ro'}}, 'command': 'sh -c "while true; do sleep 1; done"', 'privileged': True}
2017-07-11T08:48:22.001424 Removing keys                  [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=167 keys=[u'from', u'roles', 'defaults', 'links']
2017-07-11T08:48:22.004089 Running container in docker    [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=191 image=u'sha256:27a6a25d9de5f455de6d600044e2c516e6e1763bcc0619bad2274a2583b1fee0' params={"name": "ansible_tst_git_pgsql", "environment": {"PYTHONPATH": "/_usr/lib/python2.7", "CPATH": "/_usr/include:/_usr/local/include", "LD_LIBRARY_PATH": "/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_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": {"fed37f597e8376253ab46643b8b1db19a0054c7d5d41564edbccb4b2282a474f": {"bind": "/_usr", "mode": "ro"}, "b04fd76143435d4e7ba1aed7b056670bb6f35c588889d10a29915ae5f41b4418": {"bind": "/_lib", "mode": "ro"}}, "command": "sh -c \"while true; do sleep 1; done\"", "privileged": true}
2017-07-11T08:48:23.165605 Container running              [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=715 id=u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c'
2017-07-11T08:48:23.170538 writing playbook to /tmp/tmpIB8jZA/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=486
2017-07-11T08:48:23.172734 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=487 playbook=[{'hosts': u'pgsql', 'roles': ['pgsql'], 'vars': {}}]
2017-07-11T08:48:23.176869 found dir /tmp/tmpIB8jZA/files [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=510
2017-07-11T08:48:23.178877 found dir /tmp/tmpIB8jZA/templates [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=510
2017-07-11T08:48:23.180399 found file /tmp/tmpIB8jZA/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=513
2017-07-11T08:48:23.181908 found file /tmp/tmpIB8jZA/hosts [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=513
2017-07-11T08:48:23.192704 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=545 command=ansible-playbook -vvvv  -i /tmp/tmpIB8jZA/hosts -c docker /tmp/tmpIB8jZA/playbook.yml cwd=/src
Using /src/ansible.cfg as config file
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: playbook.yml *********************************************************
1 plays in /tmp/tmpIB8jZA/playbook.yml
PLAY [pgsql] *******************************************************************
TASK [Gathering Facts] *********************************************************
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> ESTABLISH DOCKER CONNECTION FOR USER: root
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089 `" && echo ansible-tmp-1499762903.81-46317106722089="` echo /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089 `" ) && sleep 0\'']
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> PUT /tmp/tmp_F2G_h TO /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089/setup.py
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089/ /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089/setup.py && sleep 0'"]
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u'/bin/sh -c \'/_usr/bin/python /root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1499762903.81-46317106722089/" > /dev/null 2>&1 && sleep 0\'']
ok: [pgsql]
META: ran handlers
TASK [pgsql : Ensure /var/lib/postgresql/scripts exists] ***********************
task path: /src/roles/pgsql/tasks/main.yml:4
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> ESTABLISH DOCKER CONNECTION FOR USER: root
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350 `" && echo ansible-tmp-1499762904.42-150304654956350="` echo /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350 `" ) && sleep 0\'']
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> PUT /tmp/tmpaGTSFV TO /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350/file.py
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350/ /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350/file.py && sleep 0'"]
<cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'/bin/sh', '-c', u'/bin/sh -c \'/_usr/bin/python /root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350/file.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1499762904.42-150304654956350/" > /dev/null 2>&1 && sleep 0\'']
changed: [pgsql] => {
    "changed": true,
    "diff": {
        "after": {
            "group": 999,
            "owner": 999,
            "path": "/var/lib/postgresql/scripts",
            "state": "directory"
        },
        "before": {
            "group": 0,
            "owner": 0,
            "path": "/var/lib/postgresql/scripts",
            "state": "absent"
        }
    },
    "gid": 999,
    "group": "postgres",
    "invocation": {
        "module_args": {
            "attributes": null,
            "backup": null,
            "content": null,
            "delimiter": null,
            "diff_peek": null,
            "directory_mode": null,
            "follow": false,
            "force": false,
            "group": "postgres",
            "mode": null,
            "original_basename": null,
            "owner": "postgres",
            "path": "/var/lib/postgresql/scripts",
            "recurse": true,
            "regexp": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "state": "directory",
            "unsafe_writes": null,
            "validate": null
        }
    },
    "mode": "0755",
    "owner": "postgres",
    "path": "/var/lib/postgresql/scripts",
    "size": 6,
    "state": "directory",
    "uid": 999
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
pgsql                      : ok=2    changed=1    unreachable=0    failed=0
2017-07-11T08:48:24.809599 Playbook run finished.         [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=722 exit_code=0
2017-07-11T08:48:24.812971 Applied role to service        [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=725 role=pgsql service=u'pgsql'
2017-07-11T08:48:35.810339 Call: Engine.commit_role_as_layer [container.docker.engine] args=(u'cd6c560b26dc507d5a4aa0cedfb17d467cca1db31792063170674087da9fb30c', u'pgsql', 'ef621114a3ad2f48236fba8f99e1a3919bc25450d3acfa2216da57a3f8f1847d', ordereddict([(u'from', u'postgres:9.3'), (u'roles', ['pgsql']), ('defaults', ordereddict([]))])) caller_file=/_ansible/container/docker/engine.py caller_func=Engine.commit_role_as_layer caller_line=14 kwargs={'with_name': True}
2017-07-11T08:48:35.816777 Committing new layer           [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=commit_role_as_layer caller_line=509 params={'message': 'Built with Ansible Container (https://github.com/ansible/ansible-container)', 'tag': '20170711084835', 'conf': {'Hostname': '', 'Volumes': {}, 'Domainname': '', 'Cmd': '', 'WorkingDir': '', 'Labels': {'com.ansible.container.fingerprint': 'ef621114a3ad2f48236fba8f99e1a3919bc25450d3acfa2216da57a3f8f1847d'}, 'Entrypoint': None, 'User': '', 'Env': [], 'ExposedPorts': {}, 'OnBuild': []}, 'repository': u'ansible_tst_git-pgsql'}
2017-07-11T08:48:38.426233 Committed layer as image       [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=739 image=u'sha256:b207726d98ffb9393b009e015e954542bd0cd38aa73f3e1c66181ae3cc0bca16' service=u'pgsql'
2017-07-11T08:48:38.518174 Build complete.                [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=744 service=u'pgsql'
2017-07-11T08:48:38.520112 All images successfully built. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=747
2017-07-11T09:48:38.830919 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=await_conductor_command caller_line=326 command_rc=0 conductor_id=u'27803091baf5c82b11eabc77feab891fb98b8fe81f451409c421d710f3fc3c62' save_container=False
@SalahAdDin
Copy link

@asantos82 Yes, you are right, i pulled all image from my container before to build the container and this bug dissapeared.

@LeHack
Copy link

LeHack commented Jul 11, 2017

@SalahAdDin @asantos82 I'm glad you confirmed that my proposed workaround (#400 (comment)) works :)

@jsextl
Copy link

jsextl commented Mar 7, 2018

Still having the same problem with current version 0.9.2 and Docker 18.03.0-ce-rc1 on MacOS 10.13.

Using the following container.yml:

version: "2"

settings:
conductor:
base: ubuntu:16.04

project_name: xyz

services:
revproxy:
from: "traefik:latest"
roles:
- revproxy
ports:
- "80:80"
- "8080:8080"
command: [ /traefik ]

Image IS loaded prior to ansible-container build:

docker image ls

REPOSITORY TAG IMAGE ID CREATED SIZE
traefik latest 8c72b944d569 8 days ago 49.6MB

docker pull traefik

Using default tag: latest
latest: Pulling from library/traefik
Digest: sha256:d277007b55a8a8d972b1983ef11387d05f719821a2d2e23e8fa06ac5081a302f
Status: Image is up to date for traefik:latest

ansible-container --debug build

2018-03-07T22:30:53.922768 Cleaning up temporary directory [container.utils.temp] caller_file=/usr/local/lib/python2.7/site-packages/container/utils/temp.py caller_func=exit caller_line=22 path=/var/folders/xn/4kfjy25n20qcxpjm2nqjwtl80000gn/T/tmpEILcLR
2018-03-07T22:30:53.925535 Config settings [container.core] caller_file=/usr/local/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_build caller_line=191 conf=<class 'container.docker.config.AnsibleContainerConfig'> config=<container.docker.config.AnsibleContainerConfig object at 0x10754cbd0> rawsettings={"conductor": {"base": "ubuntu:16.04"}, "project_name": "xyz", "pwd": "/Users/jsextl/tmp/test2"} settings={"conductor": {"base": "ubuntu:16.04"}, "project_name": "xyz", "pwd": "/Users/jsextl/tmp/test2"}
2018-03-07T22:30:53.930002 Call: Engine.run_conductor [container.docker.engine] args=('build', {'services': ordereddict([('revproxy', ordereddict([('from', 'traefik:latest'), ('roles', ['revproxy']), ('ports', ['80:80', '8080:8080']), ('command', ['/traefik'])]))]), 'version': '2', 'defaults': ordereddict([]), 'settings': ordereddict([('conductor', ordereddict([('base', 'ubuntu:16.04')])), ('project_name', 'xyz'), ('pwd', '/Users/jsextl/tmp/test2')])}, '/Users/jsextl/tmp/test2', {'with_volumes': [], 'config_vars': ordereddict([]), 'conductor_cache': True, 'local_python': False, 'with_variables': [], 'selinux': True, 'purge_last': True, 'cache': True, 'volume_driver': None, 'devel': False, 'src_mount_path': None, 'roles_path': [], 'subcommand': 'build', 'ansible_options': u'', 'flatten': False, 'container_cache': True, 'debug': True, 'services_to_build': None, 'save_conductor_container': False}) caller_file=/usr/local/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2018-03-07T22:30:53.995015 Docker run: [container.docker.engine] caller_file=/usr/local/lib/python2.7/site-packages/container/docker/engine.py caller_func=run_conductor caller_line=435 image=u'sha256:33a6c89dd20b4920d7087dbd3d65e184dbb9a79412947b8f6ec7ba30239e2ab1' params={'name': u'xyz_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', 'xyz', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNvbmZpZ192YXJzIjoge30sICJjb25kdWN0b3JfY2FjaGUiOiB0cnVlLCAibG9jYWxfcHl0aG9uIjogZmFsc2UsICJ3aXRoX3ZhcmlhYmxlcyI6IFtdLCAic2VsaW51eCI6IHRydWUsICJwdXJnZV9sYXN0IjogdHJ1ZSwgImNhY2hlIjogdHJ1ZSwgInZvbHVtZV9kcml2ZXIiOiBudWxsLCAiZGV2ZWwiOiBmYWxzZSwgInNyY19tb3VudF9wYXRoIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgInN1YmNvbW1hbmQiOiAiYnVpbGQiLCAiYW5zaWJsZV9vcHRpb25zIjogIiIsICJmbGF0dGVuIjogZmFsc2UsICJjb250YWluZXJfY2FjaGUiOiB0cnVlLCAiZGVidWciOiB0cnVlLCAic2VydmljZXNfdG9fYnVpbGQiOiBudWxsLCAic2F2ZV9jb25kdWN0b3JfY29udGFpbmVyIjogZmFsc2V9', '--config', u'eyJzZXJ2aWNlcyI6IFtbInJldnByb3h5IiwgeyJmcm9tIjogInRyYWVmaWs6bGF0ZXN0IiwgInJvbGVzIjogWyJyZXZwcm94eSJdLCAicG9ydHMiOiBbIjgwOjgwIiwgIjgwODA6ODA4MCJdLCAiY29tbWFuZCI6IFsiL3RyYWVmaWsiXX1dXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3IiLCB7ImJhc2UiOiAidWJ1bnR1OjE2LjA0In1dLCBbInByb2plY3RfbmFtZSIsICJ4eXoiXSwgWyJwd2QiLCAiL1VzZXJzL2pzZXh0bC90bXAvdGVzdDIiXV19', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'xyz_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/Users/jsextl/tmp/test2': {'bind': '/src', 'mode': 'ro'}, '/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/Users/jsextl/.docker/config.json': {'bind': '/Users/jsextl/.docker/config.json', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2018-03-07T21:31:28.930986 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=325
2018-03-07T21:31:28.944339 Processing section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=volumes
2018-03-07T21:31:28.951189 Processing section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=registries
2018-03-07T21:31:28.956286 Processing section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=secrets
2018-03-07T21:31:28.962888 Processing service... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=340 service=u'revproxy' service_data={u'command': [u'/traefik'], u'from': u'traefik:latest', u'ports': [u'80:80', u'8080:8080'], u'roles': [u'revproxy']}
2018-03-07T21:31:28.990623 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=363 defaults={} service=u'revproxy'
2018-03-07T21:31:29.006732 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=391 services={"revproxy": {"command": ["/traefik"], "from": "traefik:latest", "ports": ["80:80", "8080:8080"], "roles": ["revproxy"], "defaults": {}}}
2018-03-07T21:31:29.020492 Loading engine capabilities [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD'] engine=docker
2018-03-07T21:31:29.074721 2018-03-07T21:31:29.074721 Docker™ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=688 project=xyz
2018-03-07T21:31:29.081822 Building service... [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=694 project=xyz service=u'revproxy'
2018-03-07T21:31:29.090697 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=get_timeout caller_line=122
2018-03-07T21:31:29.122238 Base fingerprint hash = 5097f79cc60656b18e1214ebb23468d9b1eafe5fc38f7200f1772e2dda933893 [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=710 hash=5097f79cc60656b18e1214ebb23468d9b1eafe5fc38f7200f1772e2dda933893 service=u'revproxy'
2018-03-07T21:31:29.187335 Still trying to keep cache. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=725 service=u'revproxy'
2018-03-07T21:31:29.234715 Cache busted! No layer found [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=740 fingerprint=5522b354a95c579b969e95cebadd9e681e2af6aed5517f6b8b0b5c02e0e236f8 service=u'revproxy'
2018-03-07T21:31:29.319174 Detected architecture x86_64-linux-gnu [container.core] architecture=x86_64-linux-gnu caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=775 service=u'revproxy'
2018-03-07T21:31:29.343869 Call: Engine.run_container [container.docker.engine] args=(u'sha256:8c72b944d56909f092c54c2b0804002f5501a61b7f4444e03574c0ff3455d657', u'revproxy') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'xyz_revproxy', 'environment': {'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin', 'CPATH': '/usr/include:/usr/local/include:/_usr/include:/_usr/local/include', 'ANSIBLE_CONTAINER': 1, 'LD_LIBRARY_PATH': '/usr/lib:/usr/lib64:/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_lib'}, 'working_dir': '/', 'command': 'sh -c "while true; do sleep 1; done"', 'user': 'root', 'volumes': {u'99cd11f6cf91852b394e7a4cd381f1df6d2792a674e51428ba955f8eab500cca': {'bind': '/_usr', 'mode': 'ro'}, u'f08c4ec06fb88bde7525148ffb83767da6bb56d26f9ed8f48510a8f204f14691': {'bind': '/_lib', 'mode': 'ro'}}, 'entrypoint': [], 'privileged': True}
2018-03-07T21:31:29.354945 Removing keys [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=241 keys=[u'from', 'defaults', u'roles', 'links']
2018-03-07T21:31:29.370006 Running container in docker [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=265 image=u'sha256:8c72b944d56909f092c54c2b0804002f5501a61b7f4444e03574c0ff3455d657' params={"command": "sh -c "while true; do sleep 1; done"", "ports": {"80": ["80"], "8080": ["8080"]}, "name": "xyz_revproxy", "environment": {"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin", "CPATH": "/usr/include:/usr/local/include:/_usr/include:/_usr/local/include", "ANSIBLE_CONTAINER": 1, "LD_LIBRARY_PATH": "/usr/lib:/usr/lib64:/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_lib"}, "working_dir": "/", "user": "root", "volumes": {"99cd11f6cf91852b394e7a4cd381f1df6d2792a674e51428ba955f8eab500cca": {"bind": "/_usr", "mode": "ro"}, "f08c4ec06fb88bde7525148ffb83767da6bb56d26f9ed8f48510a8f204f14691": {"bind": "/_lib", "mode": "ro"}}, "entrypoint": [], "privileged": true}
Traceback (most recent call last):
File "/usr/local/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 399, in conductor_commandline
**params)
File "/_ansible/container/init.py", line 19, in wrapped
return fn(*args, **kwargs)
File "/_ansible/container/core.py", line 800, in conductorcmd_build
container_id = engine.run_container(cur_image_id, service_name, **run_kwargs)
File "/_ansible/container/docker/engine.py", line 105, in wrapped
return fn(self, *args, **kwargs)
File "/_ansible/container/init.py", line 19, in wrapped
return fn(*args, **kwargs)
File "/_ansible/container/docker/engine.py", line 270, in run_container
**run_kwargs
File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 714, in run
container.start()
File "/usr/local/lib/python2.7/dist-packages/docker/models/containers.py", line 334, in start
return self.client.api.start(self.id, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 19, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 1081, in start
self._raise_for_status(res)
File "/usr/local/lib/python2.7/dist-packages/docker/api/client.py", line 222, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/local/lib/python2.7/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 500 Server Error: Internal Server Error ("linux spec user: unable to find user root: no matching entries in passwd file")
2018-03-07T22:31:15.186896 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/usr/local/lib/python2.7/site-packages/container/docker/engine.py caller_func=await_conductor_command caller_line=462 command_rc=1 conductor_id=u'2423f2223b1f7a28d74993a669864f4650b38e36113bd9b6c933f9d118ea88f4' save_container=False
2018-03-07T22:31:15.217873 Conductor exited with status 1 [container.cli] caller_file=/usr/local/lib/python2.7/site-packages/container/cli.py caller_func=call caller_line=311

Maybe it has something to do with the entrypoint/cmd that is set by ansible-container?

docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
74f6f061d1c1 8c72b944d569 "sh -c 'while true; …" About a minute ago Created 0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp xyz_revproxy

Here I see that the cmd is set to something with "sh -c 'while..." instead of the specified command in the container.yml file.

Best regards,
Jonas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
10 participants