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 394 forks source link

Ansible-Container run is terminated with couldnt connect to container host #829

Open Manigunner opened 6 years ago

Manigunner commented 6 years ago
ISSUE TYPE
container.yml
version: '2'
settings:
  conductor_base: centos:7
services:
  ansible.play_container:
    from: "fabric8/java-centos-openjdk8-jdk:1.3.1"
    roles:
    - play_container
    ports:
    - 80:9000
    user: root
    command: ['app/test/play/docker-entrypoint.sh']
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
      },
      "localhost:444": {
        "Official": false,
        "Name": "localhost:444",
        "Secure": false,
        "Mirrors": []
      },
      "localhost:444": {
        "Official": false,
        "Name": "localhost:444",
        "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 Play-container image has been build sucessfully but while am running the image using sudo ansible-container run its failing with connection lost to container host.

STEPS TO REPRODUCE

sudo ansible-container --debug run

Error log:
2017-12-12T14:55:17.499640 Got extra args to `run` command [container.core] arguments={'with_volumes': [], 'vault_password_file': None, 'service': [], 'with_variables': [], 'selinux': True, 'subcommand': 'run', 'devel': False, 'roles_path': [], 'volume_driver': None, 'production': False, 'debug': True, 'detached': False, 'vault_files': []} caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=238
2017-12-12T14:55:17.516026 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-12T14:55:17.517524 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-12T14:55:17.519021 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-12T14:55:17.520376 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-12T14:55:17.521714 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/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2017-12-12T14:55:17.538800 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-12T14:55:17.541033 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-12T14:55:17.542286 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-12T14:55:17.543628 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-12T14:55:17.544795 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/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2017-12-12T14:55:17.545786 hostcmd_run configuration      [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=243 config={'_config': ordereddict([('version', '2'), ('settings', ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')])), ('services', ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['80:9000']), ('user', 'root'), ('command', ['app/test/play/docker-entrypoint.sh'])]))])), ('registries', ordereddict([])), ('defaults', ordereddict([]))]), 'config_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/container.yml', 'engine_name': 'docker', 'base_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom', 'cli_vault_files': None, 'remove_engines': set(['k8s', 'openshift']), 'cli_vars_files': [], 'cli_project_name': None}
2017-12-12T14:55:17.547226 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=['RUN'] engine=docker
2017-12-12T14:55:17.587429 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-12T14:55:18.361748 Params passed to conductor for run [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=260 params={'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}
2017-12-12T14:55:18.363572 Call: Engine.run_conductor     [container.docker.engine] args=('run', {'services': ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['80:9000']), ('user', 'root'), ('command', ['app/test/play/docker-entrypoint.sh'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')])}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom', {'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}) caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-12-12T14:55:18.404957 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:41df66ff4fc93869d454434e197cd2b25e01d362ec3e771b024f8869f61869c8' 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', 'run', '--project-name', 'ansible_container_dotcom', '--engine', 'docker', '--params', u'eyJzZWxpbnV4IjogdHJ1ZSwgInN1YmNvbW1hbmQiOiAicnVuIiwgImRldmVsIjogZmFsc2UsICJkZWJ1ZyI6IHRydWUsICJ2b2x1bWVfZHJpdmVyIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgIndpdGhfdm9sdW1lcyI6IFtdLCAic2VydmljZSI6IFtdLCAidmF1bHRfcGFzc3dvcmRfZmlsZSI6IG51bGwsICJzZXR0aW5ncyI6IHsiY29uZHVjdG9yX2Jhc2UiOiAiY2VudG9zOjciLCAicHdkIjogIi9ob21lL210ODAxdC9hbnNpY29ucGxheS9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tIn0sICJ3aXRoX3ZhcmlhYmxlcyI6IFtdLCAiZGVwbG95bWVudF9vdXRwdXRfcGF0aCI6ICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbS9hbnNpYmxlLWRlcGxveW1lbnQiLCAicHJvZHVjdGlvbiI6IGZhbHNlLCAiaG9zdF91c2VyX3VpZCI6IDAsICJob3N0X3VzZXJfZ2lkIjogMCwgImRldGFjaGVkIjogZmFsc2UsICJ2YXVsdF9maWxlcyI6IFtdfQ==', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUucGxheV9jb250YWluZXIiLCB7ImZyb20iOiAiZmFicmljOC9qYXZhLWNlbnRvcy1vcGVuamRrOC1qZGs6MS4zLjEiLCAicm9sZXMiOiBbInBsYXlfY29udGFpbmVyIl0sICJwb3J0cyI6IFsiODA6OTAwMCJdLCAidXNlciI6ICJyb290IiwgImNvbW1hbmQiOiBbImFwcC9uZmxvdHQvcGxheS9kb2NrZXItZW50cnlwb2ludC5zaCJdfV1dLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3JfYmFzZSIsICJjZW50b3M6NyJdLCBbInB3ZCIsICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbSJdXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAicmVnaXN0cmllcyI6IFtdfQ==', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, 'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment': {'bind': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-12-12T14:55:22.542319 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=384
2017-12-12T14:55:22.546074 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=volumes
2017-12-12T14:55:22.550013 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=registries
2017-12-12T14:55:22.553840 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=secrets
2017-12-12T14:55:22.557690 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=399 service=u'ansible.play_container' service_data={u'command': [u'app/test/play/docker-entrypoint.sh'], u'from': u'fabric8/java-centos-openjdk8-jdk:1.3.1', u'ports': [u'80:9000'], u'roles': [u'play_container'], u'user': u'root'}
2017-12-12T14:55:22.571588 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=422 defaults={} service=u'ansible.play_container'
2017-12-12T14:55:22.580560 Starting Ansible Container Conductor: run [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=398 services={"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"], "roles": ["play_container"], "defaults": {}}}
2017-12-12T14:55:22.585212 Loading engine capabilities    [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['RUN'] engine=docker
2017-12-12T14:55:22.615318 Engine integration loaded. Preparing run. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=864 engine=u'Docker\u2122 daemon'
2017-12-12T14:55:22.627922 Verifying service image        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=containers_built_for_services caller_line=592 service=u'ansible.play_container'
2017-12-12T14:55:22.632083 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-12T14:55:22.647360 Adding new service to definition [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=764 definition={u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'} service=u'ansible.play_container'
2017-12-12T14:55:22.760164 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:0210d261f3' tags=[u'ansible_container_dotcom-ansible.play_container:20171212123211', u'ansible_container_dotcom-ansible.play_container:latest']
2017-12-12T14:55:22.764825 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212123211'
2017-12-12T14:55:22.768763 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:latest'
2017-12-12T14:55:22.772653 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:abc2aa49a7' tags=[u'ansible_container_dotcom-ansible.play_container:20171212112819']
2017-12-12T14:55:22.777098 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212112819'
2017-12-12T14:55:22.780999 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5234b3f590' tags=[u'ansible_container_dotcom-ansible.play_container:20171212110300']
2017-12-12T14:55:22.785413 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212110300'
2017-12-12T14:55:22.789406 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5123f676cb' tags=[u'ansible_container_dotcom-ansible.play_container:20171212061041']
2017-12-12T14:55:22.793831 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212061041'
2017-12-12T14:55:22.797808 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:30949ed31f' tags=[u'ansible_container_dotcom-ansible.play_container:20171212041951']
2017-12-12T14:55:22.802256 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212041951'
2017-12-12T14:55:22.806201 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:7f6aaee977' tags=[u'ansible_container_dotcom-ansible.play_container:20171211100158']
2017-12-12T14:55:22.810606 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211100158'
2017-12-12T14:55:22.814559 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:94e3d93cec' tags=[u'ansible_container_dotcom-ansible.play_container:20171211064216']
2017-12-12T14:55:22.818995 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211064216'
2017-12-12T14:55:22.823327 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:23970dfe26' tags=[u'ansible_container_dotcom-ansible.play_container:20171208061136']
2017-12-12T14:55:22.827783 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208061136'
2017-12-12T14:55:22.831693 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:605b9289cd' tags=[u'ansible_container_dotcom-ansible.play_container:20171208055343']
2017-12-12T14:55:22.836114 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208055343'
2017-12-12T14:55:22.840083 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:97e048173a' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111759']
2017-12-12T14:55:22.844484 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111759'
2017-12-12T14:55:22.848535 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:b00b8a65d4' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111017']
2017-12-12T14:55:22.853032 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111017'
2017-12-12T14:55:22.857122 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:810122ec8d' tags=[u'ansible_container_dotcom-ansible.play_container:20171207094849']
2017-12-12T14:55:22.861540 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207094849'
2017-12-12T14:55:22.942296 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:41df66ff4f' tags=[u'ansible_container_dotcom-conductor:latest']
2017-12-12T14:55:22.946879 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-conductor:latest'
2017-12-12T14:55:22.950894 Created playbook to run project [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=834 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/est/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-12T14:55:22.957584 writing playbook to /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=570
2017-12-12T14:55:22.961045 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=571 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-12T14:55:23.012987 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=640 command=ansible-playbook -vvvv  --tags=start  -i /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/hosts  -c local /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml
PLAY [Deploy ansible_container_dotcom] *****************************************
META: ran handlers
TASK [docker_service] **********************************************************
task path: /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml:5
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/docker/docker_service.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961 `" && echo ansible-tmp-1513090525.06-196890971635961="` echo /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpRDOkqB TO /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/ /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/" > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "ansible_facts": {
        "ansible.play_container": {
            "ansiblecontainerdotcom_ansible.play_container_1": {
                "cmd": [
                    "app/test/play/docker-entrypoint.sh"
                ],
                "image": "ansible_container_dotcom-ansible.play_container:20171212123211",
                "labels": {
                    "build-date": "20171128",
                    "com.ansible.container.fingerprint": "208689cfd5564bf0786351cc9b8a0f92e14816039ab04a7180020a2aa289b44d",
                    "com.docker.compose.config-hash": "8d8e1a964e803e7d15ca89b9466f90a262e19745dc143a737f68130d97fbe00e",
                    "com.docker.compose.container-number": "1",
                    "com.docker.compose.oneoff": "False",
                    "com.docker.compose.project": "ansiblecontainerdotcom",
                    "com.docker.compose.service": "ansible.play_container",
                    "com.docker.compose.version": "1.16.1",
                    "license": "GPLv2",
                    "name": "CentOS Base Image",
                    "vendor": "CentOS"
                },
                "networks": {
                    "ansiblecontainerdotcom_default": {
                        "IPAddress": "172.18.0.2",
                        "IPPrefixLen": 16,
                        "aliases": [
                            "cd8a733cb939",
                            "ansible.play_container"
                        ],
                        "globalIPv6": "",
                        "globalIPv6PrefixLen": 0,
                        "links": null,
                        "macAddress": "02:42:ac:12:00:02"
                    }
                },
                "state": {
                    "running": true,
                    "status": "running"
                }
            }
        }
    },
    "changed": true,
    "invocation": {
        "module_args": {
            "api_version": null,
            "build": false,
            "cacert_path": null,
            "cert_path": null,
            "debug": false,
            "definition": {
                "services": {
                    "ansible.play_container": {
                        "command": [
                            "app/test/play/docker-entrypoint.sh"
                        ],
                        "image": "ansible_container_dotcom-ansible.play_container:20171212123211",
                        "ports": [
                            "80:9000"
                        ],
                        "user": "root"
                    }
                },
                "version": "2"
            },
            "dependencies": true,
            "docker_host": null,
            "files": null,
            "filter_logger": false,
            "hostname_check": false,
            "key_path": null,
            "nocache": false,
            "project_name": "ansible_container_dotcom",
            "project_src": null,
            "pull": false,
            "recreate": "smart",
            "remove_images": null,
            "remove_orphans": false,
            "remove_volumes": false,
            "restarted": false,
            "scale": null,
            "services": null,
            "ssl_version": null,
            "state": "present",
            "stopped": false,
            "timeout": 10,
            "tls": null,
            "tls_hostname": null,
            "tls_verify": null
        }
    }
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0
2017-12-12T14:55:26.663089 All services running.          [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=876 playbook_rc=0
2017-12-12T14:55:26.867150 Could not connect to container host. Check your docker config [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=328
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/container/utils/logmux.py", line 40, in produce
    for message in iterator:
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 339, in _multiplexed_response_stream_helper
    header = response.raw.read(STREAM_HEADER_SIZE_BYTES)
  File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 231, in read
    raise ProtocolError('Connection broken: %r' % e, e)
ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
EXPECTED RESULTS

Image should run successfully

ACTUAL RESULTS

Pasted the logs below:

Error log:
2017-12-12T14:55:17.499640 Got extra args to `run` command [container.core] arguments={'with_volumes': [], 'vault_password_file': None, 'service': [], 'with_variables': [], 'selinux': True, 'subcommand': 'run', 'devel': False, 'roles_path': [], 'volume_driver': None, 'production': False, 'debug': True, 'detached': False, 'vault_files': []} caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=238
2017-12-12T14:55:17.516026 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-12T14:55:17.517524 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-12T14:55:17.519021 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-12T14:55:17.520376 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-12T14:55:17.521714 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/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2017-12-12T14:55:17.538800 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-12T14:55:17.541033 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-12T14:55:17.542286 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-12T14:55:17.543628 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-12T14:55:17.544795 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/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2017-12-12T14:55:17.545786 hostcmd_run configuration      [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=243 config={'_config': ordereddict([('version', '2'), ('settings', ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')])), ('services', ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['80:9000']), ('user', 'root'), ('command', ['app/test/play/docker-entrypoint.sh'])]))])), ('registries', ordereddict([])), ('defaults', ordereddict([]))]), 'config_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/container.yml', 'engine_name': 'docker', 'base_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom', 'cli_vault_files': None, 'remove_engines': set(['k8s', 'openshift']), 'cli_vars_files': [], 'cli_project_name': None}
2017-12-12T14:55:17.547226 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=['RUN'] engine=docker
2017-12-12T14:55:17.587429 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-12T14:55:18.361748 Params passed to conductor for run [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=260 params={'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}
2017-12-12T14:55:18.363572 Call: Engine.run_conductor     [container.docker.engine] args=('run', {'services': ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['80:9000']), ('user', 'root'), ('command', ['app/test/play/docker-entrypoint.sh'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')])}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom', {'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}) caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-12-12T14:55:18.404957 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:41df66ff4fc93869d454434e197cd2b25e01d362ec3e771b024f8869f61869c8' 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', 'run', '--project-name', 'ansible_container_dotcom', '--engine', 'docker', '--params', u'eyJzZWxpbnV4IjogdHJ1ZSwgInN1YmNvbW1hbmQiOiAicnVuIiwgImRldmVsIjogZmFsc2UsICJkZWJ1ZyI6IHRydWUsICJ2b2x1bWVfZHJpdmVyIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgIndpdGhfdm9sdW1lcyI6IFtdLCAic2VydmljZSI6IFtdLCAidmF1bHRfcGFzc3dvcmRfZmlsZSI6IG51bGwsICJzZXR0aW5ncyI6IHsiY29uZHVjdG9yX2Jhc2UiOiAiY2VudG9zOjciLCAicHdkIjogIi9ob21lL210ODAxdC9hbnNpY29ucGxheS9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tIn0sICJ3aXRoX3ZhcmlhYmxlcyI6IFtdLCAiZGVwbG95bWVudF9vdXRwdXRfcGF0aCI6ICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbS9hbnNpYmxlLWRlcGxveW1lbnQiLCAicHJvZHVjdGlvbiI6IGZhbHNlLCAiaG9zdF91c2VyX3VpZCI6IDAsICJob3N0X3VzZXJfZ2lkIjogMCwgImRldGFjaGVkIjogZmFsc2UsICJ2YXVsdF9maWxlcyI6IFtdfQ==', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUucGxheV9jb250YWluZXIiLCB7ImZyb20iOiAiZmFicmljOC9qYXZhLWNlbnRvcy1vcGVuamRrOC1qZGs6MS4zLjEiLCAicm9sZXMiOiBbInBsYXlfY29udGFpbmVyIl0sICJwb3J0cyI6IFsiODA6OTAwMCJdLCAidXNlciI6ICJyb290IiwgImNvbW1hbmQiOiBbImFwcC9uZmxvdHQvcGxheS9kb2NrZXItZW50cnlwb2ludC5zaCJdfV1dLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3JfYmFzZSIsICJjZW50b3M6NyJdLCBbInB3ZCIsICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbSJdXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAicmVnaXN0cmllcyI6IFtdfQ==', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, 'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}, '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment': {'bind': '/home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-12-12T14:55:22.542319 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=384
2017-12-12T14:55:22.546074 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=volumes
2017-12-12T14:55:22.550013 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=registries
2017-12-12T14:55:22.553840 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=secrets
2017-12-12T14:55:22.557690 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=399 service=u'ansible.play_container' service_data={u'command': [u'app/test/play/docker-entrypoint.sh'], u'from': u'fabric8/java-centos-openjdk8-jdk:1.3.1', u'ports': [u'80:9000'], u'roles': [u'play_container'], u'user': u'root'}
2017-12-12T14:55:22.571588 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=422 defaults={} service=u'ansible.play_container'
2017-12-12T14:55:22.580560 Starting Ansible Container Conductor: run [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=398 services={"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "ports": ["80:9000"], "user": "root", "command": ["app/test/play/docker-entrypoint.sh"], "roles": ["play_container"], "defaults": {}}}
2017-12-12T14:55:22.585212 Loading engine capabilities    [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['RUN'] engine=docker
2017-12-12T14:55:22.615318 Engine integration loaded. Preparing run. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=864 engine=u'Docker\u2122 daemon'
2017-12-12T14:55:22.627922 Verifying service image        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=containers_built_for_services caller_line=592 service=u'ansible.play_container'
2017-12-12T14:55:22.632083 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-12T14:55:22.647360 Adding new service to definition [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=764 definition={u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'} service=u'ansible.play_container'
2017-12-12T14:55:22.760164 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:0210d261f3' tags=[u'ansible_container_dotcom-ansible.play_container:20171212123211', u'ansible_container_dotcom-ansible.play_container:latest']
2017-12-12T14:55:22.764825 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212123211'
2017-12-12T14:55:22.768763 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:latest'
2017-12-12T14:55:22.772653 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:abc2aa49a7' tags=[u'ansible_container_dotcom-ansible.play_container:20171212112819']
2017-12-12T14:55:22.777098 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212112819'
2017-12-12T14:55:22.780999 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5234b3f590' tags=[u'ansible_container_dotcom-ansible.play_container:20171212110300']
2017-12-12T14:55:22.785413 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212110300'
2017-12-12T14:55:22.789406 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5123f676cb' tags=[u'ansible_container_dotcom-ansible.play_container:20171212061041']
2017-12-12T14:55:22.793831 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212061041'
2017-12-12T14:55:22.797808 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:30949ed31f' tags=[u'ansible_container_dotcom-ansible.play_container:20171212041951']
2017-12-12T14:55:22.802256 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212041951'
2017-12-12T14:55:22.806201 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:7f6aaee977' tags=[u'ansible_container_dotcom-ansible.play_container:20171211100158']
2017-12-12T14:55:22.810606 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211100158'
2017-12-12T14:55:22.814559 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:94e3d93cec' tags=[u'ansible_container_dotcom-ansible.play_container:20171211064216']
2017-12-12T14:55:22.818995 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211064216'
2017-12-12T14:55:22.823327 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:23970dfe26' tags=[u'ansible_container_dotcom-ansible.play_container:20171208061136']
2017-12-12T14:55:22.827783 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208061136'
2017-12-12T14:55:22.831693 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:605b9289cd' tags=[u'ansible_container_dotcom-ansible.play_container:20171208055343']
2017-12-12T14:55:22.836114 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208055343'
2017-12-12T14:55:22.840083 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:97e048173a' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111759']
2017-12-12T14:55:22.844484 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111759'
2017-12-12T14:55:22.848535 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:b00b8a65d4' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111017']
2017-12-12T14:55:22.853032 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111017'
2017-12-12T14:55:22.857122 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:810122ec8d' tags=[u'ansible_container_dotcom-ansible.play_container:20171207094849']
2017-12-12T14:55:22.861540 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207094849'
2017-12-12T14:55:22.942296 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:41df66ff4f' tags=[u'ansible_container_dotcom-conductor:latest']
2017-12-12T14:55:22.946879 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-conductor:latest'
2017-12-12T14:55:22.950894 Created playbook to run project [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=834 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/est/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-12T14:55:22.957584 writing playbook to /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=570
2017-12-12T14:55:22.961045 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=571 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171212123211', 'command': ['app/test/play/docker-entrypoint.sh'], 'ports': ['80:9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-12T14:55:23.012987 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=640 command=ansible-playbook -vvvv  --tags=start  -i /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/hosts  -c local /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml
PLAY [Deploy ansible_container_dotcom] *****************************************
META: ran handlers
TASK [docker_service] **********************************************************
task path: /home/mt801t/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml:5
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/docker/docker_service.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961 `" && echo ansible-tmp-1513090525.06-196890971635961="` echo /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpRDOkqB TO /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/ /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1513090525.06-196890971635961/" > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "ansible_facts": {
        "ansible.play_container": {
            "ansiblecontainerdotcom_ansible.play_container_1": {
                "cmd": [
                    "app/test/play/docker-entrypoint.sh"
                ],
                "image": "ansible_container_dotcom-ansible.play_container:20171212123211",
                "labels": {
                    "build-date": "20171128",
                    "com.ansible.container.fingerprint": "208689cfd5564bf0786351cc9b8a0f92e14816039ab04a7180020a2aa289b44d",
                    "com.docker.compose.config-hash": "8d8e1a964e803e7d15ca89b9466f90a262e19745dc143a737f68130d97fbe00e",
                    "com.docker.compose.container-number": "1",
                    "com.docker.compose.oneoff": "False",
                    "com.docker.compose.project": "ansiblecontainerdotcom",
                    "com.docker.compose.service": "ansible.play_container",
                    "com.docker.compose.version": "1.16.1",
                    "license": "GPLv2",
                    "name": "CentOS Base Image",
                    "vendor": "CentOS"
                },
                "networks": {
                    "ansiblecontainerdotcom_default": {
                        "IPAddress": "172.18.0.2",
                        "IPPrefixLen": 16,
                        "aliases": [
                            "cd8a733cb939",
                            "ansible.play_container"
                        ],
                        "globalIPv6": "",
                        "globalIPv6PrefixLen": 0,
                        "links": null,
                        "macAddress": "02:42:ac:12:00:02"
                    }
                },
                "state": {
                    "running": true,
                    "status": "running"
                }
            }
        }
    },
    "changed": true,
    "invocation": {
        "module_args": {
            "api_version": null,
            "build": false,
            "cacert_path": null,
            "cert_path": null,
            "debug": false,
            "definition": {
                "services": {
                    "ansible.play_container": {
                        "command": [
                            "app/test/play/docker-entrypoint.sh"
                        ],
                        "image": "ansible_container_dotcom-ansible.play_container:20171212123211",
                        "ports": [
                            "80:9000"
                        ],
                        "user": "root"
                    }
                },
                "version": "2"
            },
            "dependencies": true,
            "docker_host": null,
            "files": null,
            "filter_logger": false,
            "hostname_check": false,
            "key_path": null,
            "nocache": false,
            "project_name": "ansible_container_dotcom",
            "project_src": null,
            "pull": false,
            "recreate": "smart",
            "remove_images": null,
            "remove_orphans": false,
            "remove_volumes": false,
            "restarted": false,
            "scale": null,
            "services": null,
            "ssl_version": null,
            "state": "present",
            "stopped": false,
            "timeout": 10,
            "tls": null,
            "tls_hostname": null,
            "tls_verify": null
        }
    }
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0
2017-12-12T14:55:26.663089 All services running.          [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=876 playbook_rc=0
2017-12-12T14:55:26.867150 Could not connect to container host. Check your docker config [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=328
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/container/utils/logmux.py", line 40, in produce
    for message in iterator:
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 339, in _multiplexed_response_stream_helper
    header = response.raw.read(STREAM_HEADER_SIZE_BYTES)
  File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 231, in read
    raise ProtocolError('Connection broken: %r' % e, e)
ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
TomasTomecek commented 6 years ago

It seems that your service is running correctly. Unfortunately, there seems to be an issue while fetching a response from dockerd, which may indicate there is a bug in dockerd or docker-py, the python client library.

Could you please try running your application in detached mode? ansible-container run -d

Manigunner commented 6 years ago

Hi @TomasTomecek , I have tested the code using the above syntax which you gave. But still am seeing the same issue. Any help would be highly appreciated Command Used - Sudo ansible-container run -d

Logs:

[dist@testansible_container_dotcom]$ sudo ansible-container --debug run
2017-12-13T09:49:30.149414 Got extra args to `run` command [container.core] arguments={'with_volumes': [], 'vault_password_file': None, 'service': [], 'with_variables': [], 'selinux': True, 'subcommand': 'run', 'devel': False, 'roles_path': [], 'volume_driver': None, 'production': False, 'debug': True, 'detached': False, 'vault_files': []} caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=238
2017-12-13T09:49:30.169207 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-13T09:49:30.170852 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-13T09:49:30.172409 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-13T09:49:30.173810 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-13T09:49:30.175199 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/dist/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["9000"], "user": "root", "command": ["app/Tesmp/play/docker-entrypoint.sh", "-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf", "-DLOG_HOME=/app/log/Test/play", "-DSKIP_LOGFILE=true", "-DLOG_ENV=dev"]}}, "registries": {}, "defaults": {}}
2017-12-13T09:49:30.191434 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-13T09:49:30.192864 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-13T09:49:30.194169 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-13T09:49:30.195392 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-13T09:49:30.196555 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/dist/ansiconplay/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["9000"], "user": "root", "command": ["app/Test/play/docker-entrypoint.sh", "-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf", "-DLOG_HOME=/app/log/Test/play", "-DSKIP_LOGFILE=true", "-DLOG_ENV=dev"]}}, "registries": {}, "defaults": {}}
2017-12-13T09:49:30.197614 hostcmd_run configuration      [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=243 config={'_config': ordereddict([('version', '2'), ('settings', ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom')])), ('services', ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['9000']), ('user', 'root'), ('command', ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'])]))])), ('registries', ordereddict([])), ('defaults', ordereddict([]))]), 'config_path': '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/container.yml', 'engine_name': 'docker', 'base_path': '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom', 'cli_vault_files': None, 'remove_engines': set(['k8s', 'openshift']), 'cli_vars_files': [], 'cli_project_name': None}
2017-12-13T09:49:30.198946 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=['RUN'] engine=docker
2017-12-13T09:49:30.233995 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-13T09:49:30.257547 Could not find container for conductor [container.docker.engine] all_containers=[<Container: 7d9ce07c93>] 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-13T09:49:30.261577 Params passed to conductor for run [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=260 params={'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}
2017-12-13T09:49:30.263435 Call: Engine.run_conductor     [container.docker.engine] args=('run', {'services': ordereddict([('ansible.play_container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['9000']), ('user', 'root'), ('command', ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom')])}, '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom', {'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'centos:7'), ('pwd', '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}) caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2017-12-13T09:49:30.334056 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:41df66ff4fc93869d454434e197cd2b25e01d362ec3e771b024f8869f61869c8' 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', 'run', '--project-name', 'ansible_container_dotcom', '--engine', 'docker', '--params', u'eyJzZWxpbnV4IjogdHJ1ZSwgInN1YmNvbW1hbmQiOiAicnVuIiwgImRldmVsIjogZmFsc2UsICJkZWJ1ZyI6IHRydWUsICJ2b2x1bWVfZHJpdmVyIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgIndpdGhfdm9sdW1lcyI6IFtdLCAic2VydmljZSI6IFtdLCAidmF1bHRfcGFzc3dvcmRfZmlsZSI6IG51bGwsICJzZXR0aW5ncyI6IHsiY29uZHVjdG9yX2Jhc2UiOiAiY2VudG9zOjciLCAicHdkIjogIi9ob21lL210ODAxdC9hbnNpY29ucGxheS9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tIn0sICJ3aXRoX3ZhcmlhYmxlcyI6IFtdLCAiZGVwbG95bWVudF9vdXRwdXRfcGF0aCI6ICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbS9hbnNpYmxlLWRlcGxveW1lbnQiLCAicHJvZHVjdGlvbiI6IGZhbHNlLCAiaG9zdF91c2VyX3VpZCI6IDAsICJob3N0X3VzZXJfZ2lkIjogMCwgImRldGFjaGVkIjogZmFsc2UsICJ2YXVsdF9maWxlcyI6IFtdfQ==', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUucGxheV9jb250YWluZXIiLCB7ImZyb20iOiAiZmFicmljOC9qYXZhLWNlbnRvcy1vcGVuamRrOC1qZGs6MS4zLjEiLCAicm9sZXMiOiBbInBsYXlfY29udGFpbmVyIl0sICJwb3J0cyI6IFsiOTAwMCJdLCAidXNlciI6ICJyb290IiwgImNvbW1hbmQiOiBbImFwcC9uZmxvdHQvcGxheS9kb2NrZXItZW50cnlwb2ludC5zaCIsICItRGZpbGUuY29uZmlnPS9hcHAvbmZsb3R0L3BsYXkvc2VydmVycy9zZXJ2ZXIwMS9wbGF5L2NvbmYvb3ZlcnJpZGUuY29uZiIsICItRExPR19IT01FPS9hcHAvbG9nL25mbG90dC9wbGF5IiwgIi1EU0tJUF9MT0dGSUxFPXRydWUiLCAiLURMT0dfRU5WPWRldiJdfV1dLCAic2V0dGluZ3MiOiBbWyJjb25kdWN0b3JfYmFzZSIsICJjZW50b3M6NyJdLCBbInB3ZCIsICIvaG9tZS9tdDgwMXQvYW5zaWNvbnBsYXkvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbSJdXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAicmVnaXN0cmllcyI6IFtdfQ==', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, 'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}, '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment': {'bind': '/home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2017-12-13T09:49:34.576541 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=384
2017-12-13T09:49:34.580229 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=volumes
2017-12-13T09:49:34.583991 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=registries
2017-12-13T09:49:34.587889 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=secrets
2017-12-13T09:49:34.591712 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=399 service=u'ansible.play_container' service_data={u'command': [u'app/Test/play/docker-entrypoint.sh', u'-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', u'-DLOG_HOME=/app/log/Test/play', u'-DSKIP_LOGFILE=true', u'-DLOG_ENV=dev'], u'from': u'fabric8/java-centos-openjdk8-jdk:1.3.1', u'ports': [u'9000'], u'roles': [u'play_container'], u'user': u'root'}
2017-12-13T09:49:34.605326 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=422 defaults={} service=u'ansible.play_container'
2017-12-13T09:49:34.616721 Starting Ansible Container Conductor: run [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=398 services={"ansible.play_container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "ports": ["9000"], "user": "root", "command": ["app/Test/play/docker-entrypoint.sh", "-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf", "-DLOG_HOME=/app/log/Test/play", "-DSKIP_LOGFILE=true", "-DLOG_ENV=dev"], "roles": ["play_container"], "defaults": {}}}
2017-12-13T09:49:34.621318 Loading engine capabilities    [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['RUN'] engine=docker
2017-12-13T09:49:34.651270 Engine integration loaded. Preparing run. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=864 engine=u'Docker\u2122 daemon'
2017-12-13T09:49:34.663348 Verifying service image        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=containers_built_for_services caller_line=592 service=u'ansible.play_container'
2017-12-13T09:49:34.667541 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-13T09:49:34.682976 Adding new service to definition [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=764 definition={u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'} service=u'ansible.play_container'
2017-12-13T09:49:34.802815 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:d8675e35b9' tags=[u'ansible_container_dotcom-ansible.play_container:20171213072438', u'ansible_container_dotcom-ansible.play_container:latest']
2017-12-13T09:49:34.807862 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171213072438'
2017-12-13T09:49:34.811946 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:latest'
2017-12-13T09:49:34.815993 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:90611e3cd9' tags=[u'ansible_container_dotcom-ansible.play_container:20171213063306']
2017-12-13T09:49:34.820826 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171213063306'
2017-12-13T09:49:34.824907 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:0210d261f3' tags=[u'ansible_container_dotcom-ansible.play_container:20171212123211']
2017-12-13T09:49:34.829422 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212123211'
2017-12-13T09:49:34.833560 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:abc2aa49a7' tags=[u'ansible_container_dotcom-ansible.play_container:20171212112819']
2017-12-13T09:49:34.838119 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212112819'
2017-12-13T09:49:34.842123 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5234b3f590' tags=[u'ansible_container_dotcom-ansible.play_container:20171212110300']
2017-12-13T09:49:34.846536 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212110300'
2017-12-13T09:49:34.850452 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:5123f676cb' tags=[u'ansible_container_dotcom-ansible.play_container:20171212061041']
2017-12-13T09:49:34.854837 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212061041'
2017-12-13T09:49:34.858906 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:30949ed31f' tags=[u'ansible_container_dotcom-ansible.play_container:20171212041951']
2017-12-13T09:49:34.863530 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171212041951'
2017-12-13T09:49:34.867482 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:7f6aaee977' tags=[u'ansible_container_dotcom-ansible.play_container:20171211100158']
2017-12-13T09:49:34.871928 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211100158'
2017-12-13T09:49:34.875918 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:94e3d93cec' tags=[u'ansible_container_dotcom-ansible.play_container:20171211064216']
2017-12-13T09:49:34.880270 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171211064216'
2017-12-13T09:49:34.884230 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:23970dfe26' tags=[u'ansible_container_dotcom-ansible.play_container:20171208061136']
2017-12-13T09:49:34.888605 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208061136'
2017-12-13T09:49:34.892555 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:605b9289cd' tags=[u'ansible_container_dotcom-ansible.play_container:20171208055343']
2017-12-13T09:49:34.896971 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171208055343'
2017-12-13T09:49:34.900828 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:97e048173a' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111759']
2017-12-13T09:49:34.905249 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111759'
2017-12-13T09:49:34.909214 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:b00b8a65d4' tags=[u'ansible_container_dotcom-ansible.play_container:20171207111017']
2017-12-13T09:49:34.913725 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207111017'
2017-12-13T09:49:34.917707 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:810122ec8d' tags=[u'ansible_container_dotcom-ansible.play_container:20171207094849']
2017-12-13T09:49:34.922175 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-ansible.play_container:20171207094849'
2017-12-13T09:49:34.996389 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=819 id=u'sha256:41df66ff4f' tags=[u'ansible_container_dotcom-conductor:latest']
2017-12-13T09:49:35.001139 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=821 tag=u'ansible_container_dotcom-conductor:latest'
2017-12-13T09:49:35.005046 Created playbook to run project [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=834 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171213072438'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171213063306'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-13T09:49:35.012376 writing playbook to /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=570
2017-12-13T09:49:35.015694 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=571 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/est/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.play_container': {u'image': u'ansible_container_dotcom-ansible.play_container:20171213072438', 'command': ['app/Test/play/docker-entrypoint.sh', '-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf', '-DLOG_HOME=/app/log/Test/play', '-DSKIP_LOGFILE=true', '-DLOG_ENV=dev'], 'ports': ['9000'], 'user': u'root'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171213072438'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171213063306'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212123211'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212112819'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212110300'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212061041'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171212041951'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211100158'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171211064216'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208061136'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171208055343'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111759'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207111017'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play_container:20171207094849'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2017-12-13T09:49:35.072494 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=640 command=ansible-playbook -vvvv  --tags=start  -i /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/hosts  -c local /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml
PLAY [Deploy ansible_container_dotcom] *****************************************
META: ran handlers
TASK [docker_service] **********************************************************
task path: /home/dist/ansiconplay/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml:5
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/docker/docker_service.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230 `" && echo ansible-tmp-1513158577.13-8300386338230="` echo /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpzBPez9 TO /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230/docker_service.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230/ /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230/docker_service.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1513158577.13-8300386338230/" > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "ansible_facts": {
        "ansible.play_container": {
            "ansiblecontainerdotcom_ansible.play_container_1": {
                "cmd": [
                    "app/Test/play/docker-entrypoint.sh",
                    "-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf",
                    "-DLOG_HOME=/app/log/Test/play",
                    "-DSKIP_LOGFILE=true",
                    "-DLOG_ENV=dev"
                ],
                "image": "ansible_container_dotcom-ansible.play_container:20171213072438",
                "labels": {
                    "build-date": "20171128",
                    "com.ansible.container.fingerprint": "41769cb9cfaeafc82ebb0e067bfb8d56a4b4f95f90831aee1ca3001a4ffd96a3",
                    "com.docker.compose.config-hash": "22b3b46280e0f2ffc40cfc289792ebab5d910977829c6526d485f3cf3c9b993c",
                    "com.docker.compose.container-number": "1",
                    "com.docker.compose.oneoff": "False",
                    "com.docker.compose.project": "ansiblecontainerdotcom",
                    "com.docker.compose.service": "ansible.play_container",
                    "com.docker.compose.version": "1.16.1",
                    "license": "GPLv2",
                    "name": "CentOS Base Image",
                    "vendor": "CentOS"
                },
                "networks": {
                    "ansiblecontainerdotcom_default": {
                        "IPAddress": "172.18.0.2",
                        "IPPrefixLen": 16,
                        "aliases": [
                            "bf42eab40599",
                            "ansible.play_container"
                        ],
                        "globalIPv6": "",
                        "globalIPv6PrefixLen": 0,
                        "links": null,
                        "macAddress": "02:42:ac:12:00:02"
                    }
                },
                "state": {
                    "running": true,
                    "status": "running"
                }
            }
        }
    },
    "changed": true,
    "invocation": {
        "module_args": {
            "api_version": null,
            "build": false,
            "cacert_path": null,
            "cert_path": null,
            "debug": false,
            "definition": {
                "services": {
                    "ansible.play_container": {
                        "command": [
                            "app/Test/play/docker-entrypoint.sh",
                            "-Dfile.config=/app/Test/play/servers/server01/play/conf/override.conf",
                            "-DLOG_HOME=/app/log/Test/play",
                            "-DSKIP_LOGFILE=true",
                            "-DLOG_ENV=dev"
                        ],
                        "image": "ansible_container_dotcom-ansible.play_container:20171213072438",
                        "ports": [
                            "9000"
                        ],
                        "user": "root"
                    }
                },
                "version": "2"
            },
            "dependencies": true,
            "docker_host": null,
            "files": null,
            "filter_logger": false,
            "hostname_check": false,
            "key_path": null,
            "nocache": false,
            "project_name": "ansible_container_dotcom",
            "project_src": null,
            "pull": false,
            "recreate": "smart",
            "remove_images": null,
            "remove_orphans": false,
            "remove_volumes": false,
            "restarted": false,
            "scale": null,
            "services": null,
            "ssl_version": null,
            "state": "present",
            "stopped": false,
            "timeout": 10,
            "tls": null,
            "tls_hostname": null,
            "tls_verify": null
        }
    }
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0
2017-12-13T09:49:38.893194 All services running.          [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=876 playbook_rc=0
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/container/utils/logmux.py", line 40, in produce
    for message in iterator:
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 339, in _multiplexed_response_stream_helper
    header = response.raw.read(STREAM_HEADER_SIZE_BYTES)
  File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 231, in read
    raise ProtocolError('Connection broken: %r' % e, e)
ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

2017-12-13T09:49:39.082501 Could not connect to container host. Check your docker config [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=328
TomasTomecek commented 6 years ago

Hm, sorry you're having these issues. When I go through the log, all seems good:

localhost : ok=1 changed=1 unreachable=0 failed=0

no errors, the app was deployed correctly

2017-12-13T09:49:38.893194 All services running.

Yup, all's good.

And suddenly, the traceback. I still hold my opinion that this is a problem in docker-py or dockerd.

Do you think it would be possible to update those packages to latest versions?

Manigunner commented 6 years ago

Hi @TomasTomecek ,

Can you please explain more on what to check wrt to Dockerd and docker-py. Which version do you expect it to work.

My Ansible-Version & Docker Version:

Ansible Container, version 0.9.2
Linux, abc.bbb.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": 292,
  "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": "2018-01-04T10:32:04.646759883Z",
  "Name": "abc.bbb.com",
  "CPUSet": true,
  "RegistryConfig": {
    "InsecureRegistryCIDRs": [
      "127.0.0.0/8"
    ],
    "IndexConfigs": {
      "docker.io": {
        "Official": true,
        "Name": "docker.io",
        "Secure": true,
        "Mirrors": null
      },
      "abc.bbb.com:4444": {
        "Official": false,
        "Name": "abc.bbb.com:4444",
        "Secure": false,
        "Mirrors": []
      },
      "localhost:4444": {
        "Official": false,
        "Name": "localhost:4444",
        "Secure": false,
        "Mirrors": []
      }
    },
    "Mirrors": []
  },
  "DefaultRuntime": "runc",
  "ContainersStopped": 292,
  "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": 126,
  "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"
}
TomasTomecek commented 6 years ago

This is the issue:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/site-packages/container/utils/logmux.py", line 40, in produce
    for message in iterator:
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 339, in _multiplexed_response_stream_helper
    header = response.raw.read(STREAM_HEADER_SIZE_BYTES)
  File "/usr/lib/python2.7/site-packages/urllib3/response.py", line 231, in read
    raise ProtocolError('Connection broken: %r' % e, e)
  ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

docker-py is trying to read logs for your containers and is accessing API of dockerd. dockerd responds with 0 bytes (likely a chunked response) which violates the HTTP protocol, thus urllib3 raises the exception. Therefore I think this is a bug in dockerd. I can see you that you are running docker 1.13.0. Can you please update to 1.13.1?

Manigunner commented 6 years ago

Hi @TomasTomecek . As Suggested we have upgraded the docker version from 1.3.0 to 1.31.1. But while running the ansible-container build still we face the issue, the docker container is getting stopped automatically.

Command: Sudo ansible-container --debug run

Docker version 1.13.1, build 092cba3

Logs:

2018-01-10T12:48:44.709099 Got extra args to `run` command [container.core] arguments={'with_volumes': [], 'vault_password_file': None, 'service': [], 'with_variables': [], 'selinux': True, 'subcommand': 'run', 'devel': False, 'roles_path': [], 'volume_driver': None, 'production': False, 'debug': True, 'detached': False, 'vault_files': []} caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=238
2018-01-10T12:48:44.725740 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'>
2018-01-10T12:48:44.727148 Getting environment variables... [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=205
2018-01-10T12:48:44.728753 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={}
2018-01-10T12:48:44.730113 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={}
2018-01-10T12:48:44.731458 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": "alpine:3.4", "pwd": "/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.node-container": {"from": "node:alpine", "roles": ["node_container"], "ports": ["80:3000"], "user": "node", "command": ["/app/test/node/app/docker-entrypoint.sh", "/app/test/node/conf/config.override.js"]}}, "registries": {}, "defaults": {}}
2018-01-10T12:48:44.745571 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'>
2018-01-10T12:48:44.746843 Getting environment variables... [container.config] caller_file=/usr/lib/python2.7/site-packages/container/config.py caller_func=_get_environment_variables caller_line=205
2018-01-10T12:48:44.748092 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={}
2018-01-10T12:48:44.749267 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={}
2018-01-10T12:48:44.750427 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": "alpine:3.4", "pwd": "/home/ttttt/nodelatest/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.node-container": {"from": "node:alpine", "roles": ["node_container"], "ports": ["80:3000"], "user": "node", "command": ["/app/test/node/app/docker-entrypoint.sh", "/app/test/node/conf/config.override.js"]}}, "registries": {}, "defaults": {}}
2018-01-10T12:48:44.751443 hostcmd_run configuration      [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=243 config={'_config': ordereddict([('version', '2'), ('settings', ordereddict([('conductor_base', 'alpine:3.4'), ('pwd', '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom')])), ('services', ordereddict([('ansible.node-container', ordereddict([('from', 'node:alpine'), ('roles', ['node_container']), ('ports', ['80:3000']), ('user', 'node'), ('command', ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'])]))])), ('registries', ordereddict([])), ('defaults', ordereddict([]))]), 'config_path': '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/container.yml', 'engine_name': 'docker', 'base_path': '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom', 'cli_vault_files': None, 'remove_engines': set(['k8s', 'openshift']), 'cli_vars_files': [], 'cli_project_name': None}
2018-01-10T12:48:44.752735 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=['RUN'] engine=docker
2018-01-10T12:48:44.785558 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
2018-01-10T12:48:44.818601 Params passed to conductor for run [container.core] caller_file=/usr/lib/python2.7/site-packages/container/core.py caller_func=hostcmd_run caller_line=260 params={'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'alpine:3.4'), ('pwd', '/home/t/ttt/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}
2018-01-10T12:48:44.820366 Call: Engine.run_conductor     [container.docker.engine] args=('run', {'services': ordereddict([('ansible.node-container', ordereddict([('from', 'node:alpine'), ('roles', ['node_container']), ('ports', ['80:3000']), ('user', 'node'), ('command', ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor_base', 'alpine:3.4'), ('pwd', '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom')])}, '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom', {'selinux': True, 'subcommand': 'run', 'devel': False, 'debug': True, 'volume_driver': None, 'roles_path': [], 'with_volumes': [], 'service': [], 'vault_password_file': None, 'settings': ordereddict([('conductor_base', 'alpine:3.4'), ('pwd', '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/ttttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}) caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2018-01-10T12:48:44.827772 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:60599b958cd8febe1a3d98f6564c2067cd00e0035a7c5334700833c66d0b603b' 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', 'run', '--project-name', 'ansible_container_dotcom', '--engine', 'docker', '--params', u'eyJzZWxpbnV4IjogdHJ1ZSwgInN1YmNvbW1hbmQiOiAicnVuIiwgImRldmVsIjogZmFsc2UsICJkZWJ1ZyI6IHRydWUsICJ2b2x1bWVfZHJpdmVyIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgIndpdGhfdm9sdW1lcyI6IFtdLCAic2VydmljZSI6IFtdLCAidmF1bHRfcGFzc3dvcmRfZmlsZSI6IG51bGwsICJzZXR0aW5ncyI6IHsiY29uZHVjdG9yX2Jhc2UiOiAiYWxwaW5lOjMuNCIsICJwd2QiOiAiL2hvbWUvbXQ4MDF0L25vZGVsYXRlc3QvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbSJ9LCAid2l0aF92YXJpYWJsZXMiOiBbXSwgImRlcGxveW1lbnRfb3V0cHV0X3BhdGgiOiAiL2hvbWUvbXQ4MDF0L25vZGVsYXRlc3QvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbS9hbnNpYmxlLWRlcGxveW1lbnQiLCAicHJvZHVjdGlvbiI6IGZhbHNlLCAiaG9zdF91c2VyX3VpZCI6IDAsICJob3N0X3VzZXJfZ2lkIjogMCwgImRldGFjaGVkIjogZmFsc2UsICJ2YXVsdF9maWxlcyI6IFtdfQ==', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUubm9kZS1jb250YWluZXIiLCB7ImZyb20iOiAibm9kZTphbHBpbmUiLCAicm9sZXMiOiBbIm5vZGVfY29udGFpbmVyIl0sICJwb3J0cyI6IFsiODA6MzAwMCJdLCAidXNlciI6ICJub2RlIiwgImNvbW1hbmQiOiBbIi9hcHAvbmZsb3R0L25vZGUvYXBwL2RvY2tlci1lbnRyeXBvaW50LnNoIiwgIi9hcHAvbmZsb3R0L25vZGUvY29uZi9jb25maWcub3ZlcnJpZGUuanMiXX1dXSwgInNldHRpbmdzIjogW1siY29uZHVjdG9yX2Jhc2UiLCAiYWxwaW5lOjMuNCJdLCBbInB3ZCIsICIvaG9tZS9tdDgwMXQvbm9kZWxhdGVzdC9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tIl1dLCAidmVyc2lvbiI6ICIyIiwgImRlZmF1bHRzIjogW10sICJyZWdpc3RyaWVzIjogW119', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}, 'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment': {'bind': '/home/ttttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment', 'mode': 'rw'}, '/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2018-01-10T12:48:48.280438 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=325
2018-01-10T12:48:48.283951 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=volumes
2018-01-10T12:48:48.287620 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=registries
2018-01-10T12:48:48.291252 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=334 section=secrets
2018-01-10T12:48:48.295049 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=340 service=u'ansible.node-container' service_data={u'command': [u'/app/test/node/app/docker-entrypoint.sh', u'/app/test/node/conf/config.override.js'], u'from': u'node:alpine', u'ports': [u'80:3000'], u'roles': [u'node_container'], u'user': u'node'}
/usr/lib/python2.7/site-packages/ruamel/yaml/constructor.py:262: DuplicateKeyFutureWarning: while constructing a mapping
  in "/src/roles/node_container/defaults/main.yml", line 2, column 1
found duplicate key "soft_file_limit" with value "100000" (original value: "100000")
  in "/src/roles/node_container/defaults/main.yml", line 73, column 1
To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become and error in future releases, and are errors
by default when using the new API.
  warnings.warn(DuplicateKeyFutureWarning(*args))
/usr/lib/python2.7/site-packages/ruamel/yaml/constructor.py:262: DuplicateKeyFutureWarning: while constructing a mapping
  in "/src/roles/node_container/defaults/main.yml", line 2, column 1
found duplicate key "hard_file_limit" with value "100000" (original value: "100000")
  in "/src/roles/node_container/defaults/main.yml", line 74, column 1
To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become and error in future releases, and are errors
by default when using the new API.
  warnings.warn(DuplicateKeyFutureWarning(*args))
/usr/lib/python2.7/site-packages/ruamel/yaml/constructor.py:262: DuplicateKeyFutureWarning: while constructing a mapping
  in "/src/roles/node_container/defaults/main.yml", line 2, column 1
found duplicate key "soft_nproc_limit" with value "100000" (original value: "100000")
  in "/src/roles/node_container/defaults/main.yml", line 75, column 1
To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become and error in future releases, and are errors
by default when using the new API.
  warnings.warn(DuplicateKeyFutureWarning(*args))
/usr/lib/python2.7/site-packages/ruamel/yaml/constructor.py:262: DuplicateKeyFutureWarning: while constructing a mapping
  in "/src/roles/node_container/defaults/main.yml", line 2, column 1
found duplicate key "hard_nproc_limit" with value "100000" (original value: "100000")
  in "/src/roles/node_container/defaults/main.yml", line 76, column 1
To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become and error in future releases, and are errors
by default when using the new API.
  warnings.warn(DuplicateKeyFutureWarning(*args))
2018-01-10T12:48:48.360259 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=363 defaults={"instance_count": 2, "project_name": "test", "app_user": "nodejs", "app_group": "root", "home_path": "/app/test", "app_home_path": "/app/test/node/app", "log_dir_path": "/app/log/test/node", "node_artifact_base": "http://dpdlabs.xxx.com/deployments/rpm/node/", "node_artifact_name": "nodejs-appserver-4.4.3_x86_64.rpm", "node_key_base": "http://dpdlabs.xxx.com/deployments/keys/labs", "node_key_name": "id_labs_nodejs.pub", "node_app_name": "node", "node_base": "/app/server/node", "node_app_base": "/app/{{ project_name }}/{{node_app_name}}", "node_tmp_path": "{{ node_app_base }}/tmp", "node_app_path": "{{ node_app_base }}/app", "node_conf_path": "/app/test/node/conf", "node_bin_home": "{{ node_base }}", "node_archive_base": "{{ node_app_base }}/archive", "node_archive_path": "/app/test/node/archive", "node_log_path": "/app/log/{{ project_name }}/{{node_app_name}}", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "node_container_url": "http://dpdlabs.xxxx.com/deployments/test-node/latest-test_7_20_consumer.tgz", "staging_dir_container": "{{ home_path }}/staging_container", "nodejs_npm_registry": "https://registry.npmjs.org/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "nginx_node_app_hostnames": "localhost dev-dpdlabs.xxx.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.xxx.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.xxx.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"} service=u'ansible.node-container'
2018-01-10T12:48:48.374483 Starting Ansible Container Conductor: run [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=391 services={"ansible.node-container": {"from": "node:alpine", "ports": ["80:3000"], "user": "node", "command": ["/app/test/node/app/docker-entrypoint.sh", "/app/test/node/conf/config.override.js"], "roles": ["node_container"], "defaults": {"instance_count": 2, "project_name": "test", "app_user": "nodejs", "app_group": "root", "home_path": "/app/test", "app_home_path": "/app/test/node/app", "log_dir_path": "/app/log/test/node", "node_artifact_base": "http://dpdlabs.xxx.com/deployments/rpm/node/", "node_artifact_name": "nodejs-appserver-4.4.3_x86_64.rpm", "node_key_base": "http://dpdlabs.xxx.com/deployments/keys/labs", "node_key_name": "id_labs_nodejs.pub", "node_app_name": "node", "node_base": "/app/server/node", "node_app_base": "/app/{{ project_name }}/{{node_app_name}}", "node_tmp_path": "{{ node_app_base }}/tmp", "node_app_path": "{{ node_app_base }}/app", "node_conf_path": "/app/test/node/conf", "node_bin_home": "{{ node_base }}", "node_archive_base": "{{ node_app_base }}/archive", "node_archive_path": "/app/test/node/archive", "node_log_path": "/app/log/{{ project_name }}/{{node_app_name}}", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "node_container_url": "http://dpdlabs.xxx.com/deployments/test-node/latest-test_7_20_consumer.tgz", "staging_dir_container": "{{ home_path }}/staging_container", "nodejs_npm_registry": "https://registry.npmjs.org/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "nginx_node_app_hostnames": "localhost dev-dpdlabs.xxx.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.xxx.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.xxxx.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"}}}
2018-01-10T12:48:48.380213 Loading engine capabilities    [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['RUN'] engine=docker
2018-01-10T12:48:48.407214 Engine integration loaded. Preparing run. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=844 engine=u'Docker\u2122 daemon'
2018-01-10T12:48:48.419757 Verifying service image        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=containers_built_for_services caller_line=588 service=u'ansible.node-container'
2018-01-10T12:48:48.424000 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=get_timeout caller_line=122
2018-01-10T12:48:48.437753 Adding new service to definition [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=760 definition={u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'} service=u'ansible.node-container'
2018-01-10T12:48:48.647525 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:52d6d0e0bf' tags=[u'ansible_container_dotcom-ansible.node-container:20180110124648', u'ansible_container_dotcom-ansible.node-container:latest']
2018-01-10T12:48:48.652028 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20180110124648'
2018-01-10T12:48:48.655823 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:latest'
2018-01-10T12:48:48.659705 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:ea23613803' tags=[u'ansible_container_dotcom-ansible.node-container:20171220121920']
2018-01-10T12:48:48.664002 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171220121920'
2018-01-10T12:48:48.667868 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:589973c84e' tags=[u'ansible_container_dotcom-ansible.node-container:20171215143334']
2018-01-10T12:48:48.672268 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171215143334'
2018-01-10T12:48:48.676071 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:1cd5a6808d' tags=[u'ansible_container_dotcom-ansible.node-container:20171215125119']
2018-01-10T12:48:48.680367 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171215125119'
2018-01-10T12:48:48.684421 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:8b8509e49a' tags=[u'ansible_container_dotcom-ansible.node-container:20171215113347']
2018-01-10T12:48:48.688903 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171215113347'
2018-01-10T12:48:48.692822 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:810cff1552' tags=[u'ansible_container_dotcom-ansible.node-container:20171120141946']
2018-01-10T12:48:48.697079 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171120141946'
2018-01-10T12:48:48.700950 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:c06e27a259' tags=[u'ansible_container_dotcom-ansible.node-container:20171120094310']
2018-01-10T12:48:48.705312 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171120094310'
2018-01-10T12:48:48.709170 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:52b38e54e1' tags=[u'ansible_container_dotcom-ansible.node-container:20171120071149']
2018-01-10T12:48:48.713429 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171120071149'
2018-01-10T12:48:48.717226 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:87f25c3b0a' tags=[u'ansible_container_dotcom-ansible.node-container:20171115105125']
2018-01-10T12:48:48.721460 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171115105125'
2018-01-10T12:48:48.725275 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:d0762ade96' tags=[u'ansible_container_dotcom-ansible.node-container:20171115104836']
2018-01-10T12:48:48.729522 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171115104836'
2018-01-10T12:48:48.733384 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:d4baf832e4' tags=[u'ansible_container_dotcom-ansible.node-container:20171114115245']
2018-01-10T12:48:48.737749 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171114115245'
2018-01-10T12:48:48.741732 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:1e76fed287' tags=[u'ansible_container_dotcom-ansible.node-container:20171114112937']
2018-01-10T12:48:48.746194 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-ansible.node-container:20171114112937'
2018-01-10T12:48:48.810378 Found image for service        [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=815 id=u'sha256:60599b958c' tags=[u'ansible_container_dotcom-conductor:latest']
2018-01-10T12:48:48.814813 Adding task to destroy image   [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=817 tag=u'ansible_container_dotcom-conductor:latest'
2018-01-10T12:48:48.818521 Created playbook to run project [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=generate_orchestration_playbook caller_line=830 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20180110124648'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171220121920'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215143334'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215125119'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215113347'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120141946'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120094310'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120071149'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171115105125'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171115104836'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171114115245'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171114112937'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2018-01-10T12:48:48.825054 writing playbook to /home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=551
2018-01-10T12:48:48.828298 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=552 playbook=[ordereddict([(u'name', 'Deploy ansible_container_dotcom'), (u'hosts', u'localhost'), (u'gather_facts', False), (u'tasks', [{u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom'}, u'tags': ['start']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'restarted': True}, u'tags': ['restart']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'present', u'project_name': 'ansible_container_dotcom', u'stopped': True}, u'tags': ['stop']}, {u'docker_service': {u'definition': {u'services': {u'ansible.node-container': {u'image': u'ansible_container_dotcom-ansible.node-container:20180110124648', 'command': ['/app/test/node/app/docker-entrypoint.sh', '/app/test/node/conf/config.override.js'], 'ports': ['80:3000'], 'user': u'node'}}, u'version': u'2'}, u'state': u'absent', u'project_name': 'ansible_container_dotcom', u'remove_volumes': u'yes'}, u'tags': ['destroy']}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20180110124648'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171220121920'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215143334'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215125119'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171215113347'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120141946'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120094310'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171120071149'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171115105125'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171115104836'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171114115245'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.node-container:20171114112937'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-conductor:latest'}, u'tags': u'destroy'}])])]
2018-01-10T12:48:48.879278 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=621 command=ansible-playbook -vvvv  --tags=start  -i /home/ttttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/hosts  -c local /home/ttttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/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.12 (default, Jun 29 2016, 08:57:23) [GCC 5.3.0]
Using /src/ansible.cfg as config file
setting up inventory plugins
Parsed /home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/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 /home/ttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml
PLAY [Deploy ansible_container_dotcom] *****************************************
META: ran handlers
TASK [docker_service] **********************************************************
task path: /home/tttt/nodelatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml:5
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/docker/docker_service.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488 `" && echo ansible-tmp-1515588530.86-239207268853488="` echo /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpP3rZEt TO /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488/docker_service.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488/ /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488/docker_service.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1515588530.86-239207268853488/" > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "ansible_facts": {
        "ansible.node-container": {
            "ansiblecontainerdotcom_ansible.node-container_1": {
                "cmd": [
                    "/app/test/node/app/docker-entrypoint.sh",
                    "/app/test/node/conf/config.override.js"
                ],
                "image": "ansible_container_dotcom-ansible.node-container:20180110124648",
                "labels": {
                    "com.ansible.container.fingerprint": "b12315b70c0c171fca3838fe93ac5f425c61d4f6d0397a4179792f589962d379",
                    "com.docker.compose.config-hash": "d512b3cb716a8bff3a2894e77964507bc4aa315a10d6bdc5ee0c4f9d23f014ed",
                    "com.docker.compose.container-number": "1",
                    "com.docker.compose.oneoff": "False",
                    "com.docker.compose.project": "ansiblecontainerdotcom",
                    "com.docker.compose.service": "ansible.node-container",
                    "com.docker.compose.version": "1.16.1"
                },
                "networks": {
                    "ansiblecontainerdotcom_default": {
                        "IPAddress": "172.18.0.2",
                        "IPPrefixLen": 16,
                        "aliases": [
                            "4a5a5d5f8261",
                            "ansible.node-container"
                        ],
                        "globalIPv6": "",
                        "globalIPv6PrefixLen": 0,
                        "links": null,
                        "macAddress": "02:42:ac:12:00:02"
                    }
                },
                "state": {
                    "running": true,
                    "status": "running"
                }
            }
        }
    },
    "changed": true,
    "failed": false,
    "invocation": {
        "module_args": {
            "api_version": null,
            "build": false,
            "cacert_path": null,
            "cert_path": null,
            "debug": false,
            "definition": {
                "services": {
                    "ansible.node-container": {
                        "command": [
                            "/app/test/node/app/docker-entrypoint.sh",
                            "/app/test/node/conf/config.override.js"
                        ],
                        "image": "ansible_container_dotcom-ansible.node-container:20180110124648",
                        "ports": [
                            "80:3000"
                        ],
                        "user": "node"
                    }
                },
                "version": "2"
            },
            "dependencies": true,
            "docker_host": null,
            "files": null,
            "filter_logger": false,
            "hostname_check": false,
            "key_path": null,
            "nocache": false,
            "project_name": "ansible_container_dotcom",
            "project_src": null,
            "pull": false,
            "recreate": "smart",
            "remove_images": null,
            "remove_orphans": false,
            "remove_volumes": false,
            "restarted": false,
            "scale": null,
            "services": null,
            "ssl_version": null,
            "state": "present",
            "stopped": false,
            "timeout": 10,
            "tls": null,
            "tls_hostname": null,
            "tls_verify": null
        }
    }
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0
2018-01-10T12:48:52.334321 All services running.          [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_run caller_line=856 playbook_rc=0
2018-01-10T12:48:52.570267 Could not connect to container host. Check your docker config [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=328

Docker Status:

● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor pres                                             et: disabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─override.conf
   Active: failed (Result: exit-code) since Wed 2018-01-10 12:48:52 UTC; 22min a                                             go
     Docs: https://docs.docker.com
  Process: 16913 ExecStart=/usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIO                                             NS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (cod                                             e=exited, status=2)
 Main PID: 16913 (code=exited, status=2)
   Memory: 2.1G
   CGroup: /system.slice/docker.service
           └─17363 docker-containerd-shim 4a5a5d5f8261373359454c96bd62d57f407...

Jan 10 12:48:52 p11.xxx.com docker[16913]: r11    0x206
Jan 10 12:48:52 p11.xxx.com docker[16913]: r12    0x28
Jan 10 12:48:52 p11.xxx.com docker[16913]: r13    0x7f300effc740
Jan 10 12:48:52 p11.xxx.com docker[16913]: r14    0x4d
Jan 10 12:48:52 p11.xxx.com docker[16913]: r15    0x2
Jan 10 12:48:52 p11.xxx.com docker[16913]: rip    0x7f30180ac5f7
Jan 10 12:48:52 p11.xxx.com docker[16913]: rflags 0x206
Jan 10 12:48:52 p11.xxx.com docker[16913]: cs     0x33
Jan 10 12:48:52 p11.xxx.com docker[16913]: fs     0x0
Jan 10 12:48:52 p11.xxx.com docker[16913]: gs     0x0
TomasTomecek commented 6 years ago

It's really hard to tell what the problem is since you override the unit file:

Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Manigunner commented 6 years ago

Hi @TomasTomecek

We are using that override file as systemd file for docker service, just configured docker to write specific folder and logs to journald..

TomasTomecek commented 6 years ago

I'm sorry you are having these issues but unfortunately we can't do anything about it -- we're not here to provide support for dockerd.

I would suggest you to open an issue with the vendor of your operating system (not sure if it's CentOS or Red Hat Enterprise Linux) and get support there for these issues with docker daemon. Once you figure out those issues, feel free to come back and we can help you with ansible-container.

Manigunner commented 6 years ago

Hi @TomasTomecek ,

We are able to run docker build and docker run commands in stand alone. We are facing this issue only when using sudo ansible-container --debug run where our docker container is getting stopped /terminated suddenly. This clearly implies issue with Ansible-Container run command. I have never faced this stop issue earlier , this is occurring time to time while am running ansible-container run. So some help of this issue from your end would be highly appreciated.

Thanks in Advance!!

Manigunner commented 6 years ago

Hi @TomasTomecek ,

We have one small doubt, whether Ansible-Contaniner run needs docker compose as a pre-requisite, if yes what is the version we have to install. Please help us on this question

Thanks in Advance!!

TomasTomecek commented 6 years ago

Ansible Container does not require docker-compose anymore. You can easily check what dependencies are required in this file: https://github.com/ansible/ansible-container/blob/develop/requirements.txt