Sometimes fails building an Ansible compatible image when latest Docker versioned image is used as dependency. I need this Image to speed up solrcloud role execution 😢.
TASK [Build an Ansible compatible image] ***************************************
failed: [localhost] (item={'_ansible_parsed': True, u'src': u'/Users/dortega/.ansible/tmp/ansible-tmp-1543327408.45-231462761729504/source', '_ansible_item_result': True, u'group': u'staff', u'uid': 502, u'size': 793, 'item': {'image_version': u'3.0.1-debian8', 'name': u'zookeeper', 'image': u'idealista/java-debian-ansible', 'capabilities': [u'SYS_ADMIN'], 'privileged': True, 'command': u'/lib/systemd/systemd', 'groups': [u'zookeeper_group'], 'volumes': [u'/sys/fs/cgroup:/sys/fs/cgroup:ro'], 'networks': [{'name': u'solr-network', 'aliases': [u'zookeeper']}]}, u'dest': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', u'checksum': u'cd4b2e390a16761272a517f568c372fc5ad5a846', u'changed': True, 'failed': False, u'state': u'file', u'gid': 20, u'mode': u'0644', u'invocation': {u'module_args': {u'directory_mode': None, u'force': True, u'remote_src': None, u'owner': None, u'follow': False, u'local_follow': None, u'group': None, u'unsafe_writes': None, u'setype': None, u'content': None, u'serole': None, u'dest': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', u'selevel': None, u'original_basename': u'Dockerfile.j2', u'regexp': None, u'validate': None, u'src': u'/Users/dortega/.ansible/tmp/ansible-tmp-1543327408.45-231462761729504/source', u'checksum': u'cd4b2e390a16761272a517f568c372fc5ad5a846', u'seuser': None, u'delimiter': None, u'mode': None, u'attributes': None, u'backup': False}}, u'owner': u'dortega', 'diff': [], u'md5sum': u'ef3d61319249b3651eb2b932d891bf30', '_ansible_ignore_errors': None, '_ansible_no_log': False}) => {"changed": false, "item": {"changed": true, "checksum": "cd4b2e390a16761272a517f568c372fc5ad5a846", "dest": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "diff": [], "failed": false, "gid": 20, "group": "staff", "invocation": {"module_args": {"attributes": null, "backup": false, "checksum": "cd4b2e390a16761272a517f568c372fc5ad5a846", "content": null, "delimiter": null, "dest": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": null, "original_basename": "Dockerfile.j2", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/Users/dortega/.ansible/tmp/ansible-tmp-1543327408.45-231462761729504/source", "unsafe_writes": null, "validate": null}}, "item": {"capabilities": ["SYS_ADMIN"], "command": "/lib/systemd/systemd", "groups": ["zookeeper_group"], "image": "idealista/java-debian-ansible", "image_version": "3.0.1-debian8", "name": "zookeeper", "networks": [{"aliases": ["zookeeper"], "name": "solr-network"}], "privileged": true, "volumes": ["/sys/fs/cgroup:/sys/fs/cgroup:ro"]}, "md5sum": "ef3d61319249b3651eb2b932d891bf30", "mode": "0644", "owner": "dortega", "size": 793, "src": "/Users/dortega/.ansible/tmp/ansible-tmp-1543327408.45-231462761729504/source", "state": "file", "uid": 502}, "msg": "Error building molecule_local/idealista/java-debian-ansible - code: 100, message: The command '/bin/sh -c if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi' returned a non-zero code: 100, logs: [u'Step 1/2 : FROM idealista/java-debian-ansible', u'\\n', u' ---> 41764fa940e2\\n', u\"Step 2/2 : RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi\", u'\\n', u' ---> Running in ae15a5e6564e\\n', u'Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease\\nIgn:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease\\n', u'Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]\\n', u'Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]\\n', u'Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release\\n', u'Hit:6 http://cdn-fastly.deb.debian.org/debian stretch Release\\n', u'Err:6 http://cdn-fastly.deb.debian.org/debian stretch Release\\n Failed to stat - stat (2: No such file or directory)\\n', u'Get:7 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [460 kB]\\n', u'Reading package lists...', u'\\n', u\"\\x1b[91mE: The repository 'http://http.debian.net/debian stretch Release' does no longer have a Release file.\\n\\x1b[0m\", u'Removing intermediate container ae15a5e6564e\\n']"}
failed: [localhost] (item={'_ansible_parsed': True, u'changed': False, u'group': u'staff', u'uid': 502, 'item': {'image_version': u'3.0.1-debian8', 'name': u'solrcloud', 'image': u'idealista/java-debian-ansible', 'capabilities': [u'SYS_ADMIN'], 'privileged': True, 'command': u'/lib/systemd/systemd', 'groups': [u'solrcloud_group'], 'volumes': [u'/sys/fs/cgroup:/sys/fs/cgroup:ro'], 'networks': [{'name': u'solr-network', 'links': [u'zookeeper:zookeeper'], 'aliases': [u'solrcloud']}]}, 'dest': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', 'checksum': u'cd4b2e390a16761272a517f568c372fc5ad5a846', '_ansible_item_result': True, 'failed': False, u'state': u'file', u'gid': 20, u'mode': u'0644', u'invocation': {u'module_args': {u'directory_mode': None, u'force': False, u'remote_src': None, u'path': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', u'owner': None, u'follow': False, u'group': None, u'unsafe_writes': None, u'serole': None, u'content': None, u'state': u'file', u'diff_peek': None, u'setype': None, u'dest': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', u'selevel': None, u'original_basename': u'Dockerfile.j2', u'regexp': None, u'validate': None, u'src': u'Dockerfile.j2', u'seuser': None, u'recurse': False, u'delimiter': None, u'mode': None, u'attributes': None, u'backup': None}}, u'owner': u'dortega', u'path': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible', u'size': 793, 'diff': {u'after': {u'path': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible'}, u'before': {u'path': u'/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible'}}, '_ansible_ignore_errors': None, '_ansible_no_log': False}) => {"changed": false, "item": {"changed": false, "checksum": "cd4b2e390a16761272a517f568c372fc5ad5a846", "dest": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "diff": {"after": {"path": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible"}, "before": {"path": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible"}}, "failed": false, "gid": 20, "group": "staff", "invocation": {"module_args": {"attributes": null, "backup": null, "content": null, "delimiter": null, "dest": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "diff_peek": null, "directory_mode": null, "follow": false, "force": false, "group": null, "mode": null, "original_basename": "Dockerfile.j2", "owner": null, "path": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "recurse": false, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "Dockerfile.j2", "state": "file", "unsafe_writes": null, "validate": null}}, "item": {"capabilities": ["SYS_ADMIN"], "command": "/lib/systemd/systemd", "groups": ["solrcloud_group"], "image": "idealista/java-debian-ansible", "image_version": "3.0.1-debian8", "name": "solrcloud", "networks": [{"aliases": ["solrcloud"], "links": ["zookeeper:zookeeper"], "name": "solr-network"}], "privileged": true, "volumes": ["/sys/fs/cgroup:/sys/fs/cgroup:ro"]}, "mode": "0644", "owner": "dortega", "path": "/var/folders/5n/g2ggh_bj56bc2pw09yfhqh480000gp/T/molecule/solrcloud-role/default/Dockerfile_idealista_java_debian_ansible", "size": 793, "state": "file", "uid": 502}, "msg": "Error building molecule_local/idealista/java-debian-ansible - code: 100, message: The command '/bin/sh -c if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi' returned a non-zero code: 100, logs: [u'Step 1/2 : FROM idealista/java-debian-ansible', u'\\n', u' ---> 41764fa940e2\\n', u\"Step 2/2 : RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates && apt-get clean; elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; elif [ $(command -v yum) ]; then yum makecache fast && yum update -y && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; elif [ $(command -v zypper) ]; then zypper refresh && zypper update -y && zypper install -y python sudo bash python-xml && zypper clean -a; elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; fi\", u'\\n', u' ---> Running in 622b8184d5cc\\n', u'Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]\\n', u'Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease\\nIgn:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease\\n', u'Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]\\n', u'Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release\\n', u'Hit:6 http://cdn-fastly.deb.debian.org/debian stretch Release\\n', u'Err:6 http://cdn-fastly.deb.debian.org/debian stretch Release\\n Failed to stat - stat (2: No such file or directory)\\n', u'Get:7 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [460 kB]\\n', u'Reading package lists...', u'\\n', u\"\\x1b[91mE: The repository 'http://deb.debian.org/debian stretch Release' does no longer have a Release file.\\n\\x1b[0m\", u'Removing intermediate container 622b8184d5cc\\n']"}
Any additional information, configuration or data that might be necessary to reproduce the issue.