New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building custom conductor image that adds additional packages and Python modules #531

Closed
random-char opened this Issue May 19, 2017 · 10 comments

Comments

Projects
None yet
5 participants
@random-char

random-char commented May 19, 2017

ISSUE TYPE
  • Documentation Report
Piece of code from a role
- name: add mysql databases
  mysql_db: name={{ item }} state=present login_user={{ mysql_app_user }} login_password={{ mysql_app_pass }} encoding={{ mysql_database_encoding }} collation={{ mysql_database_collation }}
  with_items: "{{ mysql_databases }}"

python mysqldb module is required so mysql_db can be used. So I modify ansible-requirements.txt as follows:

ansible-requirements.txt
MySQL-python
SUMMARY

The problem is that in order to install MySQL-python I need also to do apt-get -y install libmysqlclient-dev python-dev in conductor container. Where should I specify these packages so they are also installed without modifying conductor-dockerfile template in sources?
I must be missing something here.

@chouseknecht

This comment has been minimized.

Member

chouseknecht commented May 19, 2017

@random-char, to add additional apt packages to the conductor, you'll need to build your own conductor image.

Here's how I would do it.

# Clone the AC project
$ git clone  https://github.com/ansible/ansible-container.git

# Create a virtualenv
$ virtualenv acvenv

# Source the virtualenv
$ source ./acvenv/bin/activate

# Set the working dir to AC
(acvenv) $ cd ansible-container

# Install AC into the virtualenv
(acvenv) $ pip install -e .[docker,k8s]

In the clone, modify [container/docker/templates/conductor-dockerfile.j2] (,/container/docker/templates/conductor-dockerfile.j2), adding the additional package to the debian/ubuntu section:

{% elif distro in ["debian", "ubuntu"] %}
RUN apt-get update -y && \
    apt-get install -y gcc python2.7 git libmysqlclient-dev python-dev rsync libffi-dev libssl-dev dpkg-dev python-apt && \
    cd /usr/bin && \
    rm -f lsb_release && \
    ln -fs python2.7 python && \
    apt-get clean

Next, add the PyPi package to the condocutor-requirements.txt file:

https://github.com/ansible/ansible/archive/devel.tar.gz
https://github.com/openshift/openshift-restclient-python/archive/master.tar.gz#egg=openshift-1.0.0
PyYAML>=3.12
docker-compose>=1.7
requests>=2
ruamel.yaml>=0.14.2
six>=1.10
structlog[dev]>=16.1
python-string-utils>=0.6.0
MySQL-python

Now within your project directory, we'll call it example, your container.yml needs to specify an ubuntu base image, and a matching base for the mysql service. A basic example might be something like the following:

version: "2"
settings:
  conductor_base: "ubuntu:14.04"
services:
   mysql:
     from: "ubuntu:14.04"
     roles:
     - build-mysql
registries: {}

Now run the following to build the project, and the new conductor image:

# Set the working dir to example
(acvenv) $ cd ~/example

# Remove any existing images/containers
(acvenv) $ ansible-container destroy

# Build using modified AC
(acvenv) $ ansible-container --debug --devel build

@chouseknecht chouseknecht changed the title from Using mysql_db module: python mysqldb module is required to Building custom conductor image to add additional packages and Python modules May 19, 2017

@chouseknecht chouseknecht changed the title from Building custom conductor image to add additional packages and Python modules to Building custom conductor image that adds additional packages and Python modules May 19, 2017

@random-char

This comment has been minimized.

random-char commented May 19, 2017

@chouseknecht, thanks a lot!
Although I thought I could do that without container/docker/templates/conductor-dockerfile.j2 direct modifications.

@brucellino

This comment has been minimized.

Contributor

brucellino commented May 27, 2017

Hi all - forgive the intrusion. I've hit what I think is the same error. I seem to have a fundamental misunderstanding here though. The module documentation says that the remote nodes need the mysql python bindings, not the control host. Why is this necessary on the conductor container (which, as I understand, is the control host in this case) ?

@random-char

This comment has been minimized.

random-char commented May 31, 2017

