ansible / ansible-container

DEPRECATED -- Ansible Container was a tool to build Docker images and orchestrate containers using only Ansible playbooks.
GNU Lesser General Public License v3.0
2.19k stars 392 forks source link

Ansible container build is terminated with module_error \usr\bin\python not found. #843

Closed Manigunner closed 6 years ago

Manigunner commented 6 years ago
ISSUE TYPE
container.yml
version: '2'
settings:
  conductor:
    base: centos:7
services:
  ansible.nginx-container:
    from: "nginx:base"
    roles:
    - nginx_container
    ports:
    - "80:3000"
    user: root
    command: [nginx,-g,'daemon off']
registries: {}
OS / ENVIRONMENT

Ansible Container, version 0.9.2 Linux, test.test.com, 3.10.0-327.13.1.el7.x86_64, #1 SMP Mon Feb 29 13:22:02 EST 2016, x86_64 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] /usr/bin/python

"ContainersPaused": 0, "Labels": null, "CgroupDriver": "cgroupfs", "ContainersRunning": 0, "ContainerdCommit": { "Expected": "03e5862ec0d8d3b3f750e19fca3ee367e13c090e", "ID": "03e5862ec0d8d3b3f750e19fca3ee367e13c090e" }, "InitBinary": "docker-init", "NGoroutines": 24, "Swarm": { "Managers": 0, "ControlAvailable": false, "NodeID": "", "Cluster": { "Spec": { "TaskDefaults": {}, "Orchestration": {}, "EncryptionConfig": { "AutoLockManagers": false }, "Raft": { "HeartbeatTick": 0, "ElectionTick": 0 }, "CAConfig": {}, "Dispatcher": {} }, "Version": {}, "ID": "", "CreatedAt": "0001-01-01T00:00:00Z", "UpdatedAt": "0001-01-01T00:00:00Z" }, "Nodes": 0, "Error": "", "RemoteManagers": null, "LocalNodeState": "inactive", "NodeAddr": "" }, "LoggingDriver": "journald", "OSType": "linux", "HttpProxy": "", "Runtimes": { "runc": { "path": "docker-runc" } }, "DriverStatus": [ [ "Backing Filesystem", "extfs" ], [ "Supports d_type", "true" ] ], "OperatingSystem": "Red Hat Enterprise Linux Server 7.2 (Maipo)", "Containers": 185, "HttpsProxy": "", "BridgeNfIp6tables": false, "MemTotal": 8203485184, "SecurityOptions": [ "name=seccomp,profile=default" ], "Driver": "overlay", "IndexServerAddress": "https://index.docker.io/v1/", "ClusterStore": "", "InitCommit": { "Expected": "949e6fa", "ID": "949e6fa" }, "Isolation": "", "SystemStatus": null, "OomKillDisable": true, "ClusterAdvertise": "", "SystemTime": "2017-12-12T14:52:38.635530941Z", "Name": "dtest.com", "CPUSet": true, "RegistryConfig": { "InsecureRegistryCIDRs": [ "127.0.0.0/8" ], "IndexConfigs": { "docker.io": { "Official": true, "Name": "docker.io", "Secure": true, "Mirrors": null }, "nexus.ops.test.com:5443": { "Official": false, "Name": "nexus.ops.test.com:5443", "Secure": false, "Mirrors": [] }, "nexus.ops.test.com:5000": { "Official": false, "Name": "nexus.ops.test.com:5000", "Secure": false, "Mirrors": [] } }, "Mirrors": [] }, "DefaultRuntime": "runc", "ContainersStopped": 185, "NCPU": 4, "NFd": 17, "Architecture": "x86_64", "KernelMemory": true, "CpuCfsQuota": true, "Debug": false, "ID": "KBBZ:ODFS:K55U:7EUJ:DSRA:XPRS:AMJK:NNCI:V3QK:DWCD:WTYQ:B4ZI", "IPv4Forwarding": true, "KernelVersion": "3.10.0-327.13.1.el7.x86_64", "BridgeNfIptables": false, "NoProxy": "", "LiveRestoreEnabled": false, "ServerVersion": "1.13.0", "CpuCfsPeriod": true, "ExperimentalBuild": false, "MemoryLimit": true, "SwapLimit": true, "Plugins": { "Volume": [ "local" ], "Network": [ "bridge", "host", "macvlan", "null", "overlay" ], "Authorization": null }, "Images": 151, "DockerRootDir": "/app/docker-data", "NEventsListener": 0, "CPUShares": true, "RuncCommit": { "Expected": "2f7393a47307a16f8cee44a37b262e8b81021e3e", "ID": "2f7393a47307a16f8cee44a37b262e8b81021e3e" } } { "KernelVersion": "3.10.0-327.13.1.el7.x86_64", "Arch": "amd64", "BuildTime": "2017-01-17T09:55:28.732707040+00:00", "ApiVersion": "1.25", "Version": "1.13.0", "MinAPIVersion": "1.12", "GitCommit": "49bf474", "Os": "linux", "GoVersion": "go1.7.3"

##### SUMMARY
My Nginx_Container build is suddenly terminated with /usr/bin/python module error. 

##### STEPS TO REPRODUCE
sudo ansible-container --debug build
sudo ansible-container --debug build --user-local-python

<!--- Paste any example commands between quotes below -->

<!--- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
Image should be build Successfully
##### ACTUAL RESULTS
test ansible_container_dotcom]$ sudo ansible-container --debug build --use-local-python
2017-12-26T08:50:19.779015 The default type is            [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=189 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<type '_ordereddict.ordereddict'>
2017-12-26T08:50:19.780632 Getting environment variables... [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=205
2017-12-26T08:50:19.782158 Read environment variables     [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=210 env_vars={}
2017-12-26T08:50:19.783556 Resolved template variables    [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_resolve_defaults caller_line=194 template_vars={}
2017-12-26T08:50:19.784924 Parsed config                  [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=set_env caller_line=148 config={"version": "2", "settings": {"conductor": {"base": "centos:7"}, "pwd": "/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.nginx-container": {"from": "nginx:base", "roles": ["nginx_container"], "ports": ["80:3000"], "user": "root", "command": ["nginx", "-g", "daemon off"]}}, "registries": {}, "defaults": {}}
2017-12-26T08:50:19.786098 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-12-26T08:50:19.817437 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=get_timeout caller_line=122
2017-12-26T08:50:19.900077 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=531 container=u'ansible_container_dotcom_conductor'
2017-12-26T08:50:19.907596 Call: Engine.build_conductor_image [container.docker.engine] args=('/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom', 'centos:7') caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.build_conductor_image caller_line=23 kwargs={'environment': [], 'cache': True}
2017-12-26T08:50:19.909581 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/tmp81TjGv
2017-12-26T08:50:19.910803 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=963
2017-12-26T08:50:19.972647 Rendered Jinja Template:       [container.utils] body=FROM centos:7
ENV ANSIBLE_CONTAINER=1

RUN yum update -y && \
    yum install -y epel-release && \
    yum install -y make gcc git python-devel curl rsync libffi-devel openssl-devel && \
    # yum remove -y python-chardet && \
    yum clean all

RUN (curl https://bootstrap.pypa.io/get-pip.py | python - --no-cache-dir ) && \
    mkdir -p /etc/ansible/roles /_ansible/src && \
    (curl https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \
       | tar -zxC /usr/local/bin/ --strip-components=1 docker/docker )

# The COPY here will break cache if the version of Ansible Container changed
COPY /container-src /_ansible/container
RUN cd /_ansible && \
    pip install --no-cache-dir -r container/conductor-build/conductor-requirements.txt && \
    PYTHONPATH=. LC_ALL="en_US.UTF-8" python container/conductor-build/setup.py develop -v -N && \
    ansible-galaxy install -p /etc/ansible/roles -r container/conductor-build/conductor-requirements.yml

# Removing python-chardet removed yum-utils, and now that we're done pip-installing things,
# we'll put it back.
#RUN yum install -y yum-utils && \
#    yum clean all

 caller_file=/usr/lib/python2.7/site-packages/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=83
2017-12-26T08:50:19.983033 Rendered Jinja Template:       [container.utils] body=FROM ansible/container-conductor-centos-7:0.9.2

VOLUME /usr

# 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)
 caller_file=/usr/lib/python2.7/site-packages/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=83
2017-12-26T08:50:19.984728 Context manifest:              [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=build_conductor_image caller_line=1030
2017-12-26T08:50:19.985012 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2017-12-26T08:50:19.985279 tarball item: build-src/ansible-requirements.txt (130 bytes) [container.docker.engine] bytes=130 file=build-src/ansible-requirements.txt
2017-12-26T08:50:19.985546 tarball item: build-src/requirements.yml (32 bytes) [container.docker.engine] bytes=32 file=build-src/requirements.yml
2017-12-26T08:50:19.985833 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2017-12-26T08:50:19.986108 tarball item: contrib/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=contrib/get-pip.py
2017-12-26T08:50:19.986377 tarball item: container-src (0 bytes) [container.docker.engine] bytes=0L file=container-src
2017-12-26T08:50:19.986643 tarball item: container-src/__init__.py (947 bytes) [container.docker.engine] bytes=947 file=container-src/__init__.py
2017-12-26T08:50:19.986980 tarball item: container-src/cli.py (22794 bytes) [container.docker.engine] bytes=22794 file=container-src/cli.py
2017-12-26T08:50:19.987246 tarball item: container-src/config.py (15653 bytes) [container.docker.engine] bytes=15653 file=container-src/config.py
2017-12-26T08:50:19.987512 tarball item: container-src/core.py (42745 bytes) [container.docker.engine] bytes=42745 file=container-src/core.py
2017-12-26T08:50:19.987818 tarball item: container-src/engine.py (6740 bytes) [container.docker.engine] bytes=6740 file=container-src/engine.py
2017-12-26T08:50:19.988090 tarball item: container-src/exceptions.py (2158 bytes) [container.docker.engine] bytes=2158 file=container-src/exceptions.py
2017-12-26T08:50:19.988357 tarball item: container-src/docker (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker
2017-12-26T08:50:19.988621 tarball item: container-src/docker/__init__.py (205 bytes) [container.docker.engine] bytes=205 file=container-src/docker/__init__.py
2017-12-26T08:50:19.988911 tarball item: container-src/docker/config.py (2393 bytes) [container.docker.engine] bytes=2393 file=container-src/docker/config.py
2017-12-26T08:50:19.989179 tarball item: container-src/docker/deploy.py (248 bytes) [container.docker.engine] bytes=248 file=container-src/docker/deploy.py
2017-12-26T08:50:19.989445 tarball item: container-src/docker/engine.py (49646 bytes) [container.docker.engine] bytes=49646 file=container-src/docker/engine.py
2017-12-26T08:50:19.989732 tarball item: container-src/docker/importer.py (24838 bytes) [container.docker.engine] bytes=24838 file=container-src/docker/importer.py
2017-12-26T08:50:19.990015 tarball item: container-src/docker/secrets.py (5255 bytes) [container.docker.engine] bytes=5255 file=container-src/docker/secrets.py
2017-12-26T08:50:19.990287 tarball item: container-src/docker/files (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/files
2017-12-26T08:50:19.990554 tarball item: container-src/docker/files/conductor-requirements.txt (273 bytes) [container.docker.engine] bytes=273 file=container-src/docker/files/conductor-requirements.txt
2017-12-26T08:50:19.990844 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-12-26T08:50:19.991113 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-12-26T08:50:19.991385 tarball item: container-src/docker/files/setup.py (4628 bytes) [container.docker.engine] bytes=4628 file=container-src/docker/files/setup.py
2017-12-26T08:50:19.991652 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-12-26T08:50:19.991953 tarball item: container-src/docker/files/setup.pyc (6039 bytes) [container.docker.engine] bytes=6039 file=container-src/docker/files/setup.pyc
2017-12-26T08:50:19.992223 tarball item: container-src/docker/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/templates
2017-12-26T08:50:19.992532 tarball item: container-src/docker/templates/conductor-local-dockerfile.j2 (674 bytes) [container.docker.engine] bytes=674 file=container-src/docker/templates/conductor-local-dockerfile.j2
2017-12-26T08:50:19.992829 tarball item: container-src/docker/templates/conductor-src-dockerfile.j2 (3020 bytes) [container.docker.engine] bytes=3020 file=container-src/docker/templates/conductor-src-dockerfile.j2
2017-12-26T08:50:19.993128 tarball item: container-src/docker/__init__.pyc (327 bytes) [container.docker.engine] bytes=327 file=container-src/docker/__init__.pyc
2017-12-26T08:50:19.993401 tarball item: container-src/docker/config.pyc (2354 bytes) [container.docker.engine] bytes=2354 file=container-src/docker/config.pyc
2017-12-26T08:50:19.993688 tarball item: container-src/docker/deploy.pyc (325 bytes) [container.docker.engine] bytes=325 file=container-src/docker/deploy.pyc
2017-12-26T08:50:19.993961 tarball item: container-src/docker/engine.pyc (39509 bytes) [container.docker.engine] bytes=39509 file=container-src/docker/engine.pyc
2017-12-26T08:50:19.994227 tarball item: container-src/docker/importer.pyc (20674 bytes) [container.docker.engine] bytes=20674 file=container-src/docker/importer.pyc
2017-12-26T08:50:19.994494 tarball item: container-src/docker/secrets.pyc (5093 bytes) [container.docker.engine] bytes=5093 file=container-src/docker/secrets.pyc
2017-12-26T08:50:19.994835 tarball item: container-src/k8s (0 bytes) [container.docker.engine] bytes=0L file=container-src/k8s
2017-12-26T08:50:19.995105 tarball item: container-src/k8s/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/k8s/__init__.py
2017-12-26T08:50:19.995371 tarball item: container-src/k8s/base_config.py (932 bytes) [container.docker.engine] bytes=932 file=container-src/k8s/base_config.py
2017-12-26T08:50:19.995639 tarball item: container-src/k8s/base_deploy.py (34216 bytes) [container.docker.engine] bytes=34216 file=container-src/k8s/base_deploy.py
2017-12-26T08:50:19.995942 tarball item: container-src/k8s/base_engine.py (10144 bytes) [container.docker.engine] bytes=10144 file=container-src/k8s/base_engine.py
2017-12-26T08:50:19.996211 tarball item: container-src/k8s/config.py (660 bytes) [container.docker.engine] bytes=660 file=container-src/k8s/config.py
2017-12-26T08:50:19.996479 tarball item: container-src/k8s/deploy.py (1720 bytes) [container.docker.engine] bytes=1720 file=container-src/k8s/deploy.py
2017-12-26T08:50:19.996806 tarball item: container-src/k8s/engine.py (1276 bytes) [container.docker.engine] bytes=1276 file=container-src/k8s/engine.py
2017-12-26T08:50:19.997079 tarball item: container-src/k8s/__init__.pyc (324 bytes) [container.docker.engine] bytes=324 file=container-src/k8s/__init__.pyc
2017-12-26T08:50:19.997348 tarball item: container-src/k8s/base_config.pyc (1357 bytes) [container.docker.engine] bytes=1357 file=container-src/k8s/base_config.pyc
2017-12-26T08:50:19.997615 tarball item: container-src/k8s/base_deploy.pyc (23623 bytes) [container.docker.engine] bytes=23623 file=container-src/k8s/base_deploy.pyc
2017-12-26T08:50:19.997905 tarball item: container-src/k8s/base_engine.pyc (8659 bytes) [container.docker.engine] bytes=8659 file=container-src/k8s/base_engine.pyc
2017-12-26T08:50:19.998173 tarball item: container-src/k8s/config.pyc (1255 bytes) [container.docker.engine] bytes=1255 file=container-src/k8s/config.pyc
2017-12-26T08:50:19.998441 tarball item: container-src/k8s/deploy.pyc (1961 bytes) [container.docker.engine] bytes=1961 file=container-src/k8s/deploy.pyc
2017-12-26T08:50:19.998728 tarball item: container-src/k8s/engine.pyc (1919 bytes) [container.docker.engine] bytes=1919 file=container-src/k8s/engine.pyc
2017-12-26T08:50:19.998997 tarball item: container-src/openshift (0 bytes) [container.docker.engine] bytes=0L file=container-src/openshift
2017-12-26T08:50:19.999278 tarball item: container-src/openshift/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/openshift/__init__.py
2017-12-26T08:50:19.999544 tarball item: container-src/openshift/config.py (427 bytes) [container.docker.engine] bytes=427 file=container-src/openshift/config.py
2017-12-26T08:50:19.999926 tarball item: container-src/openshift/deploy.py (6241 bytes) [container.docker.engine] bytes=6241 file=container-src/openshift/deploy.py
2017-12-26T08:50:20.000215 tarball item: container-src/openshift/engine.py (2207 bytes) [container.docker.engine] bytes=2207 file=container-src/openshift/engine.py
2017-12-26T08:50:20.000486 tarball item: container-src/openshift/__init__.pyc (330 bytes) [container.docker.engine] bytes=330 file=container-src/openshift/__init__.pyc
2017-12-26T08:50:20.000777 tarball item: container-src/openshift/config.pyc (1033 bytes) [container.docker.engine] bytes=1033 file=container-src/openshift/config.pyc
2017-12-26T08:50:20.001047 tarball item: container-src/openshift/deploy.pyc (5210 bytes) [container.docker.engine] bytes=5210 file=container-src/openshift/deploy.pyc
2017-12-26T08:50:20.001313 tarball item: container-src/openshift/engine.pyc (2634 bytes) [container.docker.engine] bytes=2634 file=container-src/openshift/engine.pyc
2017-12-26T08:50:20.001580 tarball item: container-src/utils (0 bytes) [container.docker.engine] bytes=0L file=container-src/utils
2017-12-26T08:50:20.001869 tarball item: container-src/utils/__init__.py (11391 bytes) [container.docker.engine] bytes=11391 file=container-src/utils/__init__.py
2017-12-26T08:50:20.002148 tarball item: container-src/utils/_text.py (12304 bytes) [container.docker.engine] bytes=12304 file=container-src/utils/_text.py
2017-12-26T08:50:20.002437 tarball item: container-src/utils/galaxy.py (8120 bytes) [container.docker.engine] bytes=8120 file=container-src/utils/galaxy.py
2017-12-26T08:50:20.002728 tarball item: container-src/utils/loader.py (906 bytes) [container.docker.engine] bytes=906 file=container-src/utils/loader.py
2017-12-26T08:50:20.002998 tarball item: container-src/utils/logmux.py (1313 bytes) [container.docker.engine] bytes=1313 file=container-src/utils/logmux.py
2017-12-26T08:50:20.003290 tarball item: container-src/utils/ordereddict.py (678 bytes) [container.docker.engine] bytes=678 file=container-src/utils/ordereddict.py
2017-12-26T08:50:20.003561 tarball item: container-src/utils/temp.py (698 bytes) [container.docker.engine] bytes=698 file=container-src/utils/temp.py
2017-12-26T08:50:20.003862 tarball item: container-src/utils/visibility.py (3329 bytes) [container.docker.engine] bytes=3329 file=container-src/utils/visibility.py
2017-12-26T08:50:20.004132 tarball item: container-src/utils/__init__.pyc (11603 bytes) [container.docker.engine] bytes=11603 file=container-src/utils/__init__.pyc
2017-12-26T08:50:20.004398 tarball item: container-src/utils/_text.pyc (8796 bytes) [container.docker.engine] bytes=8796 file=container-src/utils/_text.pyc
2017-12-26T08:50:20.004683 tarball item: container-src/utils/galaxy.pyc (7803 bytes) [container.docker.engine] bytes=7803 file=container-src/utils/galaxy.pyc
2017-12-26T08:50:20.004956 tarball item: container-src/utils/loader.pyc (1170 bytes) [container.docker.engine] bytes=1170 file=container-src/utils/loader.pyc
2017-12-26T08:50:20.005225 tarball item: container-src/utils/logmux.pyc (2559 bytes) [container.docker.engine] bytes=2559 file=container-src/utils/logmux.pyc
2017-12-26T08:50:20.005493 tarball item: container-src/utils/ordereddict.pyc (915 bytes) [container.docker.engine] bytes=915 file=container-src/utils/ordereddict.pyc
2017-12-26T08:50:20.005780 tarball item: container-src/utils/temp.pyc (1358 bytes) [container.docker.engine] bytes=1358 file=container-src/utils/temp.pyc
2017-12-26T08:50:20.006060 tarball item: container-src/utils/visibility.pyc (4148 bytes) [container.docker.engine] bytes=4148 file=container-src/utils/visibility.pyc
2017-12-26T08:50:20.006331 tarball item: container-src/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates
2017-12-26T08:50:20.006599 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-12-26T08:50:20.006890 tarball item: container-src/templates/ansible-dockerfile.j2 (1194 bytes) [container.docker.engine] bytes=1194 file=container-src/templates/ansible-dockerfile.j2
2017-12-26T08:50:20.007159 tarball item: container-src/templates/ansible.cfg (41 bytes) [container.docker.engine] bytes=41 file=container-src/templates/ansible.cfg
2017-12-26T08:50:20.007429 tarball item: container-src/templates/builder.sh (620 bytes) [container.docker.engine] bytes=620 file=container-src/templates/builder.sh
2017-12-26T08:50:20.007785 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-12-26T08:50:20.008081 tarball item: container-src/templates/hosts.j2 (90 bytes) [container.docker.engine] bytes=90 file=container-src/templates/hosts.j2
2017-12-26T08:50:20.008352 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-12-26T08:50:20.008623 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-12-26T08:50:20.008917 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-12-26T08:50:20.009186 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-12-26T08:50:20.009454 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-12-26T08:50:20.009744 tarball item: container-src/templates/init (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/init
2017-12-26T08:50:20.010023 tarball item: container-src/templates/init/ansible-requirements.j2.txt (131 bytes) [container.docker.engine] bytes=131 file=container-src/templates/init/ansible-requirements.j2.txt
2017-12-26T08:50:20.010311 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-12-26T08:50:20.010638 tarball item: container-src/templates/init/container.j2.yml (2514 bytes) [container.docker.engine] bytes=2514 file=container-src/templates/init/container.j2.yml
2017-12-26T08:50:20.011088 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-12-26T08:50:20.011514 tarball item: container-src/templates/init/requirements.j2.yml (299 bytes) [container.docker.engine] bytes=299 file=container-src/templates/init/requirements.j2.yml
2017-12-26T08:50:20.012008 tarball item: container-src/templates/role (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role
2017-12-26T08:50:20.012391 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-12-26T08:50:20.013077 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-12-26T08:50:20.013474 tarball item: container-src/templates/role/defaults (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/defaults
2017-12-26T08:50:20.013927 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-12-26T08:50:20.014393 tarball item: container-src/templates/role/meta (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/meta
2017-12-26T08:50:20.014902 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-12-26T08:50:20.015309 tarball item: container-src/templates/role/test (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/test
2017-12-26T08:50:20.015791 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-12-26T08:50:20.016217 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-12-26T08:50:20.016626 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-12-26T08:50:20.017072 tarball item: container-src/__init__.pyc (1391 bytes) [container.docker.engine] bytes=1391 file=container-src/__init__.pyc
2017-12-26T08:50:20.017491 tarball item: container-src/cli.pyc (17783 bytes) [container.docker.engine] bytes=17783 file=container-src/cli.pyc
2017-12-26T08:50:20.017909 tarball item: container-src/config.pyc (14813 bytes) [container.docker.engine] bytes=14813 file=container-src/config.pyc
2017-12-26T08:50:20.018314 tarball item: container-src/core.pyc (30177 bytes) [container.docker.engine] bytes=30177 file=container-src/core.pyc
2017-12-26T08:50:20.018770 tarball item: container-src/engine.pyc (10545 bytes) [container.docker.engine] bytes=10545 file=container-src/engine.pyc
2017-12-26T08:50:20.019196 tarball item: container-src/exceptions.pyc (5654 bytes) [container.docker.engine] bytes=5654 file=container-src/exceptions.pyc
2017-12-26T08:50:20.020070 tarball item: container-src/conductor-build/setup.py (4628 bytes) [container.docker.engine] bytes=4628 file=container-src/conductor-build/setup.py
2017-12-26T08:50:20.020474 tarball item: container-src/conductor-build/conductor-requirements.txt (273 bytes) [container.docker.engine] bytes=273 file=container-src/conductor-build/conductor-requirements.txt
2017-12-26T08:50:20.020906 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-12-26T08:50:20.021388 tarball item: Dockerfile (1137 bytes) [container.docker.engine] bytes=1137 file=Dockerfile
2017-12-26T08:50:20.021877 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2017-12-26T08:50:20.022343 tarball item: build-src/ansible-requirements.txt (130 bytes) [container.docker.engine] bytes=130 file=build-src/ansible-requirements.txt
2017-12-26T08:50:20.022834 tarball item: build-src/requirements.yml (32 bytes) [container.docker.engine] bytes=32 file=build-src/requirements.yml
2017-12-26T08:50:20.023315 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2017-12-26T08:50:20.023872 tarball item: Dockerfile (576 bytes) [container.docker.engine] bytes=576 file=Dockerfile
2017-12-26T08:50:20.026517 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=1038
Step 1/4 : FROM ansible/container-conductor-centos-7:0.9.2
 ---> 1bf3a8c4cd78
Step 2/4 : VOLUME /usr
 ---> Using cache
 ---> 08e07db1f633
Step 3/4 : COPY /build-src /_ansible/build
 ---> Using cache
 ---> 5ac2b6fe69b3
Step 4/4 : 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
 ---> 2aa4447b7679
Successfully built 2aa4447b7679
2017-12-26T08:50:20.149071 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/tmp81TjGv
2017-12-26T08:50:20.152192 Config settings                [container.core] caller_file=/usr/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 0x19b6190> rawsettings={"conductor": {"base": "centos:7"}, "pwd": "/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom"} settings={"conductor": {"base": "centos:7"}, "pwd": "/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom"}
2017-12-26T08:50:20.154004 Call: Engine.run_conductor     [container.docker.engine] args=('build', {'services': ordereddict([('ansible.nginx-container', ordereddict([('from', 'nginx:base'), ('roles', ['nginx_container']), ('ports', ['80:3000']), ('user', 'root'), ('command', ['nginx', '-g', 'daemon off'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor', ordereddict([('base', 'centos:7')])), ('pwd', '/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom')])}, '/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom', {'with_volumes': [], 'config_vars': ordereddict([]), 'conductor_cache': True, 'local_python': True, '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/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-12-26T08:50:20.189407 Docker run:                    [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=run_conductor caller_line=435 image=u'sha256:2aa4447b767925bb74e7bb83feb51525c3357bd093f35c21bf8245ee27e88637' params={'name': u'ansible_container_dotcom_conductor', 'cap_add': ['SYS_ADMIN'], 'environment': {'DOCKER_HOST': 'unix:///var/run/docker.sock', 'ANSIBLE_ROLES_PATH': '/src/roles:/etc/ansible/roles'}, 'working_dir': '/src', 'command': ['conductor', 'build', '--project-name', 'ansible_container_dotcom', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNvbmZpZ192YXJzIjoge30sICJjb25kdWN0b3JfY2FjaGUiOiB0cnVlLCAibG9jYWxfcHl0aG9uIjogdHJ1ZSwgIndpdGhfdmFyaWFibGVzIjogW10sICJzZWxpbnV4IjogdHJ1ZSwgInB1cmdlX2xhc3QiOiB0cnVlLCAiY2FjaGUiOiB0cnVlLCAidm9sdW1lX2RyaXZlciI6IG51bGwsICJkZXZlbCI6IGZhbHNlLCAic3JjX21vdW50X3BhdGgiOiBudWxsLCAicm9sZXNfcGF0aCI6IFtdLCAic3ViY29tbWFuZCI6ICJidWlsZCIsICJhbnNpYmxlX29wdGlvbnMiOiAiIiwgImZsYXR0ZW4iOiBmYWxzZSwgImNvbnRhaW5lcl9jYWNoZSI6IHRydWUsICJkZWJ1ZyI6IHRydWUsICJzZXJ2aWNlc190b19idWlsZCI6IG51bGwsICJzYXZlX2NvbmR1Y3Rvcl9jb250YWluZXIiOiBmYWxzZX0=', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUubmdpbngtY29udGFpbmVyIiwgeyJmcm9tIjogIm5naW54OmJhc2UiLCAicm9sZXMiOiBbIm5naW54X2NvbnRhaW5lciJdLCAicG9ydHMiOiBbIjgwOjMwMDAiXSwgInVzZXIiOiAicm9vdCIsICJjb21tYW5kIjogWyJuZ2lueCIsICItZyIsICJkYWVtb24gb2ZmIl19XV0sICJzZXR0aW5ncyI6IFtbImNvbmR1Y3RvciIsIHsiYmFzZSI6ICJjZW50b3M6NyJ9XSwgWyJwd2QiLCAiL2hvbWUvbXQ4MDF0L2Fuc2ljb25uZ2lueC9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tIl1dLCAidmVyc2lvbiI6ICIyIiwgImRlZmF1bHRzIjogW10sICJyZWdpc3RyaWVzIjogW119', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/home/mt801t/ansiconnginx/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}, '/home/mt801t/.docker/config.json': {'bind': '/home/mt801t/.docker/config.json', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-12-26T08:50:24.222300 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=384
2017-12-26T08:50:24.225836 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=volumes
2017-12-26T08:50:24.229575 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=registries
2017-12-26T08:50:24.233471 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=secrets
2017-12-26T08:50:24.237331 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=399 service=u'ansible.nginx-container' service_data={u'command': [u'nginx', u'-g', u'daemon off'], u'from': u'nginx:base', u'ports': [u'80:3000'], u'roles': [u'nginx_container'], u'user': u'root'}
2017-12-26T08:50:24.306092 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=422 defaults={"project_name": "test", "nginx_artifact_name": "nginx-pagespeed_scientia_realip_ssl_httpstatus-1.11.4_x86_64.rpm", "init_program_src": "systemd-{{init_template_type }}-nginx.service.j2", "init_program_dest": "/etc/systemd/system/{{ systemd_name }}", "nginx_wurfl_lib_name": "libwurfl-1.8.0.0-x86_64.rpm", "nginx_artifact_base": "http://dpdlabs.directv.com/deployments/build/nginx", "nginx_key_base": "http://dpdlabs.directv.com/deployments/keys/labs", "nginx_key_name": "id_labs_nginx.pub", "app_user": "nginx", "app_group": "root", "nginx_base": "/app/server/nginx", "nginx_app_name": "nginx", "nginx_app_base": "/app/{{ project_name }}/{{nginx_app_name}}", "nginx_html_path": "{{ nginx_app_base }}/html", "nginx_tmp_path": "{{ nginx_app_base }}/tmp", "nginx_bin_home": "{{ nginx_base }}/sbin", "nginx_pid_home": "{{nginx_app_base}}/nginx.pid", "nginx_default_conf_home": "{{ nginx_base }}/conf", "nginx_conf_home": "{{ nginx_app_base }}/conf", "nginx_client_body_path": "{{ nginx_base }}/client_body_temp", "nginx_conf_name": "nginx.conf", "nginx_wurfl_conf_home": "{{ nginx_app_base }}/wurfl", "nginx_wurfl_conf_name": "wurfl.xml", "nginx_archive_base": "{{ nginx_app_base }}/archive", "nginx_archive_redirects_path": "{{ nginx_archive_base }}/dtv-nginxredirects", "nginx_archive_path": "{{ nginx_archive_base }}", "nginx_archive_wurfl_base": "{{ nginx_app_base }}/archive", "nginx_archive_wurfl_path": "{{ nginx_archive_base }}", "nginx_log_path": "/app/log/{{project_name}}/{{nginx_app_name}}", "nginx_ssl_path": "{{nginx_app_base}}/ssl", "nginx_listen_port": 8080, "nginx_port_in_redirect": "off", "nginx_use_ssl": false, "download_file_dir": "/app/tmp/nginx", "init_base": "{{project_name}}-{{ nginx_app_name }}", "upstart_name": "{{init_base}}.conf", "systemd_name": "{{init_base}}.service", "init_template_type": "default", "nginx_wurfl_conf_update_folder": "2016_09/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "nginx_node_app_hostnames": "localhost dev-dpdlabs.directv.com default", "nginx_node_app_upstream": ["localhost:3000"], "nginx_node_app_appname": "{{ project_name }}", "nginx_node_app_htmlpath": "{{ nginx_html_path }}", "nginx_node_app_staticcontentpath": "{{ nginx_html_path }}/www", "nginx_node_app_staticcontent_expires": 900, "nginx_node_app_heropass": "atgpreview.directv.com", "nginx_json_health_allow_netmask": "all", "nginx_internal_test_only": false, "nginx_node_app_archivepath": "{{ nginx_archive_path }}/{{ nginx_node_app_appname }}", "nginx_internal_allow_netmask": "147.21.0.0/16", "nginx_real_ip_mask": "0.0.0.0/0", "nginx_aem_dam": "localhost:2222", "nginx_aem_fallback": "atgpreview.directv.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"} service=u'ansible.nginx-container'
2017-12-26T08:50:24.317692 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=398 services={"ansible.nginx-container": {"from": "nginx:base", "ports": ["80:3000"], "user": "root", "command": ["nginx", "-g", "daemon off"], "roles": ["nginx_container"], "defaults": {"project_name": "test", "nginx_artifact_name": "nginx-pagespeed_scientia_realip_ssl_httpstatus-1.11.4_x86_64.rpm", "init_program_src": "systemd-{{init_template_type }}-nginx.service.j2", "init_program_dest": "/etc/systemd/system/{{ systemd_name }}", "nginx_wurfl_lib_name": "libwurfl-1.8.0.0-x86_64.rpm", "nginx_artifact_base": "http://dpdlabs.directv.com/deployments/build/nginx", "nginx_key_base": "http://dpdlabs.directv.com/deployments/keys/labs", "nginx_key_name": "id_labs_nginx.pub", "app_user": "nginx", "app_group": "root", "nginx_base": "/app/server/nginx", "nginx_app_name": "nginx", "nginx_app_base": "/app/{{ project_name }}/{{nginx_app_name}}", "nginx_html_path": "{{ nginx_app_base }}/html", "nginx_tmp_path": "{{ nginx_app_base }}/tmp", "nginx_bin_home": "{{ nginx_base }}/sbin", "nginx_pid_home": "{{nginx_app_base}}/nginx.pid", "nginx_default_conf_home": "{{ nginx_base }}/conf", "nginx_conf_home": "{{ nginx_app_base }}/conf", "nginx_client_body_path": "{{ nginx_base }}/client_body_temp", "nginx_conf_name": "nginx.conf", "nginx_wurfl_conf_home": "{{ nginx_app_base }}/wurfl", "nginx_wurfl_conf_name": "wurfl.xml", "nginx_archive_base": "{{ nginx_app_base }}/archive", "nginx_archive_redirects_path": "{{ nginx_archive_base }}/dtv-nginxredirects", "nginx_archive_path": "{{ nginx_archive_base }}", "nginx_archive_wurfl_base": "{{ nginx_app_base }}/archive", "nginx_archive_wurfl_path": "{{ nginx_archive_base }}", "nginx_log_path": "/app/log/{{project_name}}/{{nginx_app_name}}", "nginx_ssl_path": "{{nginx_app_base}}/ssl", "nginx_listen_port": 8080, "nginx_port_in_redirect": "off", "nginx_use_ssl": false, "download_file_dir": "/app/tmp/nginx", "init_base": "{{project_name}}-{{ nginx_app_name }}", "upstart_name": "{{init_base}}.conf", "systemd_name": "{{init_base}}.service", "init_template_type": "default", "nginx_wurfl_conf_update_folder": "2016_09/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "nginx_node_app_hostnames": "localhost dev-dpdlabs.directv.com default", "nginx_node_app_upstream": ["localhost:3000"], "nginx_node_app_appname": "{{ project_name }}", "nginx_node_app_htmlpath": "{{ nginx_html_path }}", "nginx_node_app_staticcontentpath": "{{ nginx_html_path }}/www", "nginx_node_app_staticcontent_expires": 900, "nginx_node_app_heropass": "atgpreview.directv.com", "nginx_json_health_allow_netmask": "all", "nginx_internal_test_only": false, "nginx_node_app_archivepath": "{{ nginx_archive_path }}/{{ nginx_node_app_appname }}", "nginx_internal_allow_netmask": "147.21.0.0/16", "nginx_real_ip_mask": "0.0.0.0/0", "nginx_aem_dam": "localhost:2222", "nginx_aem_fallback": "atgpreview.directv.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"}}}
2017-12-26T08:50:24.323984 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-12-26T08:50:24.353519 2017-12-26T08:50:24.353519 Docker™ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=707 project=ansible_container_dotcom
2017-12-26T08:50:24.357786 Services to build              [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=709 services_to_build=[u'ansible.nginx-container']
2017-12-26T08:50:24.361555 Building service...            [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=714 project=ansible_container_dotcom service=u'ansible.nginx-container'
2017-12-26T08:50:24.374111 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=get_timeout caller_line=123
2017-12-26T08:50:24.385195 Base fingerprint hash = 95eb0a2f76048d79db543001c6f63e1969ffcf03317b50c4e75e09e969cf2518 [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=730 hash=95eb0a2f76048d79db543001c6f63e1969ffcf03317b50c4e75e09e969cf2518 service=u'ansible.nginx-container'
2017-12-26T08:50:24.973322 Still trying to keep cache.    [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=745 service=u'ansible.nginx-container'
2017-12-26T08:50:25.029587 Cache busted! No layer found   [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=760 fingerprint=53c5fb3928e5dcb7ae7f44f09ad2adcce02c0dad8f2b2295de52f35b148b43a0 service=u'ansible.nginx-container'
2017-12-26T08:50:25.034914 Call: Engine.run_container     [container.docker.engine] args=(u'sha256:de529845c1115c7ea7b81ce5bc729203944af7657de0da75538992d0edce1b69', u'ansible.nginx-container') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'ansible_container_dotcom_ansible.nginx-container', 'environment': {'ANSIBLE_CONTAINER': 1}, 'working_dir': '/', 'command': 'sh -c "while true; do sleep 1; done"', 'user': 'root', 'volumes': {}, 'entrypoint': [], 'privileged': True}
2017-12-26T08:50:25.040107 Removing keys                  [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=244 keys=['from', 'defaults', u'roles', 'links']
2017-12-26T08:50:25.044062 Running container in docker    [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=268 image=u'sha256:de529845c1115c7ea7b81ce5bc729203944af7657de0da75538992d0edce1b69' params={"ports": {"3000": ["80"]}, "user": "root", "command": "sh -c \"while true; do sleep 1; done\"", "name": "ansible_container_dotcom_ansible.nginx-container", "environment": {"ANSIBLE_CONTAINER": 1}, "working_dir": "/", "volumes": {}, "entrypoint": [], "privileged": true}
2017-12-26T08:50:25.280220 Container running              [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=824 id=u'74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855'
2017-12-26T08:50:25.288680 writing playbook to /tmp/tmp3DdJgT/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=570
2017-12-26T08:50:25.292137 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=571 playbook=[{'hosts': u'ansible.nginx-container', 'roles': ['nginx_container'], 'vars': {}}]
2017-12-26T08:50:25.308066 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=640 command=ansible-playbook -vvvv  -i /tmp/tmp3DdJgT/hosts -c docker  /tmp/tmp3DdJgT/playbook.yml  cwd=/src
ansible-playbook 2.5.0
  config file = /src/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Using /src/ansible.cfg as config file
setting up inventory plugins
Parsed /tmp/tmp3DdJgT/hosts inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: playbook.yml *********************************************************
1 plays in /tmp/tmp3DdJgT/playbook.yml
PLAY [ansible.nginx-container] *************************************************
TASK [Gathering Facts] *********************************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> ESTABLISH DOCKER CONNECTION FOR USER: root
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682 `" && echo ansible-tmp-1514278227.66-255742220108682="` echo /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682 `" ) && sleep 0\'']
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> PUT /tmp/tmpYaDrdE TO /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682/setup.py
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682/ /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682/setup.py && sleep 0'"]
<74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'74a058f19593d740d5651de546bd612d345cff3d71f2251c7aa35be56b01f855', u'/bin/sh', '-c', u'/bin/sh -c \'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1514278227.66-255742220108682/" > /dev/null 2>&1 && sleep 0\'']
fatal: [ansible.nginx-container]: FAILED! => {
    "changed": false,
    "module_stderr": "/bin/sh: /usr/bin/python: not found\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE",
    "rc": 0
}
        to retry, use: --limit @/tmp/tmp3DdJgT/playbook.retry
PLAY RECAP *********************************************************************
ansible.nginx-container    : ok=0    changed=0    unreachable=0    failed=1
2017-12-26T08:50:28.065554 Error applying role!           [container.core] caller_file=/_ansible/container/core.py caller_func=apply_role_to_container caller_line=699 engine=<container.docker.engine.Engine object at 0x7f363c8b5e90> exit_code=2 playbook=[{'hosts': u'ansible.nginx-container', 'roles': ['nginx_container'], 'vars': {}}]
2017-12-26T08:50:28.070624 Playbook run finished.         [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=831 exit_code=2
Traceback (most recent call last):
  File "/usr/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 406, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 833, in conductorcmd_build
    raise RuntimeError('Build failed.')
RuntimeError: Build failed.
2017-12-26T08:50:28.210282 Could not connect to container host. Check your docker

<!--- Paste verbatim command output between quotes below -->
j00bar commented 6 years ago

If you specify --use-local-python, you're responsible for ensuring that there's a usable Python runtime in your target containers before invoking modules that require Python to run (i.e. anything but raw). Without --use-local-python, we mount a volume across from the Conductor to your target containers and use the Python interpreter from your Conductor. Thanks!