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 command is getting failed with No such image error #847

Open Manigunner opened 6 years ago

Manigunner commented 6 years ago
container.yml

version: '2' settings: conductor: base: centos:7 services: ansible.nginx-container: from: "nginx:ansible" roles:


##### OS / ENVIRONMENT
Ansible Container, version 0.9.2
Linux, 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

Client:
Version: 1.13.0
API version: 1.25
Go version: go1.7.3
Git commit: 49bf474
Built: Tue Jan 17 09:55:28 2017
OS/Arch: linux/amd64

Server:
Version: 1.13.0
API version: 1.25 (minimum version 1.12)
Go version: go1.7.3
Git commit: 49bf474
Built: Tue Jan 17 09:55:28 2017
OS/Arch: linux/amd64
Experimental: false
##### SUMMARY
My Nginx and play images are build successfully using Ansible-container run. But while doing Ansible-container run, its is failed with no such image error.

##### STEPS TO REPRODUCE
Sudo ansible-container --debug run

##### EXPECTED RESULTS
Image should be ran and launched successfully.
##### ACTUAL RESULTS
2018-01-04T06:15:30.910459 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-04T06:15:30.934833 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-04T06:15:30.936327 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-04T06:15:30.937868 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-04T06:15:30.939256 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-04T06:15:30.940645 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/nginxlatest/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.nginx-container": {"from": "nginx:ansible", "roles": ["nginx_container"], "ports": ["9001:9001"], "user": "nginx", "command": ["/app/test/nginx/html/docker-entrypoint.sh"]}, "ansible.play-container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["9000:9000"], "user": "play", "command": ["/app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2018-01-04T06:15:30.962128 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-04T06:15:30.963394 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-04T06:15:30.964674 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-04T06:15:30.965867 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-04T06:15:30.967093 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/nginxlatest/ansible-containers/ansible_container_dotcom"}, "services": {"ansible.nginx-container": {"from": "nginx:ansible", "roles": ["nginx_container"], "ports": ["9001:9001"], "user": "nginx", "command": ["/app/test/nginx/html/docker-entrypoint.sh"]}, "ansible.play-container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "roles": ["play_container"], "ports": ["9000:9000"], "user": "play", "command": ["/app/test/play/docker-entrypoint.sh"]}}, "registries": {}, "defaults": {}}
2018-01-04T06:15:30.968131 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', ordereddict([('base', 'centos:7')])), ('pwd', '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom')])), ('services', ordereddict([('ansible.nginx-container', ordereddict([('from', 'nginx:ansible'), ('roles', ['nginx_container']), ('ports', ['9001:9001']), ('user', 'nginx'), ('command', ['/app/test/nginx/html/docker-entrypoint.sh'])])), ('ansible.play-container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['9000:9000']), ('user', 'play'), ('command', ['/app/test/play/docker-entrypoint.sh'])]))])), ('registries', ordereddict([])), ('defaults', ordereddict([]))]), 'config_path': '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/container.yml', 'engine_name': 'docker', 'base_path': '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom', 'cli_vault_files': None, 'remove_engines': set(['k8s', 'openshift']), 'cli_vars_files': [], 'cli_project_name': None}
2018-01-04T06:15:30.969346 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-04T06:15:31.002161 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-04T06:15:31.030376 Could not find container for conductor [container.docker.engine] all_containers=[] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=get_container_id_for_service caller_line=531 container=u'ansible_container_dotcom_conductor'
2018-01-04T06:15:31.033377 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', ordereddict([('base', 'centos:7')])), ('pwd', '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment', 'production': False, 'host_user_uid': 0, 'host_user_gid': 0, 'detached': False, 'vault_files': []}
2018-01-04T06:15:31.035232 Call: Engine.run_conductor     [container.docker.engine] args=('run', {'services': ordereddict([('ansible.nginx-container', ordereddict([('from', 'nginx:ansible'), ('roles', ['nginx_container']), ('ports', ['9001:9001']), ('user', 'nginx'), ('command', ['/app/test/nginx/html/docker-entrypoint.sh'])])), ('ansible.play-container', ordereddict([('from', 'fabric8/java-centos-openjdk8-jdk:1.3.1'), ('roles', ['play_container']), ('ports', ['9000:9000']), ('user', 'play'), ('command', ['/app/test/play/docker-entrypoint.sh'])]))]), 'version': '2', 'registries': ordereddict([]), 'defaults': ordereddict([]), 'settings': ordereddict([('conductor', ordereddict([('base', 'centos:7')])), ('pwd', '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom')])}, '/home/mt801t/nginxlatest/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', ordereddict([('base', 'centos:7')])), ('pwd', '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom')]), 'with_variables': [], 'deployment_output_path': '/home/mt801t/nginxlatest/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-04T06:15:31.081735 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:3dae1df45f6e1ea11759a03c761d2d5017ce2fd7f75ce95cd0dc86d3cc6032b6' 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'eyJzZWxpbnV4IjogdHJ1ZSwgInN1YmNvbW1hbmQiOiAicnVuIiwgImRldmVsIjogZmFsc2UsICJkZWJ1ZyI6IHRydWUsICJ2b2x1bWVfZHJpdmVyIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgIndpdGhfdm9sdW1lcyI6IFtdLCAic2VydmljZSI6IFtdLCAidmF1bHRfcGFzc3dvcmRfZmlsZSI6IG51bGwsICJzZXR0aW5ncyI6IHsiY29uZHVjdG9yIjogeyJiYXNlIjogImNlbnRvczo3In0sICJwd2QiOiAiL2hvbWUvbXQ4MDF0L25naW54bGF0ZXN0L2Fuc2libGUtY29udGFpbmVycy9hbnNpYmxlX2NvbnRhaW5lcl9kb3Rjb20ifSwgIndpdGhfdmFyaWFibGVzIjogW10sICJkZXBsb3ltZW50X291dHB1dF9wYXRoIjogIi9ob21lL210ODAxdC9uZ2lueGxhdGVzdC9hbnNpYmxlLWNvbnRhaW5lcnMvYW5zaWJsZV9jb250YWluZXJfZG90Y29tL2Fuc2libGUtZGVwbG95bWVudCIsICJwcm9kdWN0aW9uIjogZmFsc2UsICJob3N0X3VzZXJfdWlkIjogMCwgImhvc3RfdXNlcl9naWQiOiAwLCAiZGV0YWNoZWQiOiBmYWxzZSwgInZhdWx0X2ZpbGVzIjogW119', '--config', u'eyJzZXJ2aWNlcyI6IFtbImFuc2libGUubmdpbngtY29udGFpbmVyIiwgeyJmcm9tIjogIm5naW54OmFuc2libGUiLCAicm9sZXMiOiBbIm5naW54X2NvbnRhaW5lciJdLCAicG9ydHMiOiBbIjkwMDE6OTAwMSJdLCAidXNlciI6ICJuZ2lueCIsICJjb21tYW5kIjogWyIvYXBwL25mbG90dC9uZ2lueC9odG1sL2RvY2tlci1lbnRyeXBvaW50LnNoIl19XSwgWyJhbnNpYmxlLnBsYXktY29udGFpbmVyIiwgeyJmcm9tIjogImZhYnJpYzgvamF2YS1jZW50b3Mtb3BlbmpkazgtamRrOjEuMy4xIiwgInJvbGVzIjogWyJwbGF5X2NvbnRhaW5lciJdLCAicG9ydHMiOiBbIjkwMDA6OTAwMCJdLCAidXNlciI6ICJwbGF5IiwgImNvbW1hbmQiOiBbIi9hcHAvbmZsb3R0L3BsYXkvZG9ja2VyLWVudHJ5cG9pbnQuc2giXX1dXSwgInNldHRpbmdzIjogW1siY29uZHVjdG9yIiwgeyJiYXNlIjogImNlbnRvczo3In1dLCBbInB3ZCIsICIvaG9tZS9tdDgwMXQvbmdpbnhsYXRlc3QvYW5zaWJsZS1jb250YWluZXJzL2Fuc2libGVfY29udGFpbmVyX2RvdGNvbSJdXSwgInZlcnNpb24iOiAiMiIsICJkZWZhdWx0cyI6IFtdLCAicmVnaXN0cmllcyI6IFtdfQ==', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'ansible_container_dotcom_secrets': {'bind': '/run/secrets', 'mode': 'rw'}, '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment': {'bind': '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment', 'mode': 'rw'}, '/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom': {'bind': '/src', 'mode': 'ro'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2018-01-04T06:15:35.136296 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=384
2018-01-04T06:15:35.140111 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=volumes
2018-01-04T06:15:35.143946 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=registries
2018-01-04T06:15:35.147804 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=393 section=secrets
2018-01-04T06:15:35.151622 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=399 service=u'ansible.nginx-container' service_data={u'command': [u'/app/test/nginx/html/docker-entrypoint.sh'], u'from': u'nginx:ansible', u'ports': [u'9001:9001'], u'roles': [u'nginx_container'], u'user': u'nginx'}
2018-01-04T06:15:35.221079 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=422 defaults={"project_name": "test", "nginx_artifact_name": "nginx-pagespeed_scientia_realip_ssl_httpstatus-1.11.4_x86_64.rpm", "init_program_src": "systemd-{{init_template_type }}-nginx.service.j2", "init_program_dest": "/etc/systemd/system/{{ systemd_name }}", "nginx_wurfl_lib_name": "libwurfl-1.8.0.0-x86_64.rpm", "nginx_artifact_base": "http://dpdlabs.test.com/deployments/build/nginx", "nginx_key_base": "http://dpdlabs.test.com/deployments/keys/labs", "nginx_key_name": "id_labs_nginx.pub", "app_user": "nginx", "app_group": "root", "nginx_base": "/app/server/nginx", "nginx_app_name": "nginx", "nginx_app_base": "/app/{{ project_name }}/{{nginx_app_name}}", "nginx_html_path": "{{ nginx_app_base }}/html", "nginx_tmp_path": "{{ nginx_app_base }}/tmp", "nginx_bin_home": "{{ nginx_base }}/sbin", "nginx_pid_home": "{{nginx_app_base}}/nginx.pid", "nginx_default_conf_home": "{{ nginx_base }}/conf", "nginx_conf_home": "{{ nginx_app_base }}/conf", "nginx_client_body_path": "{{ nginx_base }}/client_body_temp", "nginx_conf_name": "nginx.conf", "nginx_wurfl_conf_home": "{{ nginx_app_base }}/wurfl", "nginx_wurfl_conf_name": "wurfl.xml", "nginx_archive_base": "{{ nginx_app_base }}/archive", "nginx_archive_redirects_path": "{{ nginx_archive_base }}/dtv-nginxredirects", "nginx_archive_path": "{{ nginx_archive_base }}", "nginx_archive_wurfl_base": "{{ nginx_app_base }}/archive", "nginx_archive_wurfl_path": "{{ nginx_archive_base }}", "nginx_log_path": "/app/log/{{project_name}}/{{nginx_app_name}}", "nginx_ssl_path": "{{nginx_app_base}}/ssl", "nginx_listen_port": 8080, "nginx_port_in_redirect": "off", "nginx_use_ssl": false, "download_file_dir": "/app/tmp/nginx", "init_base": "{{project_name}}-{{ nginx_app_name }}", "upstart_name": "{{init_base}}.conf", "systemd_name": "{{init_base}}.service", "init_template_type": "default", "nginx_wurfl_conf_update_folder": "2016_09/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "nginx_node_app_hostnames": "localhost dev-dpdlabs.test.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.test.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.test.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"} service=u'ansible.nginx-container'
2018-01-04T06:15:35.232092 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'9000:9000'], u'roles': [u'play_container'], u'user': u'play'}
2018-01-04T06:15:35.245217 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'
2018-01-04T06:15:35.253766 Starting Ansible Container Conductor: run [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=398 services={"ansible.nginx-container": {"from": "nginx:ansible", "ports": ["9001:9001"], "user": "nginx", "command": ["/app/test/nginx/html/docker-entrypoint.sh"], "roles": ["nginx_container"], "defaults": {"project_name": "test", "nginx_artifact_name": "nginx-pagespeed_scientia_realip_ssl_httpstatus-1.11.4_x86_64.rpm", "init_program_src": "systemd-{{init_template_type }}-nginx.service.j2", "init_program_dest": "/etc/systemd/system/{{ systemd_name }}", "nginx_wurfl_lib_name": "libwurfl-1.8.0.0-x86_64.rpm", "nginx_artifact_base": "http://dpdlabs.test.com/deployments/build/nginx", "nginx_key_base": "http://dpdlabs.test.com/deployments/keys/labs", "nginx_key_name": "id_labs_nginx.pub", "app_user": "nginx", "app_group": "root", "nginx_base": "/app/server/nginx", "nginx_app_name": "nginx", "nginx_app_base": "/app/{{ project_name }}/{{nginx_app_name}}", "nginx_html_path": "{{ nginx_app_base }}/html", "nginx_tmp_path": "{{ nginx_app_base }}/tmp", "nginx_bin_home": "{{ nginx_base }}/sbin", "nginx_pid_home": "{{nginx_app_base}}/nginx.pid", "nginx_default_conf_home": "{{ nginx_base }}/conf", "nginx_conf_home": "{{ nginx_app_base }}/conf", "nginx_client_body_path": "{{ nginx_base }}/client_body_temp", "nginx_conf_name": "nginx.conf", "nginx_wurfl_conf_home": "{{ nginx_app_base }}/wurfl", "nginx_wurfl_conf_name": "wurfl.xml", "nginx_archive_base": "{{ nginx_app_base }}/archive", "nginx_archive_redirects_path": "{{ nginx_archive_base }}/dtv-nginxredirects", "nginx_archive_path": "{{ nginx_archive_base }}", "nginx_archive_wurfl_base": "{{ nginx_app_base }}/archive", "nginx_archive_wurfl_path": "{{ nginx_archive_base }}", "nginx_log_path": "/app/log/{{project_name}}/{{nginx_app_name}}", "nginx_ssl_path": "{{nginx_app_base}}/ssl", "nginx_listen_port": 8080, "nginx_port_in_redirect": "off", "nginx_use_ssl": false, "download_file_dir": "/app/tmp/nginx", "init_base": "{{project_name}}-{{ nginx_app_name }}", "upstart_name": "{{init_base}}.conf", "systemd_name": "{{init_base}}.service", "init_template_type": "default", "nginx_wurfl_conf_update_folder": "2016_09/", "nginx_node_log_path": "/app/log/{{project_name}}/nginx", "soft_file_limit": 100000, "hard_file_limit": 100000, "soft_nproc_limit": 100000, "hard_nproc_limit": 100000, "nginx_node_app_hostnames": "localhost dev-dpdlabs.test.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.test.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.test.com", "nginx_aem_instant_preview_enabled": "false", "nginx_aem_instant_preview_author_host": "", "nginx_container_conf_expecting_dir": "/etc/nginx"}}, "ansible.play-container": {"from": "fabric8/java-centos-openjdk8-jdk:1.3.1", "ports": ["9000:9000"], "user": "play", "command": ["/app/test/play/docker-entrypoint.sh"], "roles": ["play_container"], "defaults": {}}}
2018-01-04T06:15:35.260055 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-04T06:15:35.288078 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'
2018-01-04T06:15:35.300120 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.nginx-container'
2018-01-04T06:15:35.304312 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=get_timeout caller_line=123
2018-01-04T06:15:35.316466 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'
2018-01-04T06:15:35.326483 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.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'} service=u'ansible.nginx-container'
2018-01-04T06:15:35.333850 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'} service=u'ansible.play-container'
2018-01-04T06:15:35.444034 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:3aaf8eacfc' tags=[u'ansible_container_dotcom-ansible.nginx-container:20180104054130', u'ansible_container_dotcom-ansible.nginx-container:latest']
2018-01-04T06:15:35.448690 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.nginx-container:20180104054130'
2018-01-04T06:15:35.452625 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.nginx-container:latest'
2018-01-04T06:15:35.456641 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:abd3ca57ba' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171226112156']
2018-01-04T06:15:35.461104 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.nginx-container:20171226112156'
2018-01-04T06:15:35.465133 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:92ec858137' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205132218']
2018-01-04T06:15:35.469546 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.nginx-container:20171205132218'
2018-01-04T06:15:35.473520 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:de2e3bd7ec' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205131929']
2018-01-04T06:15:35.478035 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.nginx-container:20171205131929'
2018-01-04T06:15:35.482257 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:3a2ec5d593' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205093656']
2018-01-04T06:15:35.486645 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.nginx-container:20171205093656'
2018-01-04T06:15:35.490606 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:2affad68c5' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205092826']
2018-01-04T06:15:35.495018 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.nginx-container:20171205092826'
2018-01-04T06:15:35.498964 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:73f39ac259' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205072235']
2018-01-04T06:15:35.503365 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.nginx-container:20171205072235'
2018-01-04T06:15:35.507358 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:4d0d324a09' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171205044114']
2018-01-04T06:15:35.512066 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.nginx-container:20171205044114'
2018-01-04T06:15:35.516032 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:0339c322e5' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204135931']
2018-01-04T06:15:35.520630 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.nginx-container:20171204135931'
2018-01-04T06:15:35.524594 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:af9b5e3f76' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204134948']
2018-01-04T06:15:35.529037 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.nginx-container:20171204134948'
2018-01-04T06:15:35.532974 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:22a4f574d1' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204132728']
2018-01-04T06:15:35.537408 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.nginx-container:20171204132728'
2018-01-04T06:15:35.541345 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:7ce7dd6481' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204132453']
2018-01-04T06:15:35.545713 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.nginx-container:20171204132453'
2018-01-04T06:15:35.549651 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:d18f4f2ceb' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204130355']
2018-01-04T06:15:35.554075 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.nginx-container:20171204130355'
2018-01-04T06:15:35.558041 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:9943469251' tags=[u'ansible_container_dotcom-ansible.nginx-container:20171204113117']
2018-01-04T06:15:35.562421 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.nginx-container:20171204113117'
2018-01-04T06:15:35.627367 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:e5e418fa38' tags=[u'ansible_container_dotcom-ansible.play-container:20180104052319', u'ansible_container_dotcom-ansible.play-container:latest']
2018-01-04T06:15:35.632038 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:20180104052319'
2018-01-04T06:15:35.635995 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'
2018-01-04T06:15:35.700132 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:3dae1df45f' tags=[u'ansible_container_dotcom-conductor:latest']
2018-01-04T06:15:35.704610 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'
2018-01-04T06:15:35.708603 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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.nginx-container:20180104054130'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171226112156'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205132218'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205131929'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205093656'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205092826'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205072235'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205044114'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204135931'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204134948'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204132728'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204132453'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204130355'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204113117'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play-container:20180104052319'}, 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-conductor:latest'}, u'tags': u'destroy'}])])]
2018-01-04T06:15:35.716430 writing playbook to /home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=570
2018-01-04T06:15:35.719993 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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:20180104052319', 'command': ['/app/test/play/docker-entrypoint.sh'], 'ports': ['9000:9000'], 'user': u'play'}, u'ansible.nginx-container': {u'image': u'ansible_container_dotcom-ansible.nginx-container:20180104054130', 'command': ['/app/test/nginx/html/docker-entrypoint.sh'], 'ports': ['9001:9001'], 'user': u'nginx'}}, 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.nginx-container:20180104054130'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:latest'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171226112156'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205132218'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205131929'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205093656'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205092826'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205072235'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171205044114'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204135931'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204134948'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204132728'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204132453'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204130355'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.nginx-container:20171204113117'}, u'tags': u'destroy'}, {u'docker_image': {u'state': u'absent', u'force': u'yes', u'name': u'ansible_container_dotcom-ansible.play-container:20180104052319'}, 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-conductor:latest'}, u'tags': u'destroy'}])])]
2018-01-04T06:15:35.779991 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/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment/hosts  -c local /home/mt801t/nginxlatest/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/nginxlatest/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/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.yml
PLAY [Deploy ansible_container_dotcom] *****************************************
META: ran handlers
TASK [docker_service] **********************************************************
task path: /home/mt801t/nginxlatest/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-1515046537.83-113115736934867 `" && echo ansible-tmp-1515046537.83-113115736934867="` echo /root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpOTK2Oy TO /root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867/docker_service.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867/ /root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867/docker_service.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1515046537.83-113115736934867/" > /dev/null 2>&1 && sleep 0'
The full traceback is:
  File "/tmp/ansible_MGQxOS/ansible_module_docker_service.py", line 745, in cmd_up
    timeout=self.timeout)
  File "/usr/lib/python2.7/site-packages/compose/project.py", line 457, in up
    'Encountered errors while bringing up the project.'
fatal: [localhost]: FAILED! => {
    "changed": false,
    "errors": [
        "ERROR: for daa040fe9491_daa040fe9491_daa040fe9491_daa040fe9491_ansiblecontainerdotcom_ansible.play-container_1  No such image: sha256:38424106db9feda752057cc555b5fc22c7c70d20c884deab13d806c85309406f",
        "ERROR: for 66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_ansiblecontainerdotcom_ansible.nginx-container_1  No such image: sha256:d45df4ed29f1a1d3cfdf6bfbaa4463ed51617536effa71e9a670133c54aa3bb4",
        "ERROR: for ansible.play-container  No such image: sha256:38424106db9feda752057cc555b5fc22c7c70d20c884deab13d806c85309406f",
        "ERROR: for ansible.nginx-container  No such image: sha256:d45df4ed29f1a1d3cfdf6bfbaa4463ed51617536effa71e9a670133c54aa3bb4"
    ],
    "invocation": {
        "module_args": {
            "api_version": null,
            "build": false,
            "cacert_path": null,
            "cert_path": null,
            "debug": false,
            "definition": {
                "services": {
                    "ansible.nginx-container": {
                        "command": [
                            "/app/test/nginx/html/docker-entrypoint.sh"
                        ],
                        "image": "ansible_container_dotcom-ansible.nginx-container:20180104054130",
                        "ports": [
                            "9001:9001"
                        ],
                        "user": "nginx"
                    },
                    "ansible.play-container": {
                        "command": [
                            "/app/test/play/docker-entrypoint.sh"
                        ],
                        "image": "ansible_container_dotcom-ansible.play-container:20180104052319",
                        "ports": [
                            "9000:9000"
                        ],
                        "user": "play"
                    }
                },
                "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
        }
    },
    "module_stderr": "Recreating daa040fe9491_daa040fe9491_daa040fe9491_daa040fe9491_ansiblecontainerdotcom_ansible.play-container_1 ... \r\nRecreating 66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_ansiblecontainerdotcom_ansible.nginx-container_1 ... \r\n\r\u001b[1B\nERROR: for daa040fe9491_daa040fe9491_daa040fe9491_daa040fe9491_ansiblecontainerdotcom_ansible.play-container_1  No such image: sha256:38424106db9feda752057cc555b5fc22c7c70d20c884deab13d806c85309406f\n\r\u001b[1B\nERROR: for 66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_66cac2762a2b_ansiblecontainerdotcom_ansible.nginx-container_1  No such image: sha256:d45df4ed29f1a1d3cfdf6bfbaa4463ed51617536effa71e9a670133c54aa3bb4\n\nERROR: for ansible.play-container  No such image: sha256:38424106db9feda752057cc555b5fc22c7c70d20c884deab13d806c85309406f\n\nERROR: for ansible.nginx-container  No such image: sha256:d45df4ed29f1a1d3cfdf6bfbaa4463ed51617536effa71e9a670133c54aa3bb4\n",
    "module_stdout": "",
    "msg": "Error starting project ERROR: for ansible.nginx-container  No such image: sha256:d45df4ed29f1a1d3cfdf6bfbaa4463ed51617536effa71e9a670133c54aa3bb4"
}
        to retry, use: --limit @/home/mt801t/nginxlatest/ansible-containers/ansible_container_dotcom/ansible-deployment/playbook.retry
PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1
Traceback (most recent call last):
  File "/usr/bin/conductor", line 11, in <module>
    load_entry_point('ansible-container', 'console_scripts', 'conductor')()
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/cli.py", line 406, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 874, in conductorcmd_run
    'Error executing the run command. Not all containers may be running.'
container.exceptions.AnsibleContainerException: Error executing the run command. Not all containers may be running.
2018-01-04T06:15:39.500462 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/usr/lib/python2.7/site-packages/container/docker/engine.py caller_func=await_conductor_command caller_line=462 command_rc=1 conductor_id=u'4b7ccaa4633cd4597449a8ed4c73361ec1947158dc241c2ecbdbe1e65fa07348' save_container=False
2018-01-04T06:15:40.278589 Conductor exited with status 1 [container.cli] caller_file=/usr/lib/python2.7/site-packages/container/cli.py caller_func=__call__ caller_line=311

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

@chouseknecht , @TomasTomecek : Any help on this issue. We are not able to rectify what is causing this No Such image error. Please let us know your thoughts. Thanks in Advance.!!

TomasTomecek commented 6 years ago

Hm, could it be a race condition? Are you able to reproduce 100%? It almost seems as the image vanished during the build.

j00bar commented 6 years ago

I would really love to see a gist of the output from:

docker images
docker ps -a
ansible-container --debug build
docker images
ansible-container --debug run
docker images

Would that be possible?

thuitaw commented 6 years ago

@j00bar

I seem to have this same issue. Not sure exactly whats wrong because the build step completes successfully. My conductor.yaml

version: '2'

settings:
  conductor:
    base: 'debian:jessie'
    volumes:
      - ${PWD}/temp-space:/tmp

defaults:
  REACT_APP_GRAPHQL_URL: http://localhost:8000/graphql
  REACT_APP_CORS_URL: http://localhost:1337/
  REACT_APP_BRAVE_FILE_UPLOAD: http://localhost/upload
  REACT_APP_JD_KEYWORD_URL: http://localhost:1337/hard_skill
  REACT_APP_PORT: 8000
  APP_ROOT: /app
  REACT_APP_USER: react

services:
  careers:
    from: 'debian:jessie'
    roles:
    - { role: careers, nodejs_install_npm_user: root}
    environment:
      GRAPHQL_URL: '{{ REACT_APP_GRAPHQL_URL }}'
      UPLOAD_URL: '{{  REACT_APP_BRAVE_FILE_UPLOAD }}'
    expose:
    - '{{ REACT_APP_PORT }}'
    working_dir: '{{ APP_ROOT }}'
    user: '{{ REACT_APP_USER }}'
    entrypoint: /usr/bin/dumb-init
    ports:
      - 8000:8000
    dev_overrides:
      volumes:
      - '$PWD:{{ APP_ROOT }}'

  admin:
    from: 'debian:jessie'
    roles:
    - { role: admin, nodejs_install_npm_user: root}
    environment:
      GRAPHQL_URL: '{{ REACT_APP_GRAPHQL_URL }}'
      UPLOAD_URL: '{{  REACT_APP_BRAVE_FILE_UPLOAD }}'
    expose:
    - '{{ REACT_APP_PORT }}'
    working_dir: '{{ APP_ROOT }}'
    user: '{{ REACT_APP_USER }}'
    entrypoint: /usr/bin/dumb-init
    ports:
      - 7000:7000

    dev_overrides:
      volumes:
      - '$PWD:{{ APP_ROOT }}'

For the following section, the commands were run in the exact sequence specified below for clarity

docker images
docker ps -a
ansible-container --debug build
docker images
ansible-container --debug run
docker images

docker images output.

(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
server-configuration-admin                  20180326153107      75f90800deb6        33 minutes ago      348MB
server-configuration-admin                  latest              75f90800deb6        33 minutes ago      348MB
server-configuration-careers                20180326152728      29c28ce43821        37 minutes ago      352MB
server-configuration-careers                latest              29c28ce43821        37 minutes ago      352MB
server-configuration-conductor              latest              de90fd2260fb        41 minutes ago      576MB
debian                                      jessie              5dd74d62fab8        12 days ago         123MB
ansible/container-conductor-debian-jessie   0.9.2               4f3c101a1385        6 months ago        576MB
(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗

ansible-container --debug build -e "ansible_python_interpreter=/usr/bin/python3" -- -vvvvv output

https://gist.github.com/thuitaw/c2a4c02a840d5f3ee081ba4ba4bb5a8d

docker images output (after build step above)

(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
server-configuration-careers                20180326161222      c05f772ad484        8 minutes ago       352MB
server-configuration-careers                latest              c05f772ad484        8 minutes ago       352MB
server-configuration-admin                  20180326153107      75f90800deb6        About an hour ago   348MB
server-configuration-admin                  latest              75f90800deb6        About an hour ago   348MB
server-configuration-careers                20180326152728      29c28ce43821        About an hour ago   352MB
server-configuration-conductor              latest              de90fd2260fb        About an hour ago   576MB
debian                                      jessie              5dd74d62fab8        12 days ago         123MB
ansible/container-conductor-debian-jessie   0.9.2               4f3c101a1385        6 months ago        576MB
(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗

ansible-container --debug run output

https://gist.github.com/thuitaw/31364dbe01b3cbe853145c0a8c29384c

final docker images output

(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
server-configuration-careers                20180326161222      c05f772ad484        12 minutes ago      352MB
server-configuration-careers                latest              c05f772ad484        12 minutes ago      352MB
server-configuration-admin                  20180326153107      75f90800deb6        About an hour ago   348MB
server-configuration-admin                  latest              75f90800deb6        About an hour ago   348MB
server-configuration-careers                20180326152728      29c28ce43821        About an hour ago   352MB
server-configuration-conductor              latest              de90fd2260fb        About an hour ago   576MB
debian                                      jessie              5dd74d62fab8        12 days ago         123MB
ansible/container-conductor-debian-jessie   0.9.2               4f3c101a1385        6 months ago        576MB
(server-configuration-UWykhGFB) ➜  server-configuration git:(ansible-docker) ✗