Hi, @brucellino
I am quite new to both ansible and ansible-container though I think it goes like this:

  • mysql_db module requires those packages to be installed on the remote host (http://docs.ansible.com/ansible/mysql_db_module.html);
  • when building with ansible-container, conductor container is a remote host (control host should be Your machine that You run ansible-container on), that requires those packages, so You should install them in it;
  • to do so ansible-requirements.txt file have to have a list of packages to be installed. But remember that packages from that list will be installed with pip;
  • as we have another dependency now and need packages via apt-get the Dockerfile of conductor container should be modified to have those.
@fins2

This comment has been minimized.

fins2 commented Mar 15, 2018

Hi,

@chouseknecht After following your tutorial (with some modifications) on building a custom conductor, I was able install all the dependencies needed on my conductor but not able to create a mysql database on my target container.

I did some modification in the conductor-local-dockerfile.j2 file to install all the dependencies needed on my conductor to manage mysql databases on the target container:

cat container/docker/templates/conductor-local-dockerfile.j2

FROM {{ conductor_base }}
{% set distro = original_base.split(':')[0] %}
# The COPY here will break cache if the requirements or ansible.cfg has changed
COPY /build-src /_ansible/build

#{% if install_requirements %}
#RUN {{ install_requirements }}
{% endif %}

VOLUME /usr
{% if distro in ["ubuntu", "debian", "alpine"] %}
VOLUME /lib
RUN apt-get update -y && \
    apt-get install default-libmysqlclient-dev python-mysqldb -y && \
    pip install MySQL-python
{% endif %}

you'll see that pip install is in this file. If I put it in the conductor-requirements.txt file nothing happens, if I use the ansible-requirements.txt file stored in my project directory there's an error because the pip install is running before the default-libmysqlclient-dev installation and Mysql-python complains about the mysql config not found:

Downloading MySQL-python-1.2.5.zip (108kB)
    Complete output from command python setup.py egg_info:
    sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-o52Cq9/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found

Everything that I need is installed on my conductor to create my database on my target container but it doesn't work.
Bellow my ansible-container build output:

2018-03-15T11:46:31.461623 The default type is            [container.config] caller_file=/root/ansible-container/container/config.py caller_func=_resolve_defaults caller_line=255 config=<class 'ruamel.yaml.comments.CommentedMap'> defaults=<type '_ordereddict.ordereddict'>
2018-03-15T11:46:31.465999 Getting environment variables... [container.config] caller_file=/root/ansible-container/container/config.py caller_func=_get_environment_variables caller_line=271
2018-03-15T11:46:31.469382 Read environment variables     [container.config] caller_file=/root/ansible-container/container/config.py caller_func=_get_environment_variables caller_line=276 env_vars={}
2018-03-15T11:46:31.473007 Resolved template variables    [container.config] caller_file=/root/ansible-container/container/config.py caller_func=_resolve_defaults caller_line=260 template_vars={"SSL_ROOT_DIR": "/etc/ssl"}
2018-03-15T11:46:31.476618 Parsed config                  [container.config] caller_file=/root/ansible-container/container/config.py caller_func=set_env caller_line=196 config={"version": "2", "defaults": {"SSL_ROOT_DIR": "/etc/ssl"}, "settings": {"project_name": "mysql", "conductor": {"base": "debian:9", "roles_path": ["roles/"]}, "pwd": "/root/ac/mysql"}, "services": {"mydb": {"from": "debian:9", "roles": [{"role": "mysql", "db_name": "test"}], "command": ["/usr/bin/dumb-init", "/usr/bin/mysqld_safe"]}}}
2018-03-15T11:46:31.482440 Loading engine capabilities    [container.utils.loader] caller_file=/root/ansible-container/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD', 'RUN'] engine=docker
2018-03-15T11:46:31.651650 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=get_timeout caller_line=124
2018-03-15T11:46:31.669548 Could not find container for mysql_conductor [container.docker.engine] all_containers=[] caller_file=/root/ansible-container/container/docker/engine.py caller_func=get_container_id_by_name caller_line=570
2018-03-15T11:46:31.680115 Call: Engine.build_conductor_image [container.docker.engine] args=('/root/ac/mysql', 'debian:9') caller_file=/root/ansible-container/container/docker/engine.py caller_func=Engine.build_conductor_image caller_line=23 kwargs={'environment': [], 'cache': False}
2018-03-15T11:46:31.685847 Using temporary directory      [container.utils.temp] caller_file=/root/ansible-container/container/utils/temp.py caller_func=__enter__ caller_line=17 path=/tmp/tmpFWqT0z
2018-03-15T11:46:31.689291 Building Docker Engine context... [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=1049
2018-03-15T11:46:31.815973 Rendered Jinja Template:       [container.utils] body=FROM debian:9
ENV ANSIBLE_CONTAINER=1




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


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

ADD LICENSE /licenses/LICENSE
ADD help.1 /help.1

# The COPY here will break cache if the version of Ansible Container changed
COPY /container-src /_ansible/container

RUN cd /_ansible && \
    pip install --no-cache-dir -r container/conductor-build/conductor-requirements.txt && \
    PYTHONPATH=. LC_ALL="en_US.UTF-8" python container/conductor-build/setup.py develop -v -N && \
    ansible-galaxy install -p /etc/ansible/roles -r container/conductor-build/conductor-requirements.yml
 caller_file=/root/ansible-container/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=104
2018-03-15T11:46:31.832419 Rendered Jinja Template:       [container.utils] body=FROM ansible/container-conductor-debian-stretch:0.9.3rc0

# The COPY here will break cache if the requirements or ansible.cfg has changed
COPY /build-src /_ansible/build


RUN cp /_ansible/build/ansible.cfg /etc/ansible/ansible.cfg


VOLUME /usr

VOLUME /lib
RUN apt-get update -y && \
    apt-get install default-libmysqlclient-dev python-mysqldb -y && \
    pip install MySQL-python
 caller_file=/root/ansible-container/container/utils/__init__.py caller_func=jinja_render_to_temp caller_line=104
2018-03-15T11:46:31.836618 Context manifest:              [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=1116
2018-03-15T11:46:31.838669 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2018-03-15T11:46:31.840312 tarball item: build-src/ansible-requirements.txt (130 bytes) [container.docker.engine] bytes=130 file=build-src/ansible-requirements.txt
2018-03-15T11:46:31.841939 tarball item: build-src/requirements.yml (341 bytes) [container.docker.engine] bytes=341 file=build-src/requirements.yml
2018-03-15T11:46:31.843589 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2018-03-15T11:46:31.845222 tarball item: contrib/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=contrib/get-pip.py
2018-03-15T11:46:31.846861 tarball item: container-src (0 bytes) [container.docker.engine] bytes=0L file=container-src
2018-03-15T11:46:31.848504 tarball item: container-src/__init__.py (950 bytes) [container.docker.engine] bytes=950 file=container-src/__init__.py
2018-03-15T11:46:31.850131 tarball item: container-src/cli.py (24218 bytes) [container.docker.engine] bytes=24218 file=container-src/cli.py
2018-03-15T11:46:31.851764 tarball item: container-src/config.py (18968 bytes) [container.docker.engine] bytes=18968 file=container-src/config.py
2018-03-15T11:46:31.853454 tarball item: container-src/core.py (47848 bytes) [container.docker.engine] bytes=47848 file=container-src/core.py
2018-03-15T11:46:31.855104 tarball item: container-src/docker (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker
2018-03-15T11:46:31.856753 tarball item: container-src/docker/__init__.py (205 bytes) [container.docker.engine] bytes=205 file=container-src/docker/__init__.py
2018-03-15T11:46:31.858485 tarball item: container-src/docker/config.py (2384 bytes) [container.docker.engine] bytes=2384 file=container-src/docker/config.py
2018-03-15T11:46:31.860124 tarball item: container-src/docker/deploy.py (248 bytes) [container.docker.engine] bytes=248 file=container-src/docker/deploy.py
2018-03-15T11:46:31.861774 tarball item: container-src/docker/engine.py (53581 bytes) [container.docker.engine] bytes=53581 file=container-src/docker/engine.py
2018-03-15T11:46:31.863439 tarball item: container-src/docker/files (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/files
2018-03-15T11:46:31.865066 tarball item: container-src/docker/files/get-pip.py (1595409 bytes) [container.docker.engine] bytes=1595409 file=container-src/docker/files/get-pip.py
2018-03-15T11:46:31.866730 tarball item: container-src/docker/importer.py (24885 bytes) [container.docker.engine] bytes=24885 file=container-src/docker/importer.py
2018-03-15T11:46:31.868405 tarball item: container-src/docker/secrets.py (5255 bytes) [container.docker.engine] bytes=5255 file=container-src/docker/secrets.py
2018-03-15T11:46:31.870029 tarball item: container-src/docker/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/templates
2018-03-15T11:46:31.871686 tarball item: container-src/docker/templates/atomic-help.j2 (1333 bytes) [container.docker.engine] bytes=1333 file=container-src/docker/templates/atomic-help.j2
2018-03-15T11:46:31.873354 tarball item: container-src/docker/templates/license.j2 (7837 bytes) [container.docker.engine] bytes=7837 file=container-src/docker/templates/license.j2
2018-03-15T11:46:31.874994 tarball item: container-src/docker/templates/conductor-src-dockerfile.j2 (3053 bytes) [container.docker.engine] bytes=3053 file=container-src/docker/templates/conductor-src-dockerfile.j2
2018-03-15T11:46:31.876692 tarball item: container-src/docker/templates/conductor-local-dockerfile.j2 (472 bytes) [container.docker.engine] bytes=472 file=container-src/docker/templates/conductor-local-dockerfile.j2
2018-03-15T11:46:31.878375 tarball item: container-src/docker/tests (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests
2018-03-15T11:46:31.879994 tarball item: container-src/docker/tests/import (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import
2018-03-15T11:46:31.881659 tarball item: container-src/docker/tests/import/Dockerfile (1151 bytes) [container.docker.engine] bytes=1151 file=container-src/docker/tests/import/Dockerfile
2018-03-15T11:46:31.883325 tarball item: container-src/docker/tests/import/blue-fish.txt (10 bytes) [container.docker.engine] bytes=10 file=container-src/docker/tests/import/blue-fish.txt
2018-03-15T11:46:31.884964 tarball item: container-src/docker/tests/import/lulz.tgz (59072 bytes) [container.docker.engine] bytes=59072 file=container-src/docker/tests/import/lulz.tgz
2018-03-15T11:46:31.886643 tarball item: container-src/docker/tests/import/one-fish.txt (6 bytes) [container.docker.engine] bytes=6 file=container-src/docker/tests/import/one-fish.txt
2018-03-15T11:46:31.888312 tarball item: container-src/docker/tests/import/red-fish (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/red-fish
2018-03-15T11:46:31.889946 tarball item: container-src/docker/tests/import/red-fish/lulz.txt (10 bytes) [container.docker.engine] bytes=10 file=container-src/docker/tests/import/red-fish/lulz.txt
2018-03-15T11:46:31.891622 tarball item: container-src/docker/tests/import/two-fish (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/two-fish
2018-03-15T11:46:31.893286 tarball item: container-src/docker/tests/import/two-fish/green-eggs (0 bytes) [container.docker.engine] bytes=0L file=container-src/docker/tests/import/two-fish/green-eggs
2018-03-15T11:46:31.894938 tarball item: container-src/docker/tests/import/two-fish/green-eggs/ham.txt (5 bytes) [container.docker.engine] bytes=5 file=container-src/docker/tests/import/two-fish/green-eggs/ham.txt
2018-03-15T11:46:31.896625 tarball item: container-src/docker/tests/import/two-fish/who.txt (7 bytes) [container.docker.engine] bytes=7 file=container-src/docker/tests/import/two-fish/who.txt
2018-03-15T11:46:31.898305 tarball item: container-src/docker/__init__.pyc (318 bytes) [container.docker.engine] bytes=318 file=container-src/docker/__init__.pyc
2018-03-15T11:46:31.899931 tarball item: container-src/docker/config.pyc (2300 bytes) [container.docker.engine] bytes=2300 file=container-src/docker/config.pyc
2018-03-15T11:46:31.901592 tarball item: container-src/docker/engine.pyc (42167 bytes) [container.docker.engine] bytes=42167 file=container-src/docker/engine.pyc
2018-03-15T11:46:31.903244 tarball item: container-src/docker/secrets.pyc (5030 bytes) [container.docker.engine] bytes=5030 file=container-src/docker/secrets.pyc
2018-03-15T11:46:31.904874 tarball item: container-src/engine.py (7421 bytes) [container.docker.engine] bytes=7421 file=container-src/engine.py
2018-03-15T11:46:31.906522 tarball item: container-src/exceptions.py (2319 bytes) [container.docker.engine] bytes=2319 file=container-src/exceptions.py
2018-03-15T11:46:31.908146 tarball item: container-src/k8s (0 bytes) [container.docker.engine] bytes=0L file=container-src/k8s
2018-03-15T11:46:31.909786 tarball item: container-src/k8s/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/k8s/__init__.py
2018-03-15T11:46:31.911471 tarball item: container-src/k8s/base_config.py (932 bytes) [container.docker.engine] bytes=932 file=container-src/k8s/base_config.py
2018-03-15T11:46:31.913113 tarball item: container-src/k8s/base_deploy.py (34402 bytes) [container.docker.engine] bytes=34402 file=container-src/k8s/base_deploy.py
2018-03-15T11:46:31.914810 tarball item: container-src/k8s/base_engine.py (10144 bytes) [container.docker.engine] bytes=10144 file=container-src/k8s/base_engine.py
2018-03-15T11:46:31.916486 tarball item: container-src/k8s/config.py (660 bytes) [container.docker.engine] bytes=660 file=container-src/k8s/config.py
2018-03-15T11:46:31.918122 tarball item: container-src/k8s/deploy.py (1903 bytes) [container.docker.engine] bytes=1903 file=container-src/k8s/deploy.py
2018-03-15T11:46:31.919768 tarball item: container-src/k8s/engine.py (1276 bytes) [container.docker.engine] bytes=1276 file=container-src/k8s/engine.py
2018-03-15T11:46:31.921427 tarball item: container-src/openshift (0 bytes) [container.docker.engine] bytes=0L file=container-src/openshift
2018-03-15T11:46:31.923039 tarball item: container-src/openshift/__init__.py (196 bytes) [container.docker.engine] bytes=196 file=container-src/openshift/__init__.py
2018-03-15T11:46:31.924702 tarball item: container-src/openshift/config.py (427 bytes) [container.docker.engine] bytes=427 file=container-src/openshift/config.py
2018-03-15T11:46:31.926356 tarball item: container-src/openshift/deploy.py (6302 bytes) [container.docker.engine] bytes=6302 file=container-src/openshift/deploy.py
2018-03-15T11:46:31.927993 tarball item: container-src/openshift/engine.py (2207 bytes) [container.docker.engine] bytes=2207 file=container-src/openshift/engine.py
2018-03-15T11:46:31.929661 tarball item: container-src/schema.yml (2547 bytes) [container.docker.engine] bytes=2547 file=container-src/schema.yml
2018-03-15T11:46:31.931312 tarball item: container-src/templates (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates
2018-03-15T11:46:31.932935 tarball item: container-src/templates/ansible-container-inventory.py (1230 bytes) [container.docker.engine] bytes=1230 file=container-src/templates/ansible-container-inventory.py
2018-03-15T11:46:31.934622 tarball item: container-src/templates/ansible-dockerfile.j2 (1194 bytes) [container.docker.engine] bytes=1194 file=container-src/templates/ansible-dockerfile.j2
2018-03-15T11:46:31.936300 tarball item: container-src/templates/ansible.cfg (41 bytes) [container.docker.engine] bytes=41 file=container-src/templates/ansible.cfg
2018-03-15T11:46:31.937933 tarball item: container-src/templates/builder.sh (620 bytes) [container.docker.engine] bytes=620 file=container-src/templates/builder.sh
2018-03-15T11:46:31.939599 tarball item: container-src/templates/compose_versioned.j2.yml (237 bytes) [container.docker.engine] bytes=237 file=container-src/templates/compose_versioned.j2.yml
2018-03-15T11:46:31.941278 tarball item: container-src/templates/hosts.j2 (90 bytes) [container.docker.engine] bytes=90 file=container-src/templates/hosts.j2
2018-03-15T11:46:31.942910 tarball item: container-src/templates/init (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/init
2018-03-15T11:46:31.944572 tarball item: container-src/templates/init/.dockerignore.j2 (60 bytes) [container.docker.engine] bytes=60 file=container-src/templates/init/.dockerignore.j2
2018-03-15T11:46:31.946240 tarball item: container-src/templates/init/ansible-requirements.j2.txt (131 bytes) [container.docker.engine] bytes=131 file=container-src/templates/init/ansible-requirements.j2.txt
2018-03-15T11:46:31.947887 tarball item: container-src/templates/init/ansible.j2.cfg (145 bytes) [container.docker.engine] bytes=145 file=container-src/templates/init/ansible.j2.cfg
2018-03-15T11:46:31.949553 tarball item: container-src/templates/init/container.j2.yml (2514 bytes) [container.docker.engine] bytes=2514 file=container-src/templates/init/container.j2.yml
2018-03-15T11:46:31.951227 tarball item: container-src/templates/init/meta.j2.yml (1231 bytes) [container.docker.engine] bytes=1231 file=container-src/templates/init/meta.j2.yml
2018-03-15T11:46:31.952863 tarball item: container-src/templates/init/requirements.j2.yml (299 bytes) [container.docker.engine] bytes=299 file=container-src/templates/init/requirements.j2.yml
2018-03-15T11:46:31.954582 tarball item: container-src/templates/install-docker-compose.j2.yml (712 bytes) [container.docker.engine] bytes=712 file=container-src/templates/install-docker-compose.j2.yml
2018-03-15T11:46:31.956273 tarball item: container-src/templates/restart-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/restart-docker-compose.j2.yml
2018-03-15T11:46:31.957918 tarball item: container-src/templates/role (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role
2018-03-15T11:46:31.959577 tarball item: container-src/templates/role/.travis.j2.yml (540 bytes) [container.docker.engine] bytes=540 file=container-src/templates/role/.travis.j2.yml
2018-03-15T11:46:31.961242 tarball item: container-src/templates/role/README.j2.md (1287 bytes) [container.docker.engine] bytes=1287 file=container-src/templates/role/README.j2.md
2018-03-15T11:46:31.962888 tarball item: container-src/templates/role/defaults (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/defaults
2018-03-15T11:46:31.964561 tarball item: container-src/templates/role/defaults/main.j2.yml (55 bytes) [container.docker.engine] bytes=55 file=container-src/templates/role/defaults/main.j2.yml
2018-03-15T11:46:31.966230 tarball item: container-src/templates/role/meta (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/meta
2018-03-15T11:46:31.967862 tarball item: container-src/templates/role/meta/main.j2.yml (3220 bytes) [container.docker.engine] bytes=3220 file=container-src/templates/role/meta/main.j2.yml
2018-03-15T11:46:31.969533 tarball item: container-src/templates/role/test (0 bytes) [container.docker.engine] bytes=0L file=container-src/templates/role/test
2018-03-15T11:46:31.971170 tarball item: container-src/templates/role/test/test.j2.yml (81 bytes) [container.docker.engine] bytes=81 file=container-src/templates/role/test/test.j2.yml
2018-03-15T11:46:31.972834 tarball item: container-src/templates/run-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/run-docker-compose.j2.yml
2018-03-15T11:46:31.974521 tarball item: container-src/templates/stop-docker-compose.j2.yml (75 bytes) [container.docker.engine] bytes=75 file=container-src/templates/stop-docker-compose.j2.yml
2018-03-15T11:46:31.976193 tarball item: container-src/templates/wait_on_host.py (2365 bytes) [container.docker.engine] bytes=2365 file=container-src/templates/wait_on_host.py
2018-03-15T11:46:31.977832 tarball item: container-src/utils (0 bytes) [container.docker.engine] bytes=0L file=container-src/utils
2018-03-15T11:46:31.979482 tarball item: container-src/utils/__init__.py (15718 bytes) [container.docker.engine] bytes=15718 file=container-src/utils/__init__.py
2018-03-15T11:46:31.981115 tarball item: container-src/utils/_text.py (12304 bytes) [container.docker.engine] bytes=12304 file=container-src/utils/_text.py
2018-03-15T11:46:31.982767 tarball item: container-src/utils/galaxy.py (8139 bytes) [container.docker.engine] bytes=8139 file=container-src/utils/galaxy.py
2018-03-15T11:46:31.984797 tarball item: container-src/utils/loader.py (906 bytes) [container.docker.engine] bytes=906 file=container-src/utils/loader.py
2018-03-15T11:46:31.986688 tarball item: container-src/utils/logmux.py (1313 bytes) [container.docker.engine] bytes=1313 file=container-src/utils/logmux.py
2018-03-15T11:46:31.988585 tarball item: container-src/utils/ordereddict.py (678 bytes) [container.docker.engine] bytes=678 file=container-src/utils/ordereddict.py
2018-03-15T11:46:31.990473 tarball item: container-src/utils/temp.py (698 bytes) [container.docker.engine] bytes=698 file=container-src/utils/temp.py
2018-03-15T11:46:31.992358 tarball item: container-src/utils/visibility.py (3270 bytes) [container.docker.engine] bytes=3270 file=container-src/utils/visibility.py
2018-03-15T11:46:31.994220 tarball item: container-src/utils/__init__.pyc (15499 bytes) [container.docker.engine] bytes=15499 file=container-src/utils/__init__.pyc
2018-03-15T11:46:31.996066 tarball item: container-src/utils/visibility.pyc (4036 bytes) [container.docker.engine] bytes=4036 file=container-src/utils/visibility.pyc
2018-03-15T11:46:31.997864 tarball item: container-src/utils/_text.pyc (8769 bytes) [container.docker.engine] bytes=8769 file=container-src/utils/_text.pyc
2018-03-15T11:46:31.999675 tarball item: container-src/utils/temp.pyc (1322 bytes) [container.docker.engine] bytes=1322 file=container-src/utils/temp.pyc
2018-03-15T11:46:32.001474 tarball item: container-src/utils/ordereddict.pyc (888 bytes) [container.docker.engine] bytes=888 file=container-src/utils/ordereddict.pyc
2018-03-15T11:46:32.003280 tarball item: container-src/utils/loader.pyc (1152 bytes) [container.docker.engine] bytes=1152 file=container-src/utils/loader.pyc
2018-03-15T11:46:32.004980 tarball item: container-src/utils/logmux.pyc (2478 bytes) [container.docker.engine] bytes=2478 file=container-src/utils/logmux.pyc
2018-03-15T11:46:32.006723 tarball item: container-src/__init__.pyc (1229 bytes) [container.docker.engine] bytes=1229 file=container-src/__init__.pyc
2018-03-15T11:46:32.008447 tarball item: container-src/cli.pyc (18750 bytes) [container.docker.engine] bytes=18750 file=container-src/cli.pyc
2018-03-15T11:46:32.010144 tarball item: container-src/exceptions.pyc (5825 bytes) [container.docker.engine] bytes=5825 file=container-src/exceptions.pyc
2018-03-15T11:46:32.011855 tarball item: container-src/core.pyc (32413 bytes) [container.docker.engine] bytes=32413 file=container-src/core.pyc
2018-03-15T11:46:32.013580 tarball item: container-src/config.pyc (17509 bytes) [container.docker.engine] bytes=17509 file=container-src/config.pyc
2018-03-15T11:46:32.015232 tarball item: container-src/engine.pyc (11318 bytes) [container.docker.engine] bytes=11318 file=container-src/engine.pyc
2018-03-15T11:46:32.016851 tarball item: container-src/conductor-build/setup.py (4638 bytes) [container.docker.engine] bytes=4638 file=container-src/conductor-build/setup.py
2018-03-15T11:46:32.018514 tarball item: container-src/conductor-build/conductor-requirements.txt (255 bytes) [container.docker.engine] bytes=255 file=container-src/conductor-build/conductor-requirements.txt
2018-03-15T11:46:32.020165 tarball item: container-src/conductor-build/conductor-requirements.yml (60 bytes) [container.docker.engine] bytes=60 file=container-src/conductor-build/conductor-requirements.yml
2018-03-15T11:46:32.021841 tarball item: Dockerfile (1140 bytes) [container.docker.engine] bytes=1140 file=Dockerfile
2018-03-15T11:46:32.023497 tarball item: build-src/ansible.cfg (144 bytes) [container.docker.engine] bytes=144 file=build-src/ansible.cfg
2018-03-15T11:46:32.025131 tarball item: build-src/ansible-requirements.txt (130 bytes) [container.docker.engine] bytes=130 file=build-src/ansible-requirements.txt
2018-03-15T11:46:32.026785 tarball item: build-src/requirements.yml (341 bytes) [container.docker.engine] bytes=341 file=build-src/requirements.yml
2018-03-15T11:46:32.028447 tarball item: build-src/.touch (0 bytes) [container.docker.engine] bytes=0 file=build-src/.touch
2018-03-15T11:46:32.030071 tarball item: Dockerfile (385 bytes) [container.docker.engine] bytes=385 file=Dockerfile
2018-03-15T11:46:32.032644 Starting Docker build of Ansible Container Conductor image (please be patient)... [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=build_conductor_image caller_line=1124
Step 1 : FROM ansible/container-conductor-debian-stretch:0.9.3rc0
 ---> 904385132061
Step 2 : COPY /build-src /_ansible/build
 ---> ba5b3f356319
Removing intermediate container 1c751323f99a
Step 3 : RUN cp /_ansible/build/ansible.cfg /etc/ansible/ansible.cfg
 ---> Running in 80a07a012f42
 ---> a98c3cbdb86e
Removing intermediate container 80a07a012f42
Step 4 : VOLUME /usr
 ---> Running in 0e8707ff4873
 ---> edfde5726068
Removing intermediate container 0e8707ff4873
Step 5 : VOLUME /lib
 ---> Running in 3944c98a116f
 ---> 9a3a46d0c6cd
Removing intermediate container 3944c98a116f
Step 6 : RUN apt-get update -y &&     apt-get install default-libmysqlclient-dev python-mysqldb -y &&     pip install MySQL-python
 ---> Running in 29d471dd0355
Get:1 http://security.debian.org stretch/updates InRelease [63.0 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:4 http://deb.debian.org/debian stretch Release
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [429 kB]
Fetched 583 kB in 0s (912 kB/s)
Reading package lists...

Reading package lists...

Building dependency tree...

Reading state information...

The following additional packages will be installed:
  libmariadbclient-dev libmariadbclient-dev-compat libmariadbclient18
  mysql-common zlib1g-dev
Suggested packages:
  default-mysql-server | virtual-mysql-server python-egenix-mxdatetime
  python-mysqldb-dbg
The following NEW packages will be installed:
  default-libmysqlclient-dev libmariadbclient-dev libmariadbclient-dev-compat
  libmariadbclient18 mysql-common python-mysqldb zlib1g-dev
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2136 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 mysql-common all 5.8+1.0.2 [5608 B]
Get:2 http://deb.debian.org/debian stretch/main amd64 libmariadbclient18 amd64 10.1.26-0+deb9u1 [779 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-5 [205 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libmariadbclient-dev amd64 10.1.26-0+deb9u1 [1065 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 libmariadbclient-dev-compat amd64 10.1.26-0+deb9u1 [26.4 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 default-libmysqlclient-dev amd64 1.0.2 [3272 B]
Get:7 http://deb.debian.org/debian stretch/main amd64 python-mysqldb amd64 1.3.7-1.1 [52.1 kB]
debconf: delaying package configuration, since apt-utils is not installed

Fetched 2136 kB in 0s (7121 kB/s)
Selecting previously unselected package mysql-common.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 22715 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_5.8+1.0.2_all.deb ...
Unpacking mysql-common (5.8+1.0.2) ...
Selecting previously unselected package libmariadbclient18:amd64.
Preparing to unpack .../1-libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...
Unpacking libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../2-zlib1g-dev_1%3a1.2.8.dfsg-5_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-5) ...
Selecting previously unselected package libmariadbclient-dev.
Preparing to unpack .../3-libmariadbclient-dev_10.1.26-0+deb9u1_amd64.deb ...
Unpacking libmariadbclient-dev (10.1.26-0+deb9u1) ...
Selecting previously unselected package libmariadbclient-dev-compat:amd64.
Preparing to unpack .../4-libmariadbclient-dev-compat_10.1.26-0+deb9u1_amd64.deb ...
Unpacking libmariadbclient-dev-compat:amd64 (10.1.26-0+deb9u1) ...
Selecting previously unselected package default-libmysqlclient-dev:amd64.
Preparing to unpack .../5-default-libmysqlclient-dev_1.0.2_amd64.deb ...
Unpacking default-libmysqlclient-dev:amd64 (1.0.2) ...
Selecting previously unselected package python-mysqldb.
Preparing to unpack .../6-python-mysqldb_1.3.7-1.1_amd64.deb ...
Unpacking python-mysqldb (1.3.7-1.1) ...
Setting up mysql-common (5.8+1.0.2) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up python-mysqldb (1.3.7-1.1) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-5) ...
Setting up libmariadbclient-dev (10.1.26-0+deb9u1) ...
Setting up libmariadbclient-dev-compat:amd64 (10.1.26-0+deb9u1) ...
Setting up default-libmysqlclient-dev:amd64 (1.0.2) ...
Collecting MySQL-python
  Downloading MySQL-python-1.2.5.zip (108kB)
Building wheels for collected packages: MySQL-python
  Running setup.py bdist_wheel for MySQL-python: started
  Running setup.py bdist_wheel for MySQL-python: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/38/a3/89/ec87e092cfb38450fc91a62562055231deb0049a029054dc62
Successfully built MySQL-python
Installing collected packages: MySQL-python
Successfully installed MySQL-python-1.2.5
 ---> 2f45d6caadad
Removing intermediate container 29d471dd0355
Successfully built 2f45d6caadad
2018-03-15T11:48:00.768408 Cleaning up temporary directory [container.utils.temp] caller_file=/root/ansible-container/container/utils/temp.py caller_func=__exit__ caller_line=22 path=/tmp/tmpFWqT0z
2018-03-15T11:48:00.782362 Config settings                [container.core] caller_file=/root/ansible-container/container/core.py caller_func=hostcmd_build caller_line=194 conf=<class 'container.docker.config.AnsibleContainerConfig'> config=<container.docker.config.AnsibleContainerConfig object at 0x190b790> rawsettings={"project_name": "mysql", "conductor": {"base": "debian:9", "roles_path": ["roles/"]}, "pwd": "/root/ac/mysql"} settings={"project_name": "mysql", "conductor": {"base": "debian:9", "roles_path": ["roles/"]}, "pwd": "/root/ac/mysql"}
2018-03-15T11:48:00.791351 Call: Engine.run_conductor     [container.docker.engine] args=('build', {'services': ordereddict([('mydb', ordereddict([('from', 'debian:9'), ('roles', [ordereddict([('role', 'mysql'), ('db_name', 'test')])]), ('command', ['/usr/bin/dumb-init', '/usr/bin/mysqld_safe'])]))]), 'version': '2', 'defaults': ordereddict([('SSL_ROOT_DIR', '/etc/ssl')]), 'settings': ordereddict([('project_name', 'mysql'), ('conductor', ordereddict([('base', 'debian:9'), ('roles_path', ['roles/'])])), ('pwd', '/root/ac/mysql')])}, '/root/ac/mysql', {'with_volumes': [], 'config_vars': ordereddict([('SSL_ROOT_DIR', '/etc/ssl')]), 'conductor_cache': True, 'local_python': False, 'with_variables': [], 'selinux': True, 'purge_last': True, 'cache': False, 'volume_driver': None, 'devel': False, 'src_mount_path': None, 'roles_path': [], 'subcommand': 'build', 'ansible_options': u'', 'flatten': False, 'container_cache': True, 'debug': True, 'services_to_build': None, 'save_conductor_container': False}) caller_file=/root/ansible-container/container/docker/engine.py caller_func=Engine.run_conductor caller_line=23 kwargs={}
2018-03-15T11:48:00.817117 Docker run:                    [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=run_conductor caller_line=449 image=u'sha256:2f45d6caadad72352d4fcf5ecade1b6eb8877da19e8e60b6b55b91d64602787f' params={'name': u'mysql_conductor', 'cap_add': ['SYS_ADMIN'], 'environment': {'DOCKER_HOST': 'unix:///var/run/docker.sock', 'ANSIBLE_ROLES_PATH': '/root/ac/mysql/roles:/src/roles:/etc/ansible/roles'}, 'working_dir': '/src', 'command': ['conductor', 'build', '--project-name', 'mysql', '--engine', 'docker', '--params', u'eyJ3aXRoX3ZvbHVtZXMiOiBbXSwgImNvbmZpZ192YXJzIjogeyJTU0xfUk9PVF9ESVIiOiAiL2V0Yy9zc2wifSwgImNvbmR1Y3Rvcl9jYWNoZSI6IHRydWUsICJsb2NhbF9weXRob24iOiBmYWxzZSwgIndpdGhfdmFyaWFibGVzIjogW10sICJzZWxpbnV4IjogdHJ1ZSwgInB1cmdlX2xhc3QiOiB0cnVlLCAiY2FjaGUiOiBmYWxzZSwgInZvbHVtZV9kcml2ZXIiOiBudWxsLCAiZGV2ZWwiOiBmYWxzZSwgInNyY19tb3VudF9wYXRoIjogbnVsbCwgInJvbGVzX3BhdGgiOiBbXSwgInN1YmNvbW1hbmQiOiAiYnVpbGQiLCAiYW5zaWJsZV9vcHRpb25zIjogIiIsICJmbGF0dGVuIjogZmFsc2UsICJjb250YWluZXJfY2FjaGUiOiB0cnVlLCAiZGVidWciOiB0cnVlLCAic2VydmljZXNfdG9fYnVpbGQiOiBudWxsLCAic2F2ZV9jb25kdWN0b3JfY29udGFpbmVyIjogZmFsc2V9', '--config', u'eyJzZXJ2aWNlcyI6IFtbIm15ZGIiLCB7ImZyb20iOiAiZGViaWFuOjkiLCAicm9sZXMiOiBbeyJyb2xlIjogIm15c3FsIiwgImRiX25hbWUiOiAidGVzdCJ9XSwgImNvbW1hbmQiOiBbIi91c3IvYmluL2R1bWItaW5pdCIsICIvdXNyL2Jpbi9teXNxbGRfc2FmZSJdfV1dLCAidmVyc2lvbiI6ICIyIiwgImRlZmF1bHRzIjogW1siU1NMX1JPT1RfRElSIiwgIi9ldGMvc3NsIl1dLCAic2V0dGluZ3MiOiBbWyJwcm9qZWN0X25hbWUiLCAibXlzcWwiXSwgWyJjb25kdWN0b3IiLCB7ImJhc2UiOiAiZGViaWFuOjkiLCAicm9sZXNfcGF0aCI6IFsicm9sZXMvIl19XSwgWyJwd2QiLCAiL3Jvb3QvYWMvbXlzcWwiXV19', '--encoding', 'b64json'], 'user': 'root', 'volumes': {'/var/run/docker.sock': {'bind': '/var/run/docker.sock', 'mode': 'rw'}, '/root/ac/mysql': {'bind': '/_src', 'mode': 'ro'}, 'mysql_secrets': {'bind': '/docker/secrets', 'mode': 'rw'}, '/root/.docker/config.json': {'bind': '/root/.docker/config.json', 'mode': 'rw'}, '/root/ac/mysql/roles': {'bind': '/root/ac/mysql/roles', 'mode': 'ro'}}, 'detach': True, 'privileged': True}
Parsing conductor CLI args.
2018-03-15T10:48:18.885134 Copying build context into Conductor container. [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=401
2018-03-15T10:48:18.940398 sending incremental file list
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.960692 ./
                            [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.963908 .gitignore
                    [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.966801 ansible-requirements.txt
      [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.969716 ansible.cfg
                   [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.972660 container.yml
                 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.979927 meta.yml
                      [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.989946 requirements.yml
              [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.996510 roles/
                        [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:18.999391 roles/mysql/
                  [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.001964 roles/mysql/README.md
         [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.004581 roles/mysql/defaults/
         [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.007311 roles/mysql/defaults/main.yml
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.010000 roles/mysql/handlers/
         [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.012638 roles/mysql/handlers/main.yml
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.015082 roles/mysql/meta/
             [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.018909 roles/mysql/meta/main.yml
     [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.021465 roles/mysql/tasks/
            [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.023988 roles/mysql/tasks/databases.yml
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.026441 roles/mysql/tasks/main.yml
    [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.028998 roles/mysql/tasks/packages.yml
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.031458 roles/mysql/tests/
            [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.033720 roles/mysql/tests/inventory
   [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.036131 roles/mysql/tests/test.yml
    [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.038525 roles/mysql/vars/
             [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.058296 roles/mysql/vars/main.yml
     [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.068793
                              [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.071065 sent 7,113 bytes  received 363 bytes  4,984.00 bytes/sec
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.078045 total size is 5,716  speedup is 0.76
 [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=405
2018-03-15T10:48:19.085537 Processing defaults section... [container.config] caller_file=/_ansible/container/config.py caller_func=_process_defaults caller_line=387
2018-03-15T10:48:19.088033 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=396 section=volumes
2018-03-15T10:48:19.090885 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=396 section=registries
2018-03-15T10:48:19.093668 Processing section...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_top_level_sections caller_line=396 section=secrets
2018-03-15T10:48:19.096548 Processing service...          [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=402 service=u'mydb' service_data={u'command': [u'/usr/bin/dumb-init', u'/usr/bin/mysqld_safe'], u'from': u'debian:9', u'roles': [{u'db_name': u'test', u'role': u'mysql'}]}
2018-03-15T10:48:19.103626 Rendering service keys from defaults [container.config] caller_file=/_ansible/container/config.py caller_func=_process_services caller_line=426 defaults={"SSL_ROOT_DIR": "/etc/ssl", "db_name": "test"} service=u'mydb'
2018-03-15T10:48:19.111423 Starting Ansible Container Conductor: build [container.cli] caller_file=/_ansible/container/cli.py caller_func=conductor_commandline caller_line=415 services={"mydb": {"command": ["/usr/bin/dumb-init", "/usr/bin/mysqld_safe"], "from": "debian:9", "roles": [{"db_name": "test", "role": "mysql"}], "defaults": {"SSL_ROOT_DIR": "/etc/ssl", "db_name": "test"}}}
2018-03-15T10:48:19.122689 Loading engine capabilities    [container.utils.loader] caller_file=/_ansible/container/utils/loader.py caller_func=load_engine caller_line=14 capabilities=['BUILD'] engine=docker
2018-03-15T10:48:19.156504 2018-03-15T10:48:19.156504 Docker™ daemon integration engine loaded. Build starting. [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=779 project=mysql
2018-03-15T10:48:19.159708 Services to build              [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=781 services_to_build=[u'mydb']
2018-03-15T10:48:19.162530 Building service...            [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=786 project=mysql service=u'mydb'
2018-03-15T10:48:19.178893 Setting Docker client timeout to 60 [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=get_timeout caller_line=124
2018-03-15T10:48:19.223948 Base fingerprint hash = 7ecba3f9845c4f9861210d5c3aabfceac3ddeba20968cd53da588705d143431b [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=795 hash=7ecba3f9845c4f9861210d5c3aabfceac3ddeba20968cd53da588705d143431b service=u'mydb'
2018-03-15T10:48:19.236488 Could not find container for mysql_mydb [container.docker.engine] all_containers=[u'mysql_conductor'] caller_file=/_ansible/container/docker/engine.py caller_func=get_container_id_by_name caller_line=570
2018-03-15T10:48:19.253703 Playbook generated: [{'hosts': u'mydb', 'roles': [ordereddict([('db_name', 'test'), ('role', 'mysql')])], 'vars': {u'SSL_ROOT_DIR': u'/etc/ssl'}}] [container.utils] caller_file=/_ansible/container/utils/__init__.py caller_func=generate_playbook_for_role caller_line=252
2018-03-15T10:48:19.423121 Fingerprint for this layer: 4b2be018b86faaa987c44f4a69086146ad20f4c632d0c8b270352ede81c563c5 [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=813 parent_fingerprint=7ecba3f9845c4f9861210d5c3aabfceac3ddeba20968cd53da588705d143431b parent_image_id=u'sha256:2b98c9851a37e18356abe407922726dc35c370f7cee76f435f94ee92950b4493' role=mysql service=u'mydb'
2018-03-15T10:48:19.427399 Applying role mysql on image sha256:2b98c9851a37e18356abe407922726dc35c370f7cee76f435f94ee92950b4493 as container mysql_mydb-7ecba3f9-mysql [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=870 service=u'mydb'
2018-03-15T10:48:19.544775 Detected architecture x86_64-linux-gnu [container.core] architecture=x86_64-linux-gnu caller_file=/_ansible/container/core.py caller_func=_run_intermediate_build_container caller_line=737 service=u'mydb'
2018-03-15T10:48:19.558290 Could not find container mysql_mydb-7ecba3f9-mysql to stop [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=stop_container caller_line=529 force=False id=u'mysql_mydb-7ecba3f9-mysql'
2018-03-15T10:48:19.565737 Call: Engine.run_container     [container.docker.engine] args=(u'sha256:2b98c9851a37e18356abe407922726dc35c370f7cee76f435f94ee92950b4493', u'mydb') caller_file=/_ansible/container/docker/engine.py caller_func=Engine.run_container caller_line=14 kwargs={'name': u'mysql_mydb-7ecba3f9-mysql', 'environment': {'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin', 'CPATH': '/usr/include:/usr/local/include:/_usr/include:/_usr/local/include', 'ANSIBLE_CONTAINER': 1, 'LD_LIBRARY_PATH': '/usr/lib:/usr/lib64:/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_lib'}, 'working_dir': '/', 'command': 'sh -c "while true; do sleep 1; done"', 'user': 'root', 'volumes': {u'61180d5c01721520e68cd2862e8bf572d572ed01e7162554808d7b279356393c': {'bind': '/_usr', 'mode': 'ro'}, u'c52d1fdf768bfacdc5ae0d597d2802155c34f60d1523571c8665e003b7cd13b3': {'bind': '/_lib', 'mode': 'ro'}}, 'entrypoint': [], 'privileged': True}
2018-03-15T10:48:19.569845 Removing keys                  [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_kwargs_for_service caller_line=246 keys=[u'from', u'roles', 'defaults', 'links']
2018-03-15T10:48:19.572893 Running container in docker    [container.docker.engine] caller_file=/_ansible/container/docker/engine.py caller_func=run_container caller_line=270 image=u'sha256:2b98c9851a37e18356abe407922726dc35c370f7cee76f435f94ee92950b4493' params={"command": "sh -c \"while true; do sleep 1; done\"", "name": "mysql_mydb-7ecba3f9-mysql", "environment": {"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/_usr/sbin:/_usr/bin:/_usr/local/sbin:/_usr/local/bin", "CPATH": "/usr/include:/usr/local/include:/_usr/include:/_usr/local/include", "ANSIBLE_CONTAINER": 1, "LD_LIBRARY_PATH": "/usr/lib:/usr/lib64:/_usr/lib:/_usr/lib64:/_usr/local/lib:/_usr/lib/x86_64-linux-gnu:/_usr/local/lib/x86_64-linux-gnu:/_lib/x86_64-linux-gnu:/_lib"}, "working_dir": "/", "user": "root", "volumes": {"61180d5c01721520e68cd2862e8bf572d572ed01e7162554808d7b279356393c": {"bind": "/_usr", "mode": "ro"}, "c52d1fdf768bfacdc5ae0d597d2802155c34f60d1523571c8665e003b7cd13b3": {"bind": "/_lib", "mode": "ro"}}, "entrypoint": [], "privileged": true}
2018-03-15T10:48:20.151572 Container confirmed running    [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=880 id=u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a'
2018-03-15T10:48:20.154742 Playbook generated: [{'hosts': u'mydb', 'roles': [ordereddict([('db_name', 'test'), ('role', 'mysql')])], 'vars': {u'SSL_ROOT_DIR': u'/etc/ssl'}}] [container.utils] caller_file=/_ansible/container/utils/__init__.py caller_func=generate_playbook_for_role caller_line=252
2018-03-15T10:48:20.160973 writing playbook to /src/tmp_1KRQh.yml [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=573
2018-03-15T10:48:20.165378 playbook                       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=574 playbook=[{'hosts': u'mydb', 'roles': [ordereddict([('db_name', 'test'), ('role', 'mysql')])], 'vars': {u'SSL_ROOT_DIR': u'/etc/ssl'}}]
2018-03-15T10:48:20.171617 Running Ansible Playbook       [container.core] caller_file=/_ansible/container/core.py caller_func=run_playbook caller_line=631 command=ansible-playbook -vvvv  -i /src/hosts-WSnaBc -c docker  /src/tmp_1KRQh.yml  cwd=/src
ansible-playbook 2.4.3.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/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
Using /src/ansible.cfg as config file
setting up inventory plugins
Parsed /src/hosts-WSnaBc inventory source with ini plugin
statically imported: /src/roles/mysql/tasks/packages.yml
statically imported: /src/roles/mysql/tasks/databases.yml
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: tmp_1KRQh.yml ********************************************************
1 plays in /src/tmp_1KRQh.yml
PLAY [mydb] ********************************************************************
TASK [Gathering Facts] *********************************************************
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> ESTABLISH DOCKER CONNECTION FOR USER: root
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490 `" && echo ansible-tmp-1521110902.21-110862517032490="` echo /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490 `" ) && sleep 0\'']
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> PUT /tmp/tmpmIzHRe TO /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490/setup.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490/ /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490/setup.py && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'/_usr/bin/python /root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1521110902.21-110862517032490/" > /dev/null 2>&1 && sleep 0\'']
ok: [mydb]
META: ran handlers
TASK [mysql : install packages] ************************************************
task path: /src/roles/mysql/tasks/packages.yml:1
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> ESTABLISH DOCKER CONNECTION FOR USER: root
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547 `" && echo ansible-tmp-1521110904.35-90205808276547="` echo /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547 `" ) && sleep 0\'']
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> PUT /tmp/tmp1W9MED TO /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547/apt.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547/ /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547/apt.py && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'/_usr/bin/python /root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547/apt.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1521110904.35-90205808276547/" > /dev/null 2>&1 && sleep 0\'']
changed: [mydb] => (item=[u'mysql-server', u'python-mysqldb', u'dumb-init']) => {
    "cache_update_time": 1521110907,
    "cache_updated": true,
    "changed": true,
    "diff": {},
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false,
            "autoclean": false,
            "autoremove": false,
            "cache_valid_time": 0,
            "deb": null,
            "default_release": null,
            "dpkg_options": "force-confdef,force-confold",
            "force": false,
            "force_apt_get": false,
            "install_recommends": null,
            "name": [
                "mysql-server",
                "python-mysqldb",
                "dumb-init"
            ],
            "only_upgrade": false,
            "package": [
                "mysql-server",
                "python-mysqldb",
                "dumb-init"
            ],
            "purge": false,
            "state": "latest",
            "update_cache": true,
            "upgrade": null
        }
    },
    "item": [
        "mysql-server",
        "python-mysqldb",
        "dumb-init"
    ],
    "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n",
    "stderr_lines": [
        "debconf: delaying package configuration, since apt-utils is not installed"
    ],
    "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n  bzip2 default-mysql-server file galera-3 gawk libaio1 libcgi-fast-perl\n  libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libexpat1\n  libfcgi-perl libffi6 libgdbm3 libgmp10 libgpm2 libhtml-parser-perl\n  libhtml-tagset-perl libhtml-template-perl libhttp-date-perl\n  libhttp-message-perl libio-html-perl libjemalloc1 liblwp-mediatypes-perl\n  libmagic-mgc libmagic1 libmariadbclient18 libmpfr4 libncurses5 libperl5.24\n  libpopt0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib\n  libreadline5 libreadline7 libsigsegv2 libsqlite3-0 libssl1.1\n  libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof\n  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common\n  mariadb-server-10.1 mariadb-server-core-10.1 mime-support mysql-common perl\n  perl-modules-5.24 psmisc python python-minimal python2.7 python2.7-minimal\n  readline-common rename rsync socat tcpd xz-utils\nSuggested packages:\n  bzip2-doc gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl\n  libsql-statement-perl gpm libdata-dump-perl libipc-sharedcache-perl\n  libwww-perl mailx mariadb-test netcat-openbsd tinyca perl-doc\n  libterm-readline-gnu-perl | libterm-readline-perl-perl make python-doc\n  python-tk python-egenix-mxdatetime python-mysqldb-dbg python2.7-doc binutils\n  binfmt-support readline-doc openssh-client openssh-server\nThe following NEW packages will be installed:\n  bzip2 default-mysql-server dumb-init file galera-3 gawk libaio1\n  libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl\n  libencode-locale-perl libexpat1 libfcgi-perl libffi6 libgdbm3 libgmp10\n  libgpm2 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl\n  libhttp-date-perl libhttp-message-perl libio-html-perl libjemalloc1\n  liblwp-mediatypes-perl libmagic-mgc libmagic1 libmariadbclient18 libmpfr4\n  libncurses5 libperl5.24 libpopt0 libpython-stdlib libpython2.7-minimal\n  libpython2.7-stdlib libreadline5 libreadline7 libsigsegv2 libsqlite3-0\n  libssl1.1 libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof\n  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common\n  mariadb-server-10.1 mariadb-server-core-10.1 mime-support mysql-common\n  mysql-server perl perl-modules-5.24 psmisc python python-minimal\n  python-mysqldb python2.7 python2.7-minimal readline-common rename rsync\n  socat tcpd xz-utils\n0 upgraded, 68 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 41.6 MB of archives.\nAfter this operation, 265 MB of additional disk space will be used.\nGet:1 http://deb.debian.org/debian stretch/main amd64 perl-modules-5.24 all 5.24.1-3+deb9u2 [2724 kB]\nGet:2 http://deb.debian.org/debian stretch/main amd64 libgdbm3 amd64 1.8.3-14 [30.0 kB]\nGet:3 http://deb.debian.org/debian stretch/main amd64 libperl5.24 amd64 5.24.1-3+deb9u2 [3538 kB]\nGet:4 http://deb.debian.org/debian stretch/main amd64 perl amd64 5.24.1-3+deb9u2 [218 kB]\nGet:5 http://deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u2 [389 kB]\nGet:6 http://deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u2 [1382 kB]\nGet:7 http://deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]\nGet:8 http://deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]\nGet:9 http://deb.debian.org/debian stretch/main amd64 libexpat1 amd64 2.2.0-2+deb9u1 [83.4 kB]\nGet:10 http://deb.debian.org/debian stretch/main amd64 libffi6 amd64 3.2.1-6 [20.4 kB]\nGet:11 http://deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]\nGet:12 http://deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]\nGet:13 http://deb.debian.org/debian stretch/main amd64 libsqlite3-0 amd64 3.16.2-5+deb9u1 [572 kB]\nGet:14 http://deb.debian.org/debian stretch/main amd64 libssl1.1 amd64 1.1.0f-3+deb9u1 [1342 kB]\nGet:15 http://deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u2 [1896 kB]\nGet:16 http://deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u2 [285 kB]\nGet:17 http://deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]\nGet:18 http://deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]\nGet:19 http://deb.debian.org/debian stretch/main amd64 libgmp10 amd64 2:6.1.2+dfsg-1 [253 kB]\nGet:20 http://deb.debian.org/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]\nGet:21 http://deb.debian.org/debian stretch/main amd64 libsigsegv2 amd64 2.10-5 [28.9 kB]\nGet:22 http://deb.debian.org/debian stretch/main amd64 gawk amd64 1:4.1.4+dfsg-1 [571 kB]\nGet:23 http://deb.debian.org/debian stretch/main amd64 mysql-common all 5.8+1.0.2 [5608 B]\nGet:24 http://deb.debian.org/debian stretch/main amd64 mariadb-common all 10.1.26-0+deb9u1 [27.3 kB]\nGet:25 http://deb.debian.org/debian stretch/main amd64 galera-3 amd64 25.3.19-2 [955 kB]\nGet:26 http://deb.debian.org/debian stretch/main amd64 libdbi-perl amd64 1.636-1+b1 [766 kB]\nGet:27 http://deb.debian.org/debian stretch/main amd64 lsof amd64 4.89+dfsg-0.1 [313 kB]\nGet:28 http://deb.debian.org/debian stretch/main amd64 libaio1 amd64 0.3.110-3 [9412 B]\nGet:29 http://deb.debian.org/debian stretch/main amd64 libncurses5 amd64 6.0+20161126-1+deb9u2 [93.4 kB]\nGet:30 http://deb.debian.org/debian stretch/main amd64 libreadline5 amd64 5.2+dfsg-3+b1 [119 kB]\nGet:31 http://deb.debian.org/debian stretch/main amd64 mariadb-client-core-10.1 amd64 10.1.26-0+deb9u1 [5042 kB]\nGet:32 http://deb.debian.org/debian stretch/main amd64 libjemalloc1 amd64 3.6.0-9.1 [89.8 kB]\nGet:33 http://deb.debian.org/debian stretch/main amd64 mariadb-client-10.1 amd64 10.1.26-0+deb9u1 [5841 kB]\nGet:34 http://deb.debian.org/debian stretch/main amd64 mariadb-server-core-10.1 amd64 10.1.26-0+deb9u1 [5177 kB]\nGet:35 http://deb.debian.org/debian stretch/main amd64 psmisc amd64 22.21-2.1+b2 [123 kB]\nGet:36 http://deb.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10+b2 [49.4 kB]\nGet:37 http://deb.debian.org/debian stretch/main amd64 rsync amd64 3.1.2-1+deb9u1 [393 kB]\nGet:38 http://deb.debian.org/debian stretch/main amd64 libwrap0 amd64 7.6.q-26 [58.2 kB]\nGet:39 http://deb.debian.org/debian stretch/main amd64 socat amd64 1.7.3.1-2+deb9u1 [353 kB]\nGet:40 http://deb.debian.org/debian stretch/main amd64 mariadb-server-10.1 amd64 10.1.26-0+deb9u1 [5333 kB]\nGet:41 http://deb.debian.org/debian stretch/main amd64 bzip2 amd64 1.0.6-8.1 [47.5 kB]\nGet:42 http://deb.debian.org/debian stretch/main amd64 libmagic-mgc amd64 1:5.30-1+deb9u1 [222 kB]\nGet:43 http://deb.debian.org/debian stretch/main amd64 libmagic1 amd64 1:5.30-1+deb9u1 [111 kB]\nGet:44 http://deb.debian.org/debian stretch/main amd64 file amd64 1:5.30-1+deb9u1 [64.1 kB]\nGet:45 http://deb.debian.org/debian stretch/main amd64 libgpm2 amd64 1.20.4-6.2+b1 [34.2 kB]\nGet:46 http://deb.debian.org/debian stretch/main amd64 xz-utils amd64 5.2.2-1.2+b1 [266 kB]\nGet:47 http://deb.debian.org/debian stretch/main amd64 default-mysql-server all 1.0.2 [3048 B]\nGet:48 http://deb.debian.org/debian stretch/main amd64 libhtml-tagset-perl all 3.20-3 [12.7 kB]\nGet:49 http://deb.debian.org/debian stretch/main amd64 liburi-perl all 1.71-1 [88.6 kB]\nGet:50 http://deb.debian.org/debian stretch/main amd64 libhtml-parser-perl amd64 3.72-3 [104 kB]\nGet:51 http://deb.debian.org/debian stretch/main amd64 libcgi-pm-perl all 4.35-1 [222 kB]\nGet:52 http://deb.debian.org/debian stretch/main amd64 libfcgi-perl amd64 0.78-2 [38.2 kB]\nGet:53 http://deb.debian.org/debian stretch/main amd64 libcgi-fast-perl all 1:2.12-1 [11.2 kB]\nGet:54 http://deb.debian.org/debian stretch/main amd64 libmariadbclient18 amd64 10.1.26-0+deb9u1 [779 kB]\nGet:55 http://deb.debian.org/debian stretch/main amd64 libdbd-mysql-perl amd64 4.041-2 [114 kB]\nGet:56 http://deb.debian.org/debian stretch/main amd64 libencode-locale-perl all 1.05-1 [13.7 kB]\nGet:57 http://deb.debian.org/debian stretch/main amd64 libhtml-template-perl all 2.95-2 [67.1 kB]\nGet:58 http://deb.debian.org/debian stretch/main amd64 libtimedate-perl all 2.3000-2 [42.2 kB]\nGet:59 http://deb.debian.org/debian stretch/main amd64 libhttp-date-perl all 6.02-1 [10.7 kB]\nGet:60 http://deb.debian.org/debian stretch/main amd64 libio-html-perl all 1.001-1 [17.6 kB]\nGet:61 http://deb.debian.org/debian stretch/main amd64 liblwp-mediatypes-perl all 6.02-1 [22.1 kB]\nGet:62 http://deb.debian.org/debian stretch/main amd64 libhttp-message-perl all 6.11-1 [75.9 kB]\nGet:63 http://deb.debian.org/debian stretch/main amd64 libterm-readkey-perl amd64 2.37-1 [27.2 kB]\nGet:64 http://deb.debian.org/debian stretch/main amd64 mysql-server amd64 5.5.9999+default [1706 B]\nGet:65 http://deb.debian.org/debian stretch/main amd64 python-mysqldb amd64 1.3.7-1.1 [52.1 kB]\nGet:66 http://deb.debian.org/debian stretch/main amd64 rename all 0.20-4 [12.5 kB]\nGet:67 http://deb.debian.org/debian stretch/main amd64 tcpd amd64 7.6.q-26 [23.3 kB]\nGet:68 http://deb.debian.org/debian stretch/main amd64 dumb-init amd64 1.2.0-1 [12.1 kB]\nFetched 41.6 MB in 7s (5673 kB/s)\nSelecting previously unselected package perl-modules-5.24.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 6487 files and directories
 currently installed.)\r\nPreparing to unpack .../00-perl-modules-5.24_5.24.1-3+deb9u2_all.deb ...\r\nUnpacking perl-modules-5.24 (5.24.1-3+deb9u2) ...\r\nSelecting previously unselected package libgdbm3:amd64.\r\nPreparing to unpack .../01-libgdbm3_1.8.3-14_amd64.deb ...\r\nUnpacking libgdbm3:amd64 (1.8.3-14) ...\r\nSelecting previously unselected package libperl5.24:amd64.\r\nPreparing to unpack .../02-libperl5.24_5.24.1-3+deb9u2_amd64.deb ...\r\nUnpacking libperl5.24:amd64 (5.24.1-3+deb9u2) ...\r\nSelecting previously unselected package perl.\r\nPreparing to unpack .../03-perl_5.24.1-3+deb9u2_amd64.deb ...\r\nUnpacking perl (5.24.1-3+deb9u2) ...\r\nSelecting previously unselected package libpython2.7-minimal:amd64.\r\nPreparing to unpack .../04-libpython2.7-minimal_2.7.13-2+deb9u2_amd64.deb ...\r\nUnpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u2) ...\r\nSelecting previously unselected package python2.7-minimal.\r\nPreparing to unpack .../05-python2.7-minimal_2.7.13-2+deb9u2_amd64.deb ...\r\nUnpacking python2.7-minimal (2.7.13-2+deb9u2) ...\r\nSelecting previously unselected package python-minimal.\r\nPreparing to unpack .../06-python-minimal_2.7.13-2_amd64.deb ...\r\nUnpacking python-minimal (2.7.13-2) ...\r\nSelecting previously unselected package mime-support.\r\nPreparing to unpack .../07-mime-support_3.60_all.deb ...\r\nUnpacking mime-support (3.60) ...\r\nSelecting previously unselected package libexpat1:amd64.\r\nPreparing to unpack .../08-libexpat1_2.2.0-2+deb9u1_amd64.deb ...\r\nUnpacking libexpat1:amd64 (2.2.0-2+deb9u1) ...\r\nSelecting previously unselected package libffi6:amd64.\r\nPreparing to unpack .../09-libffi6_3.2.1-6_amd64.deb ...\r\nUnpacking libffi6:amd64 (3.2.1-6) ...\r\nSelecting previously unselected package readline-common.\r\nPreparing to unpack .../10-readline-common_7.0-3_all.deb ...\r\nUnpacking readline-common (7.0-3) ...\r\nSelecting previously unselected package libreadline7:amd64.\r\nPreparing to unpack .../11-libreadline7_7.0-3_amd64.deb ...\r\nUnpacking libreadline7:amd64 (7.0-3) ...\r\nSelecting previously unselected package libsqlite3-0:amd64.\r\nPreparing to unpack .../12-libsqlite3-0_3.16.2-5+deb9u1_amd64.deb ...\r\nUnpacking libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...\r\nSelecting previously unselected package libssl1.1:amd64.\r\nPreparing to unpack .../13-libssl1.1_1.1.0f-3+deb9u1_amd64.deb ...\r\nUnpacking libssl1.1:amd64 (1.1.0f-3+deb9u1) ...\r\nSelecting previously unselected package libpython2.7-stdlib:amd64.\r\nPreparing to unpack .../14-libpython2.7-stdlib_2.7.13-2+deb9u2_amd64.deb ...\r\nUnpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u2) ...\r\nSelecting previously unselected package python2.7.\r\nPreparing to unpack .../15-python2.7_2.7.13-2+deb9u2_amd64.deb ...\r\nUnpacking python2.7 (2.7.13-2+deb9u2) ...\r\nSelecting previously unselected package libpython-stdlib:amd64.\r\nPreparing to unpack .../16-libpython-stdlib_2.7.13-2_amd64.deb ...\r\nUnpacking libpython-stdlib:amd64 (2.7.13-2) ...\r\nSetting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u2) ...\r\nSetting up python2.7-minimal (2.7.13-2+deb9u2) ...\r\nSetting up python-minimal (2.7.13-2) ...\r\nSelecting previously unselected package python.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 9137 files and directories currently installed.)\r\nPreparing to unpack .../python_2.7.13-2_amd64.deb ...\r\nUnpacking python (2.7.13-2) ...\r\nSelecting previously unselected package libgmp10:amd64.\r\nPreparing to unpack .../libgmp10_2%3a6.1.2+dfsg-1_amd64.deb ...\r\nUnpacking libgmp10:amd64 (2:6.1.2+dfsg-1) ...\r\nSelecting previously unselected package libmpfr4:amd64.\r\nPreparing to unpack .../libmpfr4_3.1.5-1_amd64.deb ...\r\nUnpacking libmpfr4:amd64 (3.1.5-1) ...\r\nSelecting previously unselected package libsigsegv2:amd64.\r\nPreparing to unpack .../libsigsegv2_2.10-5_amd64.deb ...\r\nUnpacking libsigsegv2:amd64 (2.10-5) ...\r\nSetting up libgmp10:amd64 (2:6.1.2+dfsg-1) ...\r\nSetting up libmpfr4:amd64 (3.1.5-1) ...\r\nSetting up readline-common (7.0-3) ...\r\nSetting up libreadline7:amd64 (7.0-3) ...\r\nSetting up libsigsegv2:amd64 (2.10-5) ...\r\nSelecting previously unselected package gawk.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 9226 files and directories currently installed.)\r\nPreparing to unpack .../00-gawk_1%3a4.1.4+dfsg-1_amd64.deb ...\r\nUnpacking gawk (1:4.1.4+dfsg-1) ...\r\nSelecting previously unselected package mysql-common.\r\nPreparing to unpack .../01-mysql-common_5.8+1.0.2_all.deb ...\r\nUnpacking mysql-common (5.8+1.0.2) ...\r\nSelecting previously unselected package mariadb-common.\r\nPreparing to unpack .../02-mariadb-common_10.1.26-0+deb9u1_all.deb ...\r\nUnpacking mariadb-common (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package galera-3.\r\nPreparing to unpack .../03-galera-3_25.3.19-2_amd64.deb ...\r\nUnpacking galera-3 (25.3.19-2) ...\r\nSelecting previously unselected package libdbi-perl.\r\nPreparing to unpack .../04-libdbi-perl_1.636-1+b1_amd64.deb ...\r\nUnpacking libdbi-perl (1.636-1+b1) ...\r\nSelecting previously unselected package lsof.\r\nPreparing to unpack .../05-lsof_4.89+dfsg-0.1_amd64.deb ...\r\nUnpacking lsof (4.89+dfsg-0.1) ...\r\nSelecting previously unselected package libaio1:amd64.\r\nPreparing to unpack .../06-libaio1_0.3.110-3_amd64.deb ...\r\nUnpacking libaio1:amd64 (0.3.110-3) ...\r\nSelecting previously unselected
 package libncurses5:amd64.\r\nPreparing to unpack .../07-libncurses5_6.0+20161126-1+deb9u2_amd64.deb ...\r\nUnpacking libncurses5:amd64 (6.0+20161126-1+deb9u2) ...\r\nSelecting previously unselected package libreadline5:amd64.\r\nPreparing to unpack .../08-libreadline5_5.2+dfsg-3+b1_amd64.deb ...\r\nUnpacking libreadline5:amd64 (5.2+dfsg-3+b1) ...\r\nSelecting previously unselected package mariadb-client-core-10.1.\r\nPreparing to unpack .../09-mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...\r\nUnpacking mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package libjemalloc1.\r\nPreparing to unpack .../10-libjemalloc1_3.6.0-9.1_amd64.deb ...\r\nUnpacking libjemalloc1 (3.6.0-9.1) ...\r\nSelecting previously unselected package mariadb-client-10.1.\r\nPreparing to unpack .../11-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...\r\nUnpacking mariadb-client-10.1 (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package mariadb-server-core-10.1.\r\nPreparing to unpack .../12-mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...\r\nUnpacking mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package psmisc.\r\nPreparing to unpack .../13-psmisc_22.21-2.1+b2_amd64.deb ...\r\nUnpacking psmisc (22.21-2.1+b2) ...\r\nSelecting previously unselected package libpopt0:amd64.\r\nPreparing to unpack .../14-libpopt0_1.16-10+b2_amd64.deb ...\r\nUnpacking libpopt0:amd64 (1.16-10+b2) ...\r\nSelecting previously unselected package rsync.\r\nPreparing to unpack .../15-rsync_3.1.2-1+deb9u1_amd64.deb ...\r\nUnpacking rsync (3.1.2-1+deb9u1) ...\r\nSelecting previously unselected package libwrap0:amd64.\r\nPreparing to unpack .../16-libwrap0_7.6.q-26_amd64.deb ...\r\nUnpacking libwrap0:amd64 (7.6.q-26) ...\r\nSelecting previously unselected package socat.\r\nPreparing to unpack .../17-socat_1.7.3.1-2+deb9u1_amd64.deb ...\r\nUnpacking socat (1.7.3.1-2+deb9u1) ...\r\nSetting up mysql-common (5.8+1.0.2) ...\r\nupdate-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode\r\nSetting up mariadb-common (10.1.26-0+deb9u1) ...\r\nupdate-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode\r\nSelecting previously unselected package mariadb-server-10.1.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 9950 files and directories currently installed.)\r\nPreparing to unpack .../00-mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...\r\nUnpacking mariadb-server-10.1 (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package bzip2.\r\nPreparing to unpack .../01-bzip2_1.0.6-8.1_amd64.deb ...\r\nUnpacking bzip2 (1.0.6-8.1) ...\r\nSelecting previously unselected package libmagic-mgc.\r\nPreparing to unpack .../02-libmagic-mgc_1%3a5.30-1+deb9u1_amd64.deb ...\r\nUnpacking libmagic-mgc (1:5.30-1+deb9u1) ...\r\nSelecting previously unselected package libmagic1:amd64.\r\nPreparing to unpack .../03-libmagic1_1%3a5.30-1+deb9u1_amd64.deb ...\r\nUnpacking libmagic1:amd64 (1:5.30-1+deb9u1) ...\r\nSelecting previously unselected package file.\r\nPreparing to unpack .../04-file_1%3a5.30-1+deb9u1_amd64.deb ...\r\nUnpacking file (1:5.30-1+deb9u1) ...\r\nSelecting previously unselected package libgpm2:amd64.\r\nPreparing to unpack .../05-libgpm2_1.20.4-6.2+b1_amd64.deb ...\r\nUnpacking libgpm2:amd64 (1.20.4-6.2+b1) ...\r\nSelecting previously unselected package xz-utils.\r\nPreparing to unpack .../06-xz-utils_5.2.2-1.2+b1_amd64.deb ...\r\nUnpacking xz-utils (5.2.2-1.2+b1) ...\r\nSelecting previously unselected package default-mysql-server.\r\nPreparing to unpack .../07-default-mysql-server_1.0.2_all.deb ...\r\nUnpacking default-mysql-server (1.0.2) ...\r\nSelecting previously unselected package libhtml-tagset-perl.\r\nPreparing to unpack .../08-libhtml-tagset-perl_3.20-3_all.deb ...\r\nUnpacking libhtml-tagset-perl (3.20-3) ...\r\nSelecting previously unselected package liburi-perl.\r\nPreparing to unpack .../09-liburi-perl_1.71-1_all.deb ...\r\nUnpacking liburi-perl (1.71-1) ...\r\nSelecting previously unselected package libhtml-parser-perl.\r\nPreparing to unpack .../10-libhtml-parser-perl_3.72-3_amd64.deb ...\r\nUnpacking libhtml-parser-perl (3.72-3) ...\r\nSelecting previously unselected package libcgi-pm-perl.\r\nPreparing to unpack .../11-libcgi-pm-perl_4.35-1_all.deb ...\r\nUnpacking libcgi-pm-perl (4.35-1) ...\r\nSelecting previously unselected package libfcgi-perl.\r\nPreparing to unpack .../12-libfcgi-perl_0.78-2_amd64.deb ...\r\nUnpacking libfcgi-perl (0.78-2) ...\r\nSelecting previously unselected package libcgi-fast-perl.\r\nPreparing to unpack .../13-libcgi-fast-perl_1%3a2.12-1_all.deb ...\r\nUnpacking libcgi-fast-perl (1:2.12-1) ...\r\nSelecting previously unselected package libmariadbclient18:amd64.\r\nPreparing to unpack .../14-libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...\r\nUnpacking libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...\r\nSelecting previously unselected package libdbd-mysql-perl.\r\nPreparing to unpack .../15-libdbd-mysql-perl_4.041-2_amd64.deb ...\r\nUnpacking libdbd-mysql-perl (4.041-2) ...\r\nSelecting previously unselected package libencode-locale-perl.\r\nPreparing to unpack .../16-libencode-locale-perl_1.05-1_all.deb ...\r\nUnpacking libencode-locale-perl (1.05-1) ...\r\nSelecting previously unselected package libhtml-template-perl.\r\nPreparing to unpack .../17-libhtml-template-perl_2.95-2_all.deb ...\r\nUnpacking libhtml-template-perl (2.95-2) ...\r\nSelecting previously unselected package libtimedate-perl.\r\nPreparing to unpack .../18-libtimedate-perl_2.3000-2_all.deb ...\r\nUnpacking libtimedate-perl (2.3000-2) ...\r\nSelecting previously unselected package libhttp-date-perl.\r\nPreparing to unpack .../19-libhttp-date-perl_6.02-1_all.deb ...\r\nUnpacking libhttp-date-perl (6.02-1) ...\r\nSelecting previously unselected package libio-html-perl.\r\nPreparing to unpack .../20-libio-html-perl_1.001-1_all.deb ...\r\nUnpacking libio-html-perl (1.001-1) ...\r\nSelecting previously unselected package liblwp-mediatypes-perl.\r\nPreparing to unpack .../21-liblwp-mediatypes-perl_6.02-1_all.deb ...\r\nUnpacking liblwp-mediatypes-perl (6.02-1) ...\r\nSelecting previously unselected package libhttp-message-perl.\r\nPreparing to unpack .../22-libhttp-message-perl_6.11-1_all.deb ...\r\nUnpacking libhttp-message-perl (6.11-1) ...\r\nSelecting previously unselected package libterm-readkey-perl.\r\nPreparing to unpack .../23-libterm-readkey-perl_2.37-1_amd64.deb ...\r\nUnpacking libterm-readkey-perl (2.37-1) ...\r\nSelecting previously unselected package mysql-server.\r\nPreparing to unpack .../24-mysql-server_5.5.9999+default_amd64.deb ...\r\nUnpacking mysql-server (5.5.9999+default) ...\r\nSelecting previously unselected package python-mysqldb.\r\nPreparing to unpack .../25-python-mysqldb_1.3.7-1.1_amd64.deb ...\r\nUnpacking python-mysqldb (1.3.7-1.1) ...\r\nSelecting previously unselected package rename.\r\nPreparing to unpack .../26-rename_0.20-4_all.deb ...\r\nUnpacking rename (0.20-4) ...\r\nSelecting previously unselected package tcpd.\r\nPreparing to unpack .../27-tcpd_7.6.q-26_amd64.deb ...\r\nUnpacking tcpd (7.6.q-26) ...\r\nSelecting previously unselected package dumb-init.\r\nPreparing to unpack .../28-dumb-init_1.2.0-1_amd64.deb ...\r\nUnpacking dumb-init (1.2.0-1) ...\r\nSetting up libncurses5:amd64 (6.0+20161126-1+deb9u2) ...\r\nSetting up perl-modules-5.24 (5.24.1-3+deb9u2) ...\r\nSetting up libgdbm3:amd64 (1.8.3-14) ...\r\nSetting up libperl5.24:amd64 (5.24.1-3+deb9u2) ...\r\nSetting up libpopt0:amd64 (1.16-10+b2) ...\r\nSetting up libexpat1:amd64 (2.2.0-2+deb9u1) ...\r\nSetting up psmisc (22.21-2.1+b2) ...\r\nSetting up mime-support (3.60) ...\r\nSetting up libjemalloc1 (3.6.0-9.1) ...\r\nSetting up libgpm2:amd64 (1.20.4-6.2+b1) ...\r\nSetting up lsof (4.89+dfsg-0.1) ...\r\nSetting up libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...\r\nSetting up gawk (1:4.1.4+dfsg-1) ...\r\nSetting up libmagic-mgc (1:5.30-1+deb9u1) ...\r\nSetting up bzip2 (1.0.6-8.1) ...\r\nSetting up libmagic1:amd64 (1:5.30-1+deb9u1) ...\r\nSetting up rsync (3.1.2-1+deb9u1) ...\r\ninvoke-rc.d: could not determine current runlevel\r\ninvoke-rc.d: policy-rc.d denied execution of restart.\r\nSetting up perl (5.24.1-3+deb9u2) ...\r\nupdate-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode\r\nSetting up liblwp-mediatypes-perl (6.02-1) ...\r\nProcessing triggers for libc-bin (2.24-11+deb9u3) ...\r\nSetting up libaio1:amd64 (0.3.110-3) ...\r\nSetting up liburi-perl (1.71-1) ...\r\nSetting up libssl1.1:amd64 (1.1.0f-3+deb9u1) ...\r\nSetting up xz-utils (5.2.2-1.2+b1) ...\r\nupdate-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode\r\nSetting up libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...\r\nSetting up dumb-init (1.2.0-1) ...\r\nSetting up libffi6:amd64 (3.2.1-6) ...\r\nSetting up libreadline5:amd64 (5.2+dfsg-3+b1) ...\r\nSetting up libfcgi-perl (0.78-2) ...\r\nSetting up libdbi-perl (1.636-1+b1) ...\r\nSetting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u2) ...\r\nSetting up libwrap0:amd64 (7.6.q-26) ...\r\nSetting up libhtml-tagset-perl (3.20-3) ...\r\nSetting up mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...\r\nSetting up libencode-locale-perl (1.05-1) ...\r\nSetting up libtimedate-perl (2.3000-2) ...\r\nSetting
 up rename (0.20-4) ...\r\nupdate-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode\r\nSetting up socat (1.7.3.1-2+deb9u1) ...\r\nSetting up mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...\r\nSetting up libio-html-perl (1.001-1) ...\r\nSetting up python2.7 (2.7.13-2+deb9u2) ...\r\nSetting up file (1:5.30-1+deb9u1) ...\r\nSetting up tcpd (7.6.q-26) ...\r\nSetting up libterm-readkey-perl (2.37-1) ...\r\nSetting up libpython-stdlib:amd64 (2.7.13-2) ...\r\nSetting up galera-3 (25.3.19-2) ...\r\nSetting up libhtml-parser-perl (3.72-3) ...\r\nSetting up libcgi-pm-perl (4.35-1) ...\r\nSetting up libdbd-mysql-perl (4.041-2) ...\r\nSetting up python (2.7.13-2) ...\r\nSetting up mariadb-client-10.1 (10.1.26-0+deb9u1) ...\r\nSetting up libhttp-date-perl (6.02-1) ...\r\nSetting up libhtml-template-perl (2.95-2) ...\r\nSetting up libcgi-fast-perl (1:2.12-1) ...\r\nSetting up python-mysqldb (1.3.7-1.1) ...\r\nSetting up libhttp-message-perl (6.11-1) ...\r\nSetting up mariadb-server-10.1 (10.1.26-0+deb9u1) ...\r\ninvoke-rc.d: could not determine current runlevel\r\ninvoke-rc.d: policy-rc.d denied execution of start.\r\nSetting up default-mysql-server (1.0.2) ...\r\nSetting up mysql-server (5.5.9999+default) ...\r\nProcessing triggers for libc-bin (2.24-11+deb9u3) ...\r\n",
    "stdout_lines": [
        "Reading package lists...",
        "Building dependency tree...",
        "Reading state information...",
        "The following additional packages will be installed:",
        "  bzip2 default-mysql-server file galera-3 gawk libaio1 libcgi-fast-perl",
        "  libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libexpat1",
        "  libfcgi-perl libffi6 libgdbm3 libgmp10 libgpm2 libhtml-parser-perl",
        "  libhtml-tagset-perl libhtml-template-perl libhttp-date-perl",
        "  libhttp-message-perl libio-html-perl libjemalloc1 liblwp-mediatypes-perl",
        "  libmagic-mgc libmagic1 libmariadbclient18 libmpfr4 libncurses5 libperl5.24",
        "  libpopt0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib",
        "  libreadline5 libreadline7 libsigsegv2 libsqlite3-0 libssl1.1",
        "  libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof",
        "  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common",
        "  mariadb-server-10.1 mariadb-server-core-10.1 mime-support mysql-common perl",
        "  perl-modules-5.24 psmisc python python-minimal python2.7 python2.7-minimal",
        "  readline-common rename rsync socat tcpd xz-utils",
        "Suggested packages:",
        "  bzip2-doc gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl",
        "  libsql-statement-perl gpm libdata-dump-perl libipc-sharedcache-perl",
        "  libwww-perl mailx mariadb-test netcat-openbsd tinyca perl-doc",
        "  libterm-readline-gnu-perl | libterm-readline-perl-perl make python-doc",
        "  python-tk python-egenix-mxdatetime python-mysqldb-dbg python2.7-doc binutils",
        "  binfmt-support readline-doc openssh-client openssh-server",
        "The following NEW packages will be installed:",
        "  bzip2 default-mysql-server dumb-init file galera-3 gawk libaio1",
        "  libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl",
        "  libencode-locale-perl libexpat1 libfcgi-perl libffi6 libgdbm3 libgmp10",
        "  libgpm2 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl",
        "  libhttp-date-perl libhttp-message-perl libio-html-perl libjemalloc1",
        "  liblwp-mediatypes-perl libmagic-mgc libmagic1 libmariadbclient18 libmpfr4",
        "  libncurses5 libperl5.24 libpopt0 libpython-stdlib libpython2.7-minimal",
        "  libpython2.7-stdlib libreadline5 libreadline7 libsigsegv2 libsqlite3-0",
        "  libssl1.1 libterm-readkey-perl libtimedate-perl liburi-perl libwrap0 lsof",
        "  mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common",
        "  mariadb-server-10.1 mariadb-server-core-10.1 mime-support mysql-common",
        "  mysql-server perl perl-modules-5.24 psmisc python python-minimal",
        "  python-mysqldb python2.7 python2.7-minimal readline-common rename rsync",
        "  socat tcpd xz-utils",
        "0 upgraded, 68 newly installed, 0 to remove and 0 not upgraded.",
        "Need to get 41.6 MB of archives.",
        "After this operation, 265 MB of additional disk space will be used.",
        "Get:1 http://deb.debian.org/debian stretch/main amd64 perl-modules-5.24 all 5.24.1-3+deb9u2 [2724 kB]",
        "Get:2 http://deb.debian.org/debian stretch/main amd64 libgdbm3 amd64 1.8.3-14 [30.0 kB]",
        "Get:3 http://deb.debian.org/debian stretch/main amd64 libperl5.24 amd64 5.24.1-3+deb9u2 [3538 kB]",
        "Get:4 http://deb.debian.org/debian stretch/main amd64 perl amd64 5.24.1-3+deb9u2 [218 kB]",
        "Get:5 http://deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u2 [389 kB]",
        "Get:6 http://deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u2 [1382 kB]",
        "Get:7 http://deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]",
        "Get:8 http://deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]",
        "Get:9 http://deb.debian.org/debian stretch/main amd64 libexpat1 amd64 2.2.0-2+deb9u1 [83.4 kB]",
        "Get:10 http://deb.debian.org/debian stretch/main amd64 libffi6 amd64 3.2.1-6 [20.4 kB]",
        "Get:11 http://deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]",
        "Get:12 http://deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]",
        "Get:13 http://deb.debian.org/debian stretch/main amd64 libsqlite3-0 amd64 3.16.2-5+deb9u1 [572 kB]",
        "Get:14 http://deb.debian.org/debian stretch/main amd64 libssl1.1 amd64 1.1.0f-3+deb9u1 [1342 kB]",
        "Get:15 http://deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u2 [1896 kB]",
        "Get:16 http://deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u2 [285 kB]",
        "Get:17 http://deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]",
        "Get:18 http://deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]",
        "Get:19 http://deb.debian.org/debian stretch/main amd64 libgmp10 amd64 2:6.1.2+dfsg-1 [253 kB]",
        "Get:20 http://deb.debian.org/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]",
        "Get:21 http://deb.debian.org/debian stretch/main amd64 libsigsegv2 amd64 2.10-5 [28.9 kB]",
        "Get:22 http://deb.debian.org/debian stretch/main amd64 gawk amd64 1:4.1.4+dfsg-1 [571 kB]",
        "Get:23 http://deb.debian.org/debian stretch/main amd64 mysql-common all 5.8+1.0.2 [5608 B]",
        "Get:24 http://deb.debian.org/debian stretch/main amd64 mariadb-common all 10.1.26-0+deb9u1 [27.3 kB]",
        "Get:25 http://deb.debian.org/debian stretch/main amd64 galera-3 amd64 25.3.19-2 [955 kB]",
        "Get:26 http://deb.debian.org/debian stretch/main amd64 libdbi-perl amd64 1.636-1+b1 [766 kB]",
        "Get:27 http://deb.debian.org/debian stretch/main amd64 lsof amd64 4.89+dfsg-0.1 [313 kB]",
        "Get:28 http://deb.debian.org/debian stretch/main amd64 libaio1 amd64 0.3.110-3 [9412 B]",
        "Get:29 http://deb.debian.org/debian stretch/main amd64 libncurses5 amd64 6.0+20161126-1+deb9u2 [93.4 kB]",
        "Get:30 http://deb.debian.org/debian stretch/main amd64 libreadline5 amd64 5.2+dfsg-3+b1 [119 kB]",
        "Get:31 http://deb.debian.org/debian stretch/main amd64 mariadb-client-core-10.1 amd64 10.1.26-0+deb9u1 [5042 kB]",
        "Get:32 http://deb.debian.org/debian stretch/main amd64 libjemalloc1 amd64 3.6.0-9.1 [89.8 kB]",
        "Get:33 http://deb.debian.org/debian stretch/main amd64 mariadb-client-10.1 amd64 10.1.26-0+deb9u1 [5841 kB]",
        "Get:34 http://deb.debian.org/debian stretch/main amd64 mariadb-server-core-10.1 amd64 10.1.26-0+deb9u1 [5177 kB]",
        "Get:35 http://deb.debian.org/debian stretch/main amd64 psmisc amd64 22.21-2.1+b2 [123 kB]",
        "Get:36 http://deb.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10+b2 [49.4 kB]",
        "Get:37 http://deb.debian.org/debian stretch/main amd64 rsync amd64 3.1.2-1+deb9u1 [393 kB]",
        "Get:38 http://deb.debian.org/debian stretch/main amd64 libwrap0 amd64 7.6.q-26 [58.2 kB]",
        "Get:39 http://deb.debian.org/debian stretch/main amd64 socat amd64 1.7.3.1-2+deb9u1 [353 kB]",
        "Get:40 http://deb.debian.org/debian stretch/main amd64 mariadb-server-10.1 amd64 10.1.26-0+deb9u1 [5333 kB]",
        "Get:41 http://deb.debian.org/debian stretch/main amd64 bzip2 amd64 1.0.6-8.1 [47.5 kB]",
        "Get:42 http://deb.debian.org/debian stretch/main amd64 libmagic-mgc amd64 1:5.30-1+deb9u1 [222 kB]",
        "Get:43 http://deb.debian.org/debian stretch/main amd64 libmagic1 amd64 1:5.30-1+deb9u1 [111 kB]",
        "Get:44 http://deb.debian.org/debian stretch/main amd64 file amd64 1:5.30-1+deb9u1 [64.1 kB]",
        "Get:45 http://deb.debian.org/debian stretch/main amd64 libgpm2 amd64 1.20.4-6.2+b1 [34.2 kB]",
        "Get:46 http://deb.debian.org/debian stretch/main amd64 xz-utils amd64 5.2.2-1.2+b1 [266 kB]",
        "Get:47 http://deb.debian.org/debian stretch/main amd64 default-mysql-server all 1.0.2 [3048 B]",
        "Get:48 http://deb.debian.org/debian stretch/main amd64 libhtml-tagset-perl all 3.20-3 [12.7 kB]",
        "Get:49 http://deb.debian.org/debian stretch/main amd64 liburi-perl all 1.71-1 [88.6 kB]",
        "Get:50 http://deb.debian.org/debian stretch/main amd64 libhtml-parser-perl amd64 3.72-3 [104 kB]",
        "Get:51 http://deb.debian.org/debian stretch/main amd64 libcgi-pm-perl all 4.35-1 [222 kB]",
        "Get:52 http://deb.debian.org/debian stretch/main amd64 libfcgi-perl amd64 0.78-2 [38.2 kB]",
        "Get:53 http://deb.debian.org/debian stretch/main amd64 libcgi-fast-perl all 1:2.12-1 [11.2 kB]",
        "Get:54 http://deb.debian.org/debian stretch/main amd64 libmariadbclient18 amd64 10.1.26-0+deb9u1 [779 kB]",
        "Get:55 http://deb.debian.org/debian stretch/main amd64 libdbd-mysql-perl amd64 4.041-2 [114 kB]",
        "Get:56 http://deb.debian.org/debian stretch/main amd64 libencode-locale-perl all 1.05-1 [13.7 kB]",
        "Get:57 http://deb.debian.org/debian stretch/main amd64 libhtml-template-perl all 2.95-2 [67.1 kB]",
        "Get:58 http://deb.debian.org/debian stretch/main amd64 libtimedate-perl all 2.3000-2 [42.2 kB]",
        "Get:59 http://deb.debian.org/debian stretch/main amd64 libhttp-date-perl all 6.02-1 [10.7 kB]",
        "Get:60 http://deb.debian.org/debian stretch/main amd64 libio-html-perl all 1.001-1 [17.6 kB]",
        "Get:61 http://deb.debian.org/debian stretch/main amd64 liblwp-mediatypes-perl all 6.02-1 [22.1 kB]",
        "Get:62 http://deb.debian.org/debian stretch/main amd64 libhttp-message-perl all 6.11-1 [75.9 kB]",
        "Get:63 http://deb.debian.org/debian stretch/main amd64 libterm-readkey-perl amd64 2.37-1 [27.2 kB]",
        "Get:64 http://deb.debian.org/debian stretch/main amd64 mysql-server amd64 5.5.9999+default [1706 B]",
        "Get:65 http://deb.debian.org/debian stretch/main amd64 python-mysqldb amd64 1.3.7-1.1 [52.1 kB]",
        "Get:66 http://deb.debian.org/debian stretch/main amd64 rename all 0.20-4 [12.5 kB]",
        "Get:67 http://deb.debian.org/debian stretch/main amd64 tcpd amd64 7.6.q-26 [23.3 kB]",
        "Get:68 http://deb.debian.org/debian stretch/main amd64 dumb-init amd64 1.2.0-1 [12.1 kB]",
        "Fetched 41.6 MB in 7s (5673 kB/s)",
        "Selecting previously unselected package perl-modules-5.24.",
        "(Reading database ... ",
        "(Reading database ... 5%",
        "(Reading database ... 10%",
        "(Reading database ... 15%",
        "(Reading database ... 20%",
        "(Reading database ... 25%",
        "(Reading database ... 30%",
        "(Reading database ... 35%",
        "(Reading database ... 40%",
        "(Reading database ... 45%",
        "(Reading database ... 50%",
        "(Reading database ... 55%",
        "(Reading database ... 60%",
        "(Reading database ... 65%",
        "(Reading database ... 70%",
        "(Reading database ... 75%",
        "(Reading database ... 80%",
        "(Reading database ... 85%",
        "(Reading database ... 90%",
        "(Reading database ... 95%",
        "(Reading database ... 100%",
        "(Reading database ... 6487 files and directories currently installed.)",
        "Preparing to unpack .../00-perl-modules-5.24_5.24.1-3+deb9u2_all.deb ...",
        "Unpacking perl-modules-5.24 (5.24.1-3+deb9u2) ...",
        "Selecting previously unselected package libgdbm3:amd64.",
        "Preparing to unpack .../01-libgdbm3_1.8.3-14_amd64.deb ...",
        "Unpacking libgdbm3:amd64 (1.8.3-14) ...",
        "Selecting previously unselected package libperl5.24:amd64.",
        "Preparing to unpack .../02-libperl5.24_5.24.1-3+deb9u2_amd64.deb ...",
        "Unpacking libperl5.24:amd64 (5.24.1-3+deb9u2) ...",
        "Selecting previously unselected package perl.",
        "Preparing to unpack .../03-perl_5.24.1-3+deb9u2_amd64.deb ...",
        "Unpacking perl (5.24.1-3+deb9u2) ...",
        "Selecting previously unselected package libpython2.7-minimal:amd64.",
        "Preparing to unpack .../04-libpython2.7-minimal_2.7.13-2+deb9u2_amd64.deb ...",
        "Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u2) ...",
        "Selecting previously unselected package python2.7-minimal.",
        "Preparing to unpack .../05-python2.7-minimal_2.7.13-2+deb9u2_amd64.deb ...",
        "Unpacking python2.7-minimal (2.7.13-2+deb9u2) ...",
        "Selecting previously unselected package python-minimal.",
        "Preparing to unpack .../06-python-minimal_2.7.13-2_amd64.deb ...",
        "Unpacking python-minimal (2.7.13-2) ...",
        "Selecting previously unselected package mime-support.",
        "Preparing to unpack .../07-mime-support_3.60_all.deb ...",
        "Unpacking mime-support (3.60) ...",
        "Selecting previously unselected package libexpat1:amd64.",
        "Preparing to unpack .../08-libexpat1_2.2.0-2+deb9u1_amd64.deb ...",
        "Unpacking libexpat1:amd64 (2.2.0-2+deb9u1) ...",
        "Selecting previously unselected package libffi6:amd64.",
        "Preparing to unpack .../09-libffi6_3.2.1-6_amd64.deb ...",
        "Unpacking libffi6:amd64 (3.2.1-6) ...",
        "Selecting previously unselected package readline-common.",
        "Preparing to unpack .../10-readline-common_7.0-3_all.deb ...",
        "Unpacking readline-common (7.0-3) ...",
        "Selecting previously unselected package libreadline7:amd64.",
        "Preparing to unpack .../11-libreadline7_7.0-3_amd64.deb ...",
        "Unpacking libreadline7:amd64 (7.0-3) ...",
        "Selecting previously unselected package libsqlite3-0:amd64.",
        "Preparing to unpack .../12-libsqlite3-0_3.16.2-5+deb9u1_amd64.deb ...",
        "Unpacking libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...",
        "Selecting previously unselected package libssl1.1:amd64.",
        "Preparing to unpack .../13-libssl1.1_1.1.0f-3+deb9u1_amd64.deb ...",
        "Unpacking libssl1.1:amd64 (1.1.0f-3+deb9u1) ...",
        "Selecting previously unselected package libpython2.7-stdlib:amd64.",
        "Preparing to unpack .../14-libpython2.7-stdlib_2.7.13-2+deb9u2_amd64.deb ...",
        "Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u2) ...",
        "Selecting previously unselected package python2.7.",
        "Preparing to unpack .../15-python2.7_2.7.13-2+deb9u2_amd64.deb ...",
        "Unpacking python2.7 (2.7.13-2+deb9u2) ...",
        "Selecting previously unselected package libpython-stdlib:amd64.",
        "Preparing to unpack .../16-libpython-stdlib_2.7.13-2_amd64.deb ...",
        "Unpacking libpython-stdlib:amd64 (2.7.13-2) ...",
        "Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u2) ...",
        "Setting up python2.7-minimal (2.7.13-2+deb9u2) ...",
        "Setting up python-minimal (2.7.13-2) ...",
        "Selecting previously unselected package python.",
        "(Reading database ... ",
        "(Reading database ... 5%",
        "(Reading database ... 10%",
        "(Reading database ... 15%",
        "(Reading database ... 20%",
        "(Reading database ... 25%",
        "(Reading database ... 30%",
        "(Reading database ... 35%",
        "(Reading database ... 40%",
        "(Reading database ... 45%",
        "(Reading database ... 50%",
        "(Reading database ... 55%",
        "(Reading database ... 60%",
        "(Reading database ... 65%",
        "(Reading database ... 70%",
        "(Reading database ... 75%",
        "(Reading database ... 80%",
        "(Reading database ... 85%",
        "(Reading database ... 90%",
        "(Reading database ... 95%",
        "(Reading database ... 100%",
        "(Reading database ... 9137 files and directories currently installed.)",
        "Preparing to unpack .../python_2.7.13-2_amd64.deb ...",
        "Unpacking python (2.7.13-2) ...",
        "Selecting previously unselected package libgmp10:amd64.",
        "Preparing to unpack .../libgmp10_2%3a6.1.2+dfsg-1_amd64.deb ...",
        "Unpacking libgmp10:amd64 (2:6.1.2+dfsg-1) ...",
        "Selecting previously unselected package libmpfr4:amd64.",
        "Preparing to unpack .../libmpfr4_3.1.5-1_amd64.deb ...",
        "Unpacking libmpfr4:amd64 (3.1.5-1) ...",
        "Selecting previously unselected package libsigsegv2:amd64.",
        "Preparing to unpack .../libsigsegv2_2.10-5_amd64.deb ...",
        "Unpacking libsigsegv2:amd64 (2.10-5) ...",
        "Setting up libgmp10:amd64 (2:6.1.2+dfsg-1) ...",
        "Setting up libmpfr4:amd64 (3.1.5-1) ...",
        "Setting up readline-common (7.0-3) ...",
        "Setting up libreadline7:amd64 (7.0-3) ...",
        "Setting up libsigsegv2:amd64 (2.10-5) ...",
        "Selecting previously unselected package gawk.",
        "(Reading database ... ",
        "(Reading database ... 5%",
        "(Reading database ... 10%",
        "(Reading database ... 15%",
        "(Reading database ... 20%",
        "(Reading database ... 25%",
        "(Reading database ... 30%",
        "(Reading database ... 35%",
        "(Reading database ... 40%",
        "(Reading database ... 45%",
        "(Reading database ... 50%",
        "(Reading database ... 55%",
        "(Reading database ... 60%",
        "(Reading database ... 65%",
        "(Reading database ... 70%",
        "(Reading database ... 75%",
        "(Reading database ... 80%",
        "(Reading database ... 85%",
        "(Reading database ... 90%",
        "(Reading database ... 95%",
        "(Reading database ... 100%",
        "(Reading database ... 9226 files and directories currently installed.)",
        "Preparing to unpack .../00-gawk_1%3a4.1.4+dfsg-1_amd64.deb ...",
        "Unpacking gawk (1:4.1.4+dfsg-1) ...",
        "Selecting previously unselected package mysql-common.",
        "Preparing to unpack .../01-mysql-common_5.8+1.0.2_all.deb ...",
        "Unpacking mysql-common (5.8+1.0.2) ...",
        "Selecting previously unselected package mariadb-common.",
        "Preparing to unpack .../02-mariadb-common_10.1.26-0+deb9u1_all.deb ...",
        "Unpacking mariadb-common (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package galera-3.",
        "Preparing to unpack .../03-galera-3_25.3.19-2_amd64.deb ...",
        "Unpacking galera-3 (25.3.19-2) ...",
        "Selecting previously unselected package libdbi-perl.",
        "Preparing to unpack .../04-libdbi-perl_1.636-1+b1_amd64.deb ...",
        "Unpacking libdbi-perl (1.636-1+b1) ...",
        "Selecting previously unselected package lsof.",
        "Preparing to unpack .../05-lsof_4.89+dfsg-0.1_amd64.deb ...",
        "Unpacking lsof (4.89+dfsg-0.1) ...",
        "Selecting previously unselected package libaio1:amd64.",
        "Preparing to unpack .../06-libaio1_0.3.110-3_amd64.deb ...",
        "Unpacking libaio1:amd64 (0.3.110-3) ...",
        "Selecting previously unselected package libncurses5:amd64.",
        "Preparing to unpack .../07-libncurses5_6.0+20161126-1+deb9u2_amd64.deb ...",
        "Unpacking libncurses5:amd64 (6.0+20161126-1+deb9u2) ...",
        "Selecting previously unselected package libreadline5:amd64.",
        "Preparing to unpack .../08-libreadline5_5.2+dfsg-3+b1_amd64.deb ...",
        "Unpacking libreadline5:amd64 (5.2+dfsg-3+b1) ...",
        "Selecting previously unselected package mariadb-client-core-10.1.",
        "Preparing to unpack .../09-mariadb-client-core-10.1_10.1.26-0+deb9u1_amd64.deb ...",
        "Unpacking mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package libjemalloc1.",
        "Preparing to unpack .../10-libjemalloc1_3.6.0-9.1_amd64.deb ...",
        "Unpacking libjemalloc1 (3.6.0-9.1) ...",
        "Selecting previously unselected package mariadb-client-10.1.",
        "Preparing to unpack .../11-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...",
        "Unpacking mariadb-client-10.1 (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package mariadb-server-core-10.1.",
        "Preparing to unpack .../12-mariadb-server-core-10.1_10.1.26-0+deb9u1_amd64.deb ...",
        "Unpacking mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package psmisc.",
        "Preparing to unpack .../13-psmisc_22.21-2.1+b2_amd64.deb ...",
        "Unpacking psmisc (22.21-2.1+b2) ...",
        "Selecting previously unselected package libpopt0:amd64.",
        "Preparing to unpack .../14-libpopt0_1.16-10+b2_amd64.deb ...",
        "Unpacking libpopt0:amd64 (1.16-10+b2) ...",
        "Selecting previously unselected package rsync.",
        "Preparing to unpack .../15-rsync_3.1.2-1+deb9u1_amd64.deb ...",
        "Unpacking rsync (3.1.2-1+deb9u1) ...",
        "Selecting previously unselected package libwrap0:amd64.",
        "Preparing to unpack .../16-libwrap0_7.6.q-26_amd64.deb ...",
        "Unpacking libwrap0:amd64 (7.6.q-26) ...",
        "Selecting previously unselected package socat.",
        "Preparing to unpack .../17-socat_1.7.3.1-2+deb9u1_amd64.deb ...",
        "Unpacking socat (1.7.3.1-2+deb9u1) ...",
        "Setting up mysql-common (5.8+1.0.2) ...",
        "update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode",
        "Setting up mariadb-common (10.1.26-0+deb9u1) ...",
        "update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode",
        "Selecting previously unselected package mariadb-server-10.1.",
        "(Reading database ... ",
        "(Reading database ... 5%",
        "(Reading database ... 10%",
        "(Reading database ... 15%",
        "(Reading database ... 20%",
        "(Reading database ... 25%",
        "(Reading database ... 30%",
        "(Reading database ... 35%",
        "(Reading database ... 40%",
        "(Reading database ... 45%",
        "(Reading database ... 50%",
        "(Reading database ... 55%",
        "(Reading database ... 60%",
        "(Reading database ... 65%",
        "(Reading database ... 70%",
        "(Reading database ... 75%",
        "(Reading database ... 80%",
        "(Reading database ... 85%",
        "(Reading database ... 90%",
        "(Reading database ... 95%",
        "(Reading database ... 100%",
        "(Reading database ... 9950 files and directories currently installed.)",
        "Preparing to unpack .../00-mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...",
        "Unpacking mariadb-server-10.1 (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package bzip2.",
        "Preparing to unpack .../01-bzip2_1.0.6-8.1_amd64.deb ...",
        "Unpacking bzip2 (1.0.6-8.1) ...",
        "Selecting previously unselected package libmagic-mgc.",
        "Preparing to unpack .../02-libmagic-mgc_1%3a5.30-1+deb9u1_amd64.deb ...",
        "Unpacking libmagic-mgc (1:5.30-1+deb9u1) ...",
        "Selecting previously unselected package libmagic1:amd64.",
        "Preparing to unpack .../03-libmagic1_1%3a5.30-1+deb9u1_amd64.deb ...",
        "Unpacking libmagic1:amd64 (1:5.30-1+deb9u1) ...",
        "Selecting previously unselected package file.",
        "Preparing to unpack .../04-file_1%3a5.30-1+deb9u1_amd64.deb ...",
        "Unpacking file (1:5.30-1+deb9u1) ...",
        "Selecting previously unselected package libgpm2:amd64.",
        "Preparing to unpack .../05-libgpm2_1.20.4-6.2+b1_amd64.deb ...",
        "Unpacking libgpm2:amd64 (1.20.4-6.2+b1) ...",
        "Selecting previously unselected package xz-utils.",
        "Preparing to unpack .../06-xz-utils_5.2.2-1.2+b1_amd64.deb ...",
        "Unpacking xz-utils (5.2.2-1.2+b1) ...",
        "Selecting previously unselected package default-mysql-server.",
        "Preparing to unpack .../07-default-mysql-server_1.0.2_all.deb ...",
        "Unpacking default-mysql-server (1.0.2) ...",
        "Selecting previously unselected package libhtml-tagset-perl.",
        "Preparing to unpack .../08-libhtml-tagset-perl_3.20-3_all.deb ...",
        "Unpacking libhtml-tagset-perl (3.20-3) ...",
        "Selecting previously unselected package liburi-perl.",
        "Preparing to unpack .../09-liburi-perl_1.71-1_all.deb ...",
        "Unpacking liburi-perl (1.71-1) ...",
        "Selecting previously unselected package libhtml-parser-perl.",
        "Preparing to unpack .../10-libhtml-parser-perl_3.72-3_amd64.deb ...",
        "Unpacking libhtml-parser-perl (3.72-3) ...",
        "Selecting previously unselected package libcgi-pm-perl.",
        "Preparing to unpack .../11-libcgi-pm-perl_4.35-1_all.deb ...",
        "Unpacking libcgi-pm-perl (4.35-1) ...",
        "Selecting previously unselected package libfcgi-perl.",
        "Preparing to unpack .../12-libfcgi-perl_0.78-2_amd64.deb ...",
        "Unpacking libfcgi-perl (0.78-2) ...",
        "Selecting previously unselected package libcgi-fast-perl.",
        "Preparing to unpack .../13-libcgi-fast-perl_1%3a2.12-1_all.deb ...",
        "Unpacking libcgi-fast-perl (1:2.12-1) ...",
        "Selecting previously unselected package libmariadbclient18:amd64.",
        "Preparing to unpack .../14-libmariadbclient18_10.1.26-0+deb9u1_amd64.deb ...",
        "Unpacking libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...",
        "Selecting previously unselected package libdbd-mysql-perl.",
        "Preparing to unpack .../15-libdbd-mysql-perl_4.041-2_amd64.deb ...",
        "Unpacking libdbd-mysql-perl (4.041-2) ...",
        "Selecting previously unselected package libencode-locale-perl.",
        "Preparing to unpack .../16-libencode-locale-perl_1.05-1_all.deb ...",
        "Unpacking libencode-locale-perl (1.05-1) ...",
        "Selecting previously unselected package libhtml-template-perl.",
        "Preparing to unpack .../17-libhtml-template-perl_2.95-2_all.deb ...",
        "Unpacking libhtml-template-perl (2.95-2) ...",
        "Selecting previously unselected package libtimedate-perl.",
        "Preparing to unpack .../18-libtimedate-perl_2.3000-2_all.deb ...",
        "Unpacking libtimedate-perl (2.3000-2) ...",
        "Selecting previously unselected package libhttp-date-perl.",
        "Preparing to unpack .../19-libhttp-date-perl_6.02-1_all.deb ...",
        "Unpacking libhttp-date-perl (6.02-1) ...",
        "Selecting previously unselected package libio-html-perl.",
        "Preparing to unpack .../20-libio-html-perl_1.001-1_all.deb ...",
        "Unpacking libio-html-perl (1.001-1) ...",
        "Selecting previously unselected package liblwp-mediatypes-perl.",
        "Preparing to unpack .../21-liblwp-mediatypes-perl_6.02-1_all.deb ...",
        "Unpacking liblwp-mediatypes-perl (6.02-1) ...",
        "Selecting previously unselected package libhttp-message-perl.",
        "Preparing to unpack .../22-libhttp-message-perl_6.11-1_all.deb ...",
        "Unpacking libhttp-message-perl (6.11-1) ...",
        "Selecting previously unselected package libterm-readkey-perl.",
        "Preparing to unpack .../23-libterm-readkey-perl_2.37-1_amd64.deb ...",
        "Unpacking libterm-readkey-perl (2.37-1) ...",
        "Selecting previously unselected package mysql-server.",
        "Preparing to unpack .../24-mysql-server_5.5.9999+default_amd64.deb ...",
        "Unpacking mysql-server (5.5.9999+default) ...",
        "Selecting previously unselected package python-mysqldb.",
        "Preparing to unpack .../25-python-mysqldb_1.3.7-1.1_amd64.deb ...",
        "Unpacking python-mysqldb (1.3.7-1.1) ...",
        "Selecting previously unselected package rename.",
        "Preparing to unpack .../26-rename_0.20-4_all.deb ...",
        "Unpacking rename (0.20-4) ...",
        "Selecting previously unselected package tcpd.",
        "Preparing to unpack .../27-tcpd_7.6.q-26_amd64.deb ...",
        "Unpacking tcpd (7.6.q-26) ...",
        "Selecting previously unselected package dumb-init.",
        "Preparing to unpack .../28-dumb-init_1.2.0-1_amd64.deb ...",
        "Unpacking dumb-init (1.2.0-1) ...",
        "Setting up libncurses5:amd64 (6.0+20161126-1+deb9u2) ...",
        "Setting up perl-modules-5.24 (5.24.1-3+deb9u2) ...",
        "Setting up libgdbm3:amd64 (1.8.3-14) ...",
        "Setting up libperl5.24:amd64 (5.24.1-3+deb9u2) ...",
        "Setting up libpopt0:amd64 (1.16-10+b2) ...",
        "Setting up libexpat1:amd64 (2.2.0-2+deb9u1) ...",
        "Setting up psmisc (22.21-2.1+b2) ...",
        "Setting up mime-support (3.60) ...",
        "Setting up libjemalloc1 (3.6.0-9.1) ...",
        "Setting up libgpm2:amd64 (1.20.4-6.2+b1) ...",
        "Setting up lsof (4.89+dfsg-0.1) ...",
        "Setting up libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...",
        "Setting up gawk (1:4.1.4+dfsg-1) ...",
        "Setting up libmagic-mgc (1:5.30-1+deb9u1) ...",
        "Setting up bzip2 (1.0.6-8.1) ...",
        "Setting up libmagic1:amd64 (1:5.30-1+deb9u1) ...",
        "Setting up rsync (3.1.2-1+deb9u1) ...",
        "invoke-rc.d: could not determine current runlevel",
        "invoke-rc.d: policy-rc.d denied execution of restart.",
        "Setting up perl (5.24.1-3+deb9u2) ...",
        "update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode",
        "Setting up liblwp-mediatypes-perl (6.02-1) ...",
        "Processing triggers for libc-bin (2.24-11+deb9u3) ...",
        "Setting up libaio1:amd64 (0.3.110-3) ...",
        "Setting up liburi-perl (1.71-1) ...",
        "Setting up libssl1.1:amd64 (1.1.0f-3+deb9u1) ...",
        "Setting up xz-utils (5.2.2-1.2+b1) ...",
        "update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode",
        "Setting up libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...",
        "Setting up dumb-init (1.2.0-1) ...",
        "Setting up libffi6:amd64 (3.2.1-6) ...",
        "Setting up libreadline5:amd64 (5.2+dfsg-3+b1) ...",
        "Setting up libfcgi-perl (0.78-2) ...",
        "Setting up libdbi-perl (1.636-1+b1) ...",
        "Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u2) ...",
        "Setting up libwrap0:amd64 (7.6.q-26) ...",
        "Setting up libhtml-tagset-perl (3.20-3) ...",
        "Setting up mariadb-server-core-10.1 (10.1.26-0+deb9u1) ...",
        "Setting up libencode-locale-perl (1.05-1) ...",
        "Setting up libtimedate-perl (2.3000-2) ...",
        "Setting up rename (0.20-4) ...",
        "update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode",
        "Setting up socat (1.7.3.1-2+deb9u1) ...",
        "Setting up mariadb-client-core-10.1 (10.1.26-0+deb9u1) ...",
        "Setting up libio-html-perl (1.001-1) ...",
        "Setting up python2.7 (2.7.13-2+deb9u2) ...",
        "Setting up file (1:5.30-1+deb9u1) ...",
        "Setting up tcpd (7.6.q-26) ...",
        "Setting up libterm-readkey-perl (2.37-1) ...",
        "Setting up libpython-stdlib:amd64 (2.7.13-2) ...",
        "Setting up galera-3 (25.3.19-2) ...",
        "Setting up libhtml-parser-perl (3.72-3) ...",
        "Setting up libcgi-pm-perl (4.35-1) ...",
        "Setting up libdbd-mysql-perl (4.041-2) ...",
        "Setting up python (2.7.13-2) ...",
        "Setting up mariadb-client-10.1 (10.1.26-0+deb9u1) ...",
        "Setting up libhttp-date-perl (6.02-1) ...",
        "Setting up libhtml-template-perl (2.95-2) ...",
        "Setting up libcgi-fast-perl (1:2.12-1) ...",
        "Setting up python-mysqldb (1.3.7-1.1) ...",
        "Setting up libhttp-message-perl (6.11-1) ...",
        "Setting up mariadb-server-10.1 (10.1.26-0+deb9u1) ...",
        "invoke-rc.d: could not determine current runlevel",
        "invoke-rc.d: policy-rc.d denied execution of start.",
        "Setting up default-mysql-server (1.0.2) ...",
        "Setting up mysql-server (5.5.9999+default) ...",
        "Processing triggers for libc-bin (2.24-11+deb9u3) ..."
    ]
}
TASK [mysql : create database] *************************************************
task path: /src/roles/mysql/tasks/databases.yml:1
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/database/mysql/mysql_db.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> ESTABLISH DOCKER CONNECTION FOR USER: root
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'echo ~ && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654 `" && echo ansible-tmp-1521110947.78-215244802754654="` echo /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654 `" ) && sleep 0\'']
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> PUT /tmp/tmpNSoZ9a TO /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654/mysql_db.py
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u"/bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654/ /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654/mysql_db.py && sleep 0'"]
<d9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'd9b5a113a099747c70cd673d57d7577d3372d83faa11501bbf03e3636334d40a', u'/bin/sh', '-c', u'/bin/sh -c \'/_usr/bin/python /root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654/mysql_db.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1521110947.78-215244802754654/" > /dev/null 2>&1 && sleep 0\'']
The full traceback is:
  File "/tmp/ansible_pFgwxg/ansible_module_mysql_db.py", line 111, in <module>
    import MySQLdb
fatal: [mydb]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "collation": "",
            "config_file": "/root/.my.cnf",
            "connect_timeout": 30,
            "encoding": "",
            "login_host": "localhost",
            "login_password": null,
            "login_port": 3306,
            "login_unix_socket": null,
            "login_user": null,
            "name": "test",
            "quick": true,
            "single_transaction": false,
            "ssl_ca": null,
            "ssl_cert": null,
            "ssl_key": null,
            "state": "present",
            "target": null
        }
    },
    "msg": "The MySQL-python module is required."
}
	to retry, use: --limit @/src/tmp_1KRQh.retry
PLAY RECAP *********************************************************************
mydb                       : ok=2    changed=1    unreachable=0    failed=1
2018-03-15T10:49:08.393390 Error applying role!           [container.core] caller_file=/_ansible/container/core.py caller_func=apply_role_to_container caller_line=676 engine=<container.docker.engine.Engine object at 0x7f0d7330ba90> exit_code=2 playbook=[{'hosts': u'mydb', 'roles': [ordereddict([('db_name', 'test'), ('role', 'mysql')])], 'vars': {u'SSL_ROOT_DIR': u'/etc/ssl'}}]
2018-03-15T10:49:08.397434 Playbook run finished.         [container.core] caller_file=/_ansible/container/core.py caller_func=conductorcmd_build caller_line=887 exit_code=2
Traceback (most recent call last):
  File "/usr/local/bin/conductor", line 11, in <module>
    load_entry_point('ansible-container', 'console_scripts', 'conductor')()
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/cli.py", line 423, in conductor_commandline
    **params)
  File "/_ansible/container/__init__.py", line 19, in __wrapped__
    return fn(*args, **kwargs)
  File "/_ansible/container/core.py", line 889, in conductorcmd_build
    raise RuntimeError('Build failed.')
RuntimeError: Build failed.
2018-03-15T11:49:08.868810 Conductor terminated. Cleaning up. [container.docker.engine] caller_file=/root/ansible-container/container/docker/engine.py caller_func=await_conductor_command caller_line=476 command_rc=1 conductor_id=u'4b52787e870eac594ddc40a5979419064d3663ee74fd760b5d83ab3be3801444' save_container=False
2018-03-15T11:49:09.617676 Conductor exited with status 1 [container.cli] caller_file=/root/ansible-container/container/cli.py caller_func=__call__ caller_line=314

Correct me if I'm wrong but it's the conductor that needs the MySQL-python module to manage the databases on the target containers.
To be sure I tried with the modules installed on the target container but I have the same error.
Can somebody tell me what this error means, where's the MySQL-python module missing?

@matteotanca-sardex

This comment has been minimized.

matteotanca-sardex commented Jun 25, 2018

Check my answer here :
#906
I build my custom conductors following those instructions :
https://docs.ansible.com/ansible-container/conductor.html#baking-your-own-conductor-base

@fins2

This comment has been minimized.

fins2 commented Jul 17, 2018

@matteotanca-sardex , I try to build a custom conductor as explained in the documentation and also in your answer in #906.
When I use this custom conductor in my container.yml, ansible-container doesn't find my custom conductor. It seems that he's trying to pull it from the docker.io registry.
Please share a container.yml file where you're using a custom container as base and a docker image output.

@matteotanca-sardex

This comment has been minimized.

matteotanca-sardex commented Jul 17, 2018

version: "2"
settings:

  conductor:
    # The Conductor container does the heavy lifting, and provides a portable
    # Python runtime for building your target containers. It should be derived
    # from the same distribution as you're building your target containers with.
    base: ubuntu:16.04
    # roles_path:   # Specify a local path containing Ansible roles
    # volumes:      # Provide a list of volumes to mount
    environment:  # List or mapping of environment variables
      - DISTRO=xenial

  # Set the name of the project. Defaults to basename of the project directory.
  # For built services, concatenated with service name to form the built image name.
  project_name: xenial-apache2

  # The deployment_output_path is mounted to the Conductor container, and the
  # `run` and `deployment` commands then write generated Ansible playbooks to it.
  # deployment_output_path: ./ansible-deployment

  # When using the k8s or openshift engines, use the following to authorize with the API.
  # Values set here will be passed to the Ansible modules. Any file paths will be mounted
  # to the conductor container, allowing the `run` command to access the API.
  #k8s_auth:
    # path to a K8s config file
    #config_file:
    # name of a context found within the config file
    #context:
    # URL for accessing the K8s API
    #host:
    # An API authentication token
    #api_key:
    # Path to a ca cert file
    #ssl_ca_cert:
    # Path to a cert file
    #cert_file:
    # Path to a key file
    #key_file:
    # boolean, indicating if SSL certs should be validated
    #verify_ssl:

  # When using the k8s or openshift engines, use the following to set the namespace.
  # If not set, the project name will be used. For openshift, the namespace maps to a project,
  # and description and display_name are supported.
  #k8s_namespace:
  #  name:
  #  description:
  #  display_name:

services:

  # Add your containers here, specifying the base image you want to build from.
  # To use this example, uncomment it and delete the curly braces after services key.
  # You may need to run `docker pull ubuntu:trusty` for this to work.
 web:
    from: ubuntu:16.04
    roles:
      - common/ansible-sudoer
      - common/ansible-timezone
      - common/ansible-network
      - common/ansible-locale
      - apache-php-xdebug
    ports:
      - "127.0.0.1:80:80"
      - "127.0.0.1:443:443"
    entrypoint: ["/etc/init.d/startup.sh"]
    command: ["start"]

  # web:
  #   from: "centos:7"
  #   ports:
  #     - "80:80"
  #   command: ["/usr/bin/dumb-init", "/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
  #   dev_overrides:
  #     environment:
  #       - "DEBUG=1"
registries: {}
  # Add optional registries used for deployment. For example:
  #  google:
  #    url: https://gcr.io
  #    namespace: my-cool-project-xxxxxx```

That's my apache service container.yml
@fins2

This comment has been minimized.

fins2 commented Jul 17, 2018

Thanks.
Can you share a docker images output?

@matteotanca-sardex

This comment has been minimized.

matteotanca-sardex commented Jul 17, 2018

xenial-apache2-conductor                     latest              00085974b730        39 minutes ago      811MB
trusty-postgresql-postgresql_database        20180713135101      2796b3ab51fd        3 days ago          512MB
trusty-postgresql-postgresql_database        latest              2796b3ab51fd        3 days ago          512MB
trusty-tomcat-tomcat                         20180713134812      ea9870bbdce5        3 days ago          583MB
trusty-tomcat-tomcat                         latest              ea9870bbdce5        3 days ago          583MB
precise-apache2-web                          20180713134725      b2415c07b3c9        3 days ago          409MB
precise-apache2-web                          latest              b2415c07b3c9        3 days ago          409MB
precise-mysql-mysql_database                 20180713134645      fbb09563a04b        3 days ago          411MB
precise-mysql-mysql_database                 latest              fbb09563a04b        3 days ago          411MB
trusty-postgresql-conductor                  latest              1592834e3d6c        3 days ago          732MB
xenial-postgresql-postgresql_database        20180713134548      9b7e1f111828        3 days ago          936MB
xenial-postgresql-postgresql_database        latest              9b7e1f111828        3 days ago          936MB
precise-mysql-conductor                      latest              2a6fa35155b9        3 days ago          644MB
precise-apache2-conductor                    latest              768ccd14ac9a        3 days ago          644MB
trusty-mysql-mysql_database                  20180713134338      bdbcf0fd1d1f        3 days ago          468MB
trusty-mysql-mysql_database                  latest              bdbcf0fd1d1f        3 days ago          468MB
trusty-apache2-web                           20180713134321      600499cdbd5c        3 days ago          394MB
trusty-apache2-web                           latest              600499cdbd5c        3 days ago          394MB
trusty-tomcat-conductor                      latest              1c157dbbba6e        3 days ago          732MB
xenial-tomcat-tomcat                         20180713134244      edfb0a82641d        4 days ago          544MB
xenial-tomcat-tomcat                         latest              edfb0a82641d        4 days ago          544MB
trusty-mysql-conductor                       latest              1b08ad218522        4 days ago          732MB
xenial-postgresql-conductor                  latest              e02216066d75        4 days ago          811MB
xenial-mysql-mysql_database                  20180713133947      d27eb5208475        4 days ago          556MB
xenial-mysql-mysql_database                  latest              d27eb5208475        4 days ago          556MB
xenial-elasticsearch-es                      20180713133858      75d7b8b3e78c        4 days ago          684MB
xenial-elasticsearch-es                      latest              75d7b8b3e78c        4 days ago          684MB
xenial-nginx-php-xdebug-web                  20180713133848      f1b7768bb5e6        4 days ago          525MB
xenial-nginx-php-xdebug-web                  latest              f1b7768bb5e6        4 days ago          525MB
trusty-apache2-conductor                     latest              d22d683ef631        4 days ago          732MB
xenial-tomcat-conductor                      latest              d535fd876233        4 days ago          811MB
xenial-nodejs-nodejs                         20180713133716      b32d3d9932e9        4 days ago          333MB
xenial-nodejs-nodejs                         latest              b32d3d9932e9        4 days ago          333MB
xenial-mysql-conductor                       latest              da3fa75865e1        4 days ago          811MB
xenial-mongodb-mongodb                       20180713133541      b0389d20d54e        4 days ago          475MB
xenial-mongodb-mongodb                       latest              b0389d20d54e        4 days ago          475MB
xenial-nodejs-conductor                      latest              88c5c977eaee        4 days ago          811MB
xenial-nginx-php-xdebug-conductor            latest              5b2d6406f825        4 days ago          811MB
xenial-elasticsearch-conductor               latest              eb6e7466c2ee        4 days ago          811MB
xenial-mongodb-conductor                     latest              f9adbdc1dacc        4 days ago          811MB
xenial-apache2-web                           20180713131819      25c433c348af        4 days ago          523MB
xenial-apache2-web                           latest              25c433c348af        4 days ago          523MB
xenial-mysql-mysql_database                  20180713131701      227513405de1        4 days ago          556MB
xenial-nodejs-nodejs                         20180713104513      36dcd3e106c1        4 days ago          331MB
container-conductor-ubuntu-precise           0.9.2               cd3c64ac8964        4 days ago          644MB
container-conductor-ubuntu-trusty            0.9.2               2492b86790fb        4 days ago          732MB
container-conductor-ubuntu-xenial            0.9.2               f70c0b497a53        4 days ago          811MB
ubuntu                                       16.04               5e8b97a2a082        5 weeks ago         114MB
ubuntu                                       14.04               578c3e61a98c        5 weeks ago         223MB
ansible/container-conductor-ubuntu-xenial    0.9.2               35cf9762959e        10 months ago       640MB
ansible/container-conductor-ubuntu-trusty    0.9.2               e67d229c7895        10 months ago       567MB
ansible/container-conductor-ubuntu-precise   0.9.2               72e30ef755d1        10 months ago       484MB
ubuntu                                       12.04               5b117edd0b76        15 months ago       104MB

Those are mine custom conductors :

container-conductor-ubuntu-precise           0.9.2               cd3c64ac8964        4 days ago          644MB
container-conductor-ubuntu-trusty            0.9.2               2492b86790fb        4 days ago          732MB
container-conductor-ubuntu-xenial            0.9.2               f70c0b497a53        4 days ago          811MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment