Skip to content

Instantly share code, notes, and snippets.

@polarlights
Created January 11, 2016 07:41
Show Gist options
  • Save polarlights/7d828a33fbab4c7d000e to your computer and use it in GitHub Desktop.
Save polarlights/7d828a33fbab4c7d000e to your computer and use it in GitHub Desktop.
packer_docker_log.log
ubuntu@ip-172-31-17-29:~/ansible_docker$ packer build templates/production/docker_mysql.json
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Starting docker container...
docker: Run command: docker run -v /tmp/packer-docker353976599:/packer-files -d -i -t alo7/ubuntu:base_server /bin/bash
docker: Container ID: 0679b2f24b7cce27257597f18ba8cc5e1616cda9006aa93373a36ab397de1079
==> docker: Provisioning with shell script: provision/scripts/install_common.sh
docker: Install common software ...
docker: Reading package lists...
docker: Building dependency tree...
docker: Reading state information...
docker: zip is already the newest version.
docker: The following packages will be upgraded:
docker: python3-software-properties software-properties-common wget
docker: 3 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
docker: Need to get 298 kB of archives.
docker: After this operation, 0 B of additional disk space will be used.
docker: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.1 [269 kB]
docker: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.6 [9372 B]
docker: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
docker: dpkg-preconfigure: unable to re-open stdin: No such file or directory
docker: Fetched 298 kB in 3s (96.0 kB/s)
docker: (Reading database ... 37254 files and directories currently installed.)
docker: Preparing to unpack .../wget_1.15-1ubuntu1.14.04.1_amd64.deb ...
docker: Unpacking wget (1.15-1ubuntu1.14.04.1) over (1.15-1ubuntu1) ...
docker: Preparing to unpack .../software-properties-common_0.92.37.6_all.deb ...
docker: Unpacking software-properties-common (0.92.37.6) over (0.92.36) ...
docker: Preparing to unpack .../python3-software-properties_0.92.37.6_all.deb ...
docker: Unpacking python3-software-properties (0.92.37.6) over (0.92.36) ...
docker: Setting up wget (1.15-1ubuntu1.14.04.1) ...
docker: Setting up python3-software-properties (0.92.37.6) ...
docker: Setting up software-properties-common (0.92.37.6) ...
==> docker: Provisioning with shell script: provision/scripts/install_ansible.sh
docker: Install ansible ...
==> docker: Provisioning with Ansible...
docker: Uploading Playbook directory to Ansible staging directory...
docker: Creating directory: /tmp/packer-provisioner-ansible-local
docker: Uploading main Playbook file...
docker: Uploading inventory file...
docker: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/mysql.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local885644889
docker:
docker: PLAY [server mysql configration] **********************************************
docker:
docker: GATHERING FACTS ***************************************************************
docker: ok: [127.0.0.1]
docker:
docker: TASK: [mysql | Install the mysql packages] ************************************
docker: changed: [127.0.0.1] => (item=mysql-server,mysql-client,python-mysqldb)
docker:
docker: TASK: [mysql | MySQL | Update the my.cnf] *************************************
docker: changed: [127.0.0.1]
docker:
docker: TASK: [mysql | make sure mysql is started] ************************************
docker: ok: [127.0.0.1]
docker:
docker: TASK: [mysql | MySQL | Test whether the root password has already been changed (external hostname).] ***
docker: failed: [127.0.0.1] => (item=0679b2f24b7c) => {"failed": true, "item": "0679b2f24b7c"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker:
docker: TASK: [mysql | MySQL | Changing the root password (external hostname).] *******
docker: failed: [127.0.0.1] => (item=0679b2f24b7c) => {"failed": true, "item": "0679b2f24b7c"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker:
docker: FATAL: all hosts have already failed -- aborting
docker:
docker: PLAY RECAP ********************************************************************
docker: to retry, use: --limit @/root/mysql.retry
docker:
docker: 127.0.0.1 : ok=5 changed=2 unreachable=0 failed=1
docker:
==> docker: Killing the container: 0679b2f24b7cce27257597f18ba8cc5e1616cda9006aa93373a36ab397de1079
Build 'docker' errored: Error executing Ansible: Non-zero exit status: 2
==> Some builds didn't complete successfully and had errors:
--> docker: Error executing Ansible: Non-zero exit status: 2
==> Builds finished but no artifacts were created.
ubuntu@ip-172-31-17-26:~/ansible_docker$ ansible --version
ansible 1.9.4
configured module search path = None
ubuntu@ip-172-31-17-26:~/ansible_docker$
ubuntu@ip-172-31-17-26:~/ansible_docker$ docker info
Containers: 19
Images: 7
Server Version: 1.9.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 45
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-48-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 1
Total Memory: 992.5 MiB
Name: ip-172-31-17-26
ID: TYBR:7I3L:X72J:FH24:5FN7:LQHM:4WQA:PD4O:I7QO:ODCE:FN34:45SB
WARNING: No swap limit support
ubuntu@ip-172-31-17-26:~/ansible_docker$ docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.2
Git commit: a34a1d5
Built: Fri Nov 20 13:12:04 UTC 2015
OS/Arch: linux/amd64
ubuntu@ip-172-31-17-26:~/ansible_docker$ q
ubuntu@ip-172-31-17-26:~/ansible_docker$ vim provision/ansible/roles/mysql/
handlers/ tasks/ templates/
ubuntu@ip-172-31-17-26:~/ansible_docker$ vim provision/ansible/roles/mysql/tasks/secure.yml
ubuntu@ip-172-31-17-26:~/ansible_docker$
ubuntu@ip-172-31-17-26:~/ansible_docker$ uname -a
Linux ip-172-31-17-26 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ip-172-31-17-26:~/ansible_docker$ packer build templates/production/docker_mysql.jsonq
Failed to parse template: open templates/production/docker_mysql.jsonq: no such file or directory
ubuntu@ip-172-31-17-26:~/ansible_docker$ ls
README.md provision templates
ubuntu@ip-172-31-17-26:~/ansible_docker$ packer build templates/production/docker_mysql.json
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Starting docker container...
docker: Run command: docker run -v /tmp/packer-docker525676826:/packer-files -d -i -t alo7/ubuntu:base_server /bin/bash
docker: Container ID: 061236525a1fbb046dbe66411b445b400391f67f90688732f2f15d11db232e74
==> docker: Provisioning with shell script: provision/scripts/install_common.sh
docker: Install common software ...
docker: Reading package lists...
docker: Building dependency tree...
docker: Reading state information...
docker: zip is already the newest version.
docker: The following packages will be upgraded:
docker: python3-software-properties software-properties-common wget
docker: 3 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
docker: Need to get 298 kB of archives.
docker: After this operation, 0 B of additional disk space will be used.
docker: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.1 [269 kB]
docker: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.6 [9372 B]
docker: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
docker: dpkg-preconfigure: unable to re-open stdin: No such file or directory
docker: Fetched 298 kB in 2s (139 kB/s)
docker: (Reading database ... 37254 files and directories currently installed.)
docker: Preparing to unpack .../wget_1.15-1ubuntu1.14.04.1_amd64.deb ...
docker: Unpacking wget (1.15-1ubuntu1.14.04.1) over (1.15-1ubuntu1) ...
docker: Preparing to unpack .../software-properties-common_0.92.37.6_all.deb ...
docker: Unpacking software-properties-common (0.92.37.6) over (0.92.36) ...
docker: Preparing to unpack .../python3-software-properties_0.92.37.6_all.deb ...
docker: Unpacking python3-software-properties (0.92.37.6) over (0.92.36) ...
docker: Setting up wget (1.15-1ubuntu1.14.04.1) ...
docker: Setting up python3-software-properties (0.92.37.6) ...
docker: Setting up software-properties-common (0.92.37.6) ...
==> docker: Provisioning with shell script: provision/scripts/install_ansible.sh
docker: Install ansible ...
==> docker: Provisioning with Ansible...
docker: Uploading Playbook directory to Ansible staging directory...
docker: Creating directory: /tmp/packer-provisioner-ansible-local
docker: Uploading main Playbook file...
docker: Uploading inventory file...
docker: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/mysql.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local706197735
docker:
docker: PLAY [server mysql configration] **********************************************
docker:
docker: GATHERING FACTS ***************************************************************
docker: ok: [127.0.0.1]
docker:
docker: TASK: [mysql | Install the mysql packages] ************************************
docker: changed: [127.0.0.1] => (item=mysql-server,mysql-client,python-mysqldb)
docker:
docker: TASK: [mysql | MySQL | Update the my.cnf] *************************************
docker: changed: [127.0.0.1]
docker:
docker: TASK: [mysql | make sure mysql is started] ************************************
docker: ok: [127.0.0.1]
docker:
docker: TASK: [mysql | MySQL | Test whether the root password has already been changed (external hostname).] ***
docker: failed: [127.0.0.1] => (item=061236525a1f) => {"failed": true, "item": "061236525a1f"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: ...ignoring
docker:
docker: TASK: [mysql | MySQL | Changing the root password (external hostname).] *******
docker: failed: [127.0.0.1] => (item=061236525a1f) => {"failed": true, "item": "061236525a1f"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker:
docker: FATAL: all hosts have already failed -- aborting
docker:
docker: PLAY RECAP ********************************************************************
docker: to retry, use: --limit @/root/mysql.retry
docker:
docker: 127.0.0.1 : ok=5 changed=2 unreachable=0 failed=1
docker:
==> docker: Killing the container: 061236525a1fbb046dbe66411b445b400391f67f90688732f2f15d11db232e74
Build 'docker' errored: Error executing Ansible: Non-zero exit status: 2
==> Some builds didn't complete successfully and had errors:
--> docker: Error executing Ansible: Non-zero exit status: 2
==> Builds finished but no artifacts were created.
ubuntu@ip-172-31-17-26:~/ansible_docker$
ubuntu@ip-172-31-17-26:~/ansible_docker$ packer -v
0.8.6
ubuntu@ip-172-31-17-26:~/ansible_docker$ PACKER_LOG=1 packer build templates/production/docker_mysql.json
2016/01/11 07:38:43 [INFO] Packer version: 0.8.6 f8f7b7a34c1be06058f5aca23a51247db12cdbc5+CHANGES
2016/01/11 07:38:43 Packer Target OS/Arch: linux amd64
2016/01/11 07:38:43 Built with Go Version: go1.5
2016/01/11 07:38:43 [DEBUG] Discovered plugin: amazon-chroot = /usr/local/bin/packer-builder-amazon-chroot
2016/01/11 07:38:43 [DEBUG] Discovered plugin: amazon-ebs = /usr/local/bin/packer-builder-amazon-ebs
2016/01/11 07:38:43 [DEBUG] Discovered plugin: amazon-instance = /usr/local/bin/packer-builder-amazon-instance
2016/01/11 07:38:43 [DEBUG] Discovered plugin: digitalocean = /usr/local/bin/packer-builder-digitalocean
2016/01/11 07:38:43 [DEBUG] Discovered plugin: docker = /usr/local/bin/packer-builder-docker
2016/01/11 07:38:43 [DEBUG] Discovered plugin: file = /usr/local/bin/packer-builder-file
2016/01/11 07:38:43 [DEBUG] Discovered plugin: googlecompute = /usr/local/bin/packer-builder-googlecompute
2016/01/11 07:38:43 [DEBUG] Discovered plugin: null = /usr/local/bin/packer-builder-null
2016/01/11 07:38:43 [DEBUG] Discovered plugin: openstack = /usr/local/bin/packer-builder-openstack
2016/01/11 07:38:43 [DEBUG] Discovered plugin: parallels-iso = /usr/local/bin/packer-builder-parallels-iso
2016/01/11 07:38:43 [DEBUG] Discovered plugin: parallels-pvm = /usr/local/bin/packer-builder-parallels-pvm
2016/01/11 07:38:43 [DEBUG] Discovered plugin: qemu = /usr/local/bin/packer-builder-qemu
2016/01/11 07:38:43 [DEBUG] Discovered plugin: virtualbox-iso = /usr/local/bin/packer-builder-virtualbox-iso
2016/01/11 07:38:43 [DEBUG] Discovered plugin: virtualbox-ovf = /usr/local/bin/packer-builder-virtualbox-ovf
2016/01/11 07:38:43 [DEBUG] Discovered plugin: vmware-iso = /usr/local/bin/packer-builder-vmware-iso
2016/01/11 07:38:43 [DEBUG] Discovered plugin: vmware-vmx = /usr/local/bin/packer-builder-vmware-vmx
2016/01/11 07:38:43 [DEBUG] Discovered plugin: artifice = /usr/local/bin/packer-post-processor-artifice
2016/01/11 07:38:43 [DEBUG] Discovered plugin: atlas = /usr/local/bin/packer-post-processor-atlas
2016/01/11 07:38:43 [DEBUG] Discovered plugin: compress = /usr/local/bin/packer-post-processor-compress
2016/01/11 07:38:43 [DEBUG] Discovered plugin: docker-import = /usr/local/bin/packer-post-processor-docker-import
2016/01/11 07:38:43 [DEBUG] Discovered plugin: docker-push = /usr/local/bin/packer-post-processor-docker-push
2016/01/11 07:38:43 [DEBUG] Discovered plugin: docker-save = /usr/local/bin/packer-post-processor-docker-save
2016/01/11 07:38:43 [DEBUG] Discovered plugin: docker-tag = /usr/local/bin/packer-post-processor-docker-tag
2016/01/11 07:38:43 [DEBUG] Discovered plugin: vagrant = /usr/local/bin/packer-post-processor-vagrant
2016/01/11 07:38:43 [DEBUG] Discovered plugin: vagrant-cloud = /usr/local/bin/packer-post-processor-vagrant-cloud
2016/01/11 07:38:43 [DEBUG] Discovered plugin: vsphere = /usr/local/bin/packer-post-processor-vsphere
2016/01/11 07:38:43 [DEBUG] Discovered plugin: ansible-local = /usr/local/bin/packer-provisioner-ansible-local
2016/01/11 07:38:43 [DEBUG] Discovered plugin: chef-client = /usr/local/bin/packer-provisioner-chef-client
2016/01/11 07:38:43 [DEBUG] Discovered plugin: chef-solo = /usr/local/bin/packer-provisioner-chef-solo
2016/01/11 07:38:43 [DEBUG] Discovered plugin: file = /usr/local/bin/packer-provisioner-file
2016/01/11 07:38:43 [DEBUG] Discovered plugin: powershell = /usr/local/bin/packer-provisioner-powershell
2016/01/11 07:38:43 [DEBUG] Discovered plugin: puppet-masterless = /usr/local/bin/packer-provisioner-puppet-masterless
2016/01/11 07:38:43 [DEBUG] Discovered plugin: puppet-server = /usr/local/bin/packer-provisioner-puppet-server
2016/01/11 07:38:43 [DEBUG] Discovered plugin: salt-masterless = /usr/local/bin/packer-provisioner-salt-masterless
2016/01/11 07:38:43 [DEBUG] Discovered plugin: shell = /usr/local/bin/packer-provisioner-shell
2016/01/11 07:38:43 [DEBUG] Discovered plugin: shell-local = /usr/local/bin/packer-provisioner-shell-local
2016/01/11 07:38:43 [DEBUG] Discovered plugin: windows-restart = /usr/local/bin/packer-provisioner-windows-restart
2016/01/11 07:38:43 [DEBUG] Discovered plugin: windows-shell = /usr/local/bin/packer-provisioner-windows-shell
2016/01/11 07:38:43 Detected home directory from env var: /home/ubuntu
2016/01/11 07:38:43 Detected home directory from env var: /home/ubuntu
2016/01/11 07:38:43 Attempting to open config file: /home/ubuntu/.packerconfig
2016/01/11 07:38:43 [WARN] Config file doesn't exist: /home/ubuntu/.packerconfig
2016/01/11 07:38:43 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[amazon-instance:/usr/local/bin/packer-builder-amazon-instance vmware-iso:/usr/local/bin/packer-builder-vmware-iso amazon-chroot:/usr/local/bin/packer-builder-amazon-chroot amazon-ebs:/usr/local/bin/packer-builder-amazon-ebs googlecompute:/usr/local/bin/packer-builder-googlecompute qemu:/usr/local/bin/packer-builder-qemu openstack:/usr/local/bin/packer-builder-openstack virtualbox-iso:/usr/local/bin/packer-builder-virtualbox-iso vmware-vmx:/usr/local/bin/packer-builder-vmware-vmx file:/usr/local/bin/packer-builder-file null:/usr/local/bin/packer-builder-null parallels-iso:/usr/local/bin/packer-builder-parallels-iso parallels-pvm:/usr/local/bin/packer-builder-parallels-pvm virtualbox-ovf:/usr/local/bin/packer-builder-virtualbox-ovf digitalocean:/usr/local/bin/packer-builder-digitalocean docker:/usr/local/bin/packer-builder-docker] PostProcessors:map[docker-push:/usr/local/bin/packer-post-processor-docker-push docker-save:/usr/local/bin/packer-post-processor-docker-save docker-tag:/usr/local/bin/packer-post-processor-docker-tag vagrant:/usr/local/bin/packer-post-processor-vagrant vsphere:/usr/local/bin/packer-post-processor-vsphere artifice:/usr/local/bin/packer-post-processor-artifice atlas:/usr/local/bin/packer-post-processor-atlas compress:/usr/local/bin/packer-post-processor-compress docker-import:/usr/local/bin/packer-post-processor-docker-import vagrant-cloud:/usr/local/bin/packer-post-processor-vagrant-cloud] Provisioners:map[powershell:/usr/local/bin/packer-provisioner-powershell windows-restart:/usr/local/bin/packer-provisioner-windows-restart windows-shell:/usr/local/bin/packer-provisioner-windows-shell ansible-local:/usr/local/bin/packer-provisioner-ansible-local chef-client:/usr/local/bin/packer-provisioner-chef-client chef-solo:/usr/local/bin/packer-provisioner-chef-solo salt-masterless:/usr/local/bin/packer-provisioner-salt-masterless shell:/usr/local/bin/packer-provisioner-shell shell-local:/usr/local/bin/packer-provisioner-shell-local file:/usr/local/bin/packer-provisioner-file puppet-masterless:/usr/local/bin/packer-provisioner-puppet-masterless puppet-server:/usr/local/bin/packer-provisioner-puppet-server]}
2016/01/11 07:38:43 Setting cache directory: /home/ubuntu/ansible_docker/packer_cache
2016/01/11 07:38:43 Loading builder: docker
2016/01/11 07:38:43 Creating plugin client for path: /usr/local/bin/packer-builder-docker
2016/01/11 07:38:43 Starting plugin: /usr/local/bin/packer-builder-docker []string{"/usr/local/bin/packer-builder-docker"}
2016/01/11 07:38:43 Waiting for RPC address for: /usr/local/bin/packer-builder-docker
2016/01/11 07:38:43 Detected home directory from env var: /home/ubuntu
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Plugin minimum port: 10000
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Plugin maximum port: 25000
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Plugin address: unix /tmp/packer-plugin741099413
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Waiting for connection...
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Serving a plugin connection...
2016/01/11 07:38:43 Loading provisioner: shell
2016/01/11 07:38:43 Creating plugin client for path: /usr/local/bin/packer-provisioner-shell
2016/01/11 07:38:43 Starting plugin: /usr/local/bin/packer-provisioner-shell []string{"/usr/local/bin/packer-provisioner-shell"}
2016/01/11 07:38:43 Waiting for RPC address for: /usr/local/bin/packer-provisioner-shell
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Plugin minimum port: 10000
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Plugin maximum port: 25000
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Plugin address: unix /tmp/packer-plugin570066928
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Waiting for connection...
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Serving a plugin connection...
2016/01/11 07:38:43 Loading provisioner: ansible-local
2016/01/11 07:38:43 Creating plugin client for path: /usr/local/bin/packer-provisioner-ansible-local
2016/01/11 07:38:43 Starting plugin: /usr/local/bin/packer-provisioner-ansible-local []string{"/usr/local/bin/packer-provisioner-ansible-local"}
2016/01/11 07:38:43 Waiting for RPC address for: /usr/local/bin/packer-provisioner-ansible-local
2016/01/11 07:38:43 packer-provisioner-ansible-local: 2016/01/11 07:38:43 Plugin minimum port: 10000
2016/01/11 07:38:43 packer-provisioner-ansible-local: 2016/01/11 07:38:43 Plugin maximum port: 25000
2016/01/11 07:38:43 packer-provisioner-ansible-local: 2016/01/11 07:38:43 Plugin address: unix /tmp/packer-plugin327109763
2016/01/11 07:38:43 packer-provisioner-ansible-local: 2016/01/11 07:38:43 Waiting for connection...
2016/01/11 07:38:43 packer-provisioner-ansible-local: 2016/01/11 07:38:43 Serving a plugin connection...
2016/01/11 07:38:43 Loading post-processor: docker-tag
2016/01/11 07:38:43 Creating plugin client for path: /usr/local/bin/packer-post-processor-docker-tag
2016/01/11 07:38:43 Starting plugin: /usr/local/bin/packer-post-processor-docker-tag []string{"/usr/local/bin/packer-post-processor-docker-tag"}
2016/01/11 07:38:43 Waiting for RPC address for: /usr/local/bin/packer-post-processor-docker-tag
2016/01/11 07:38:43 packer-post-processor-docker-tag: 2016/01/11 07:38:43 Plugin minimum port: 10000
2016/01/11 07:38:43 packer-post-processor-docker-tag: 2016/01/11 07:38:43 Plugin maximum port: 25000
2016/01/11 07:38:43 packer-post-processor-docker-tag: 2016/01/11 07:38:43 Plugin address: unix /tmp/packer-plugin232918289
2016/01/11 07:38:43 packer-post-processor-docker-tag: 2016/01/11 07:38:43 Waiting for connection...
2016/01/11 07:38:43 packer-post-processor-docker-tag: 2016/01/11 07:38:43 Serving a plugin connection...
2016/01/11 07:38:43 ui: docker output will be in this color.
docker output will be in this color.
2016/01/11 07:38:43 ui:
2016/01/11 07:38:43 Build debug mode: false
2016/01/11 07:38:43 Force build: false
2016/01/11 07:38:43 Preparing build: docker
2016/01/11 07:38:43 Waiting on builds to complete...
2016/01/11 07:38:43 Starting build run: docker
2016/01/11 07:38:43 Running builder: docker
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 [DEBUG] Docker version: 1.9.1
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 [DEBUG] Container will be committed
2016/01/11 07:38:43 ui: ==> docker: Creating a temporary directory for sharing data...
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Pull disabled, won't docker pull
==> docker: Creating a temporary directory for sharing data...
2016/01/11 07:38:43 ui: ==> docker: Starting docker container...
==> docker: Starting docker container...
docker: Run command: docker run -v /tmp/packer-docker151408624:/packer-files -d -i -t alo7/ubuntu:base_server /bin/bash
2016/01/11 07:38:43 ui: docker: Run command: docker run -v /tmp/packer-docker151408624:/packer-files -d -i -t alo7/ubuntu:base_server /bin/bash
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Starting container with args: [run -v /tmp/packer-docker151408624:/packer-files -d -i -t alo7/ubuntu:base_server /bin/bash]
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Waiting for container to finish starting
2016/01/11 07:38:43 ui: docker: Container ID: 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08
docker: Container ID: 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Running the provision hook
==> docker: Provisioning with shell script: provision/scripts/install_common.sh
2016/01/11 07:38:43 ui: ==> docker: Provisioning with shell script: provision/scripts/install_common.sh
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 Opening provision/scripts/install_common.sh for reading
2016/01/11 07:38:43 packer-provisioner-shell: 2016/01/11 07:38:43 [INFO] 203 bytes written for 'uploadData'
2016/01/11 07:38:43 [INFO] 203 bytes written for 'uploadData'
2016/01/11 07:38:43 packer-builder-docker: 2016/01/11 07:38:43 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(command cp /packer-files/upload110840975 /tmp/script_7943.sh) >/packer-files/cmd886216354 2>&1; echo $? >/packer-files/cmd886216354-exit"
2016/01/11 07:38:45 packer-builder-docker: 2016/01/11 07:38:45 Waiting for exit code to appear for remote command...
2016/01/11 07:38:45 packer-builder-docker: 2016/01/11 07:38:45 Executed command exit status: 0
2016/01/11 07:38:47 packer-builder-docker: 2016/01/11 07:38:47 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(chmod 0755 /tmp/script_7943.sh) >/packer-files/cmd297898393 2>&1; echo $? >/packer-files/cmd297898393-exit"
2016/01/11 07:38:49 packer-builder-docker: 2016/01/11 07:38:49 Waiting for exit code to appear for remote command...
2016/01/11 07:38:49 packer-builder-docker: 2016/01/11 07:38:49 Executed command exit status: 0
2016/01/11 07:38:51 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:38:51 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:38:51 packer-provisioner-shell: 2016/01/11 07:38:51 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:38:51 packer-builder-docker: 2016/01/11 07:38:51 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:38:51 packer-builder-docker: 2016/01/11 07:38:51 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(chmod +x /tmp/script_7943.sh; PACKER_BUILD_NAME='docker' PACKER_BUILDER_TYPE='docker' /tmp/script_7943.sh) >/packer-files/cmd441255972 2>&1; echo $? >/packer-files/cmd441255972-exit"
2016/01/11 07:38:54 ui: docker: Install common software ...
docker: Install common software ...
2016/01/11 07:38:55 ui: docker: Reading package lists...
docker: Reading package lists...
2016/01/11 07:38:55 ui: docker: Building dependency tree...
docker: Building dependency tree...
2016/01/11 07:38:55 ui: docker: Reading state information...
docker: Reading state information...
2016/01/11 07:38:55 ui: docker: zip is already the newest version.
docker: zip is already the newest version.
2016/01/11 07:38:55 ui: docker: The following packages will be upgraded:
docker: The following packages will be upgraded:
2016/01/11 07:38:55 ui: docker: python3-software-properties software-properties-common wget
docker: python3-software-properties software-properties-common wget
2016/01/11 07:38:56 ui: docker: 3 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
docker: 3 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
2016/01/11 07:38:56 ui: docker: Need to get 298 kB of archives.
docker: Need to get 298 kB of archives.
2016/01/11 07:38:56 ui: docker: After this operation, 0 B of additional disk space will be used.
docker: After this operation, 0 B of additional disk space will be used.
2016/01/11 07:38:56 ui: docker: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.1 [269 kB]
docker: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.1 [269 kB]
2016/01/11 07:38:57 ui: docker: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.6 [9372 B]
docker: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.6 [9372 B]
2016/01/11 07:38:57 ui: docker: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
docker: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.6 [19.1 kB]
2016/01/11 07:38:58 ui: docker: dpkg-preconfigure: unable to re-open stdin: No such file or directory
docker: dpkg-preconfigure: unable to re-open stdin: No such file or directory
2016/01/11 07:38:58 ui: docker: Fetched 298 kB in 2s (140 kB/s)
docker: Fetched 298 kB in 2s (140 kB/s)
2016/01/11 07:38:58 ui: docker: (Reading database ... 37254 files and directories currently installed.)
docker: (Reading database ... 37254 files and directories currently installed.)
2016/01/11 07:38:58 ui: docker: Preparing to unpack .../wget_1.15-1ubuntu1.14.04.1_amd64.deb ...
docker: Preparing to unpack .../wget_1.15-1ubuntu1.14.04.1_amd64.deb ...
2016/01/11 07:38:58 ui: docker: Unpacking wget (1.15-1ubuntu1.14.04.1) over (1.15-1ubuntu1) ...
docker: Unpacking wget (1.15-1ubuntu1.14.04.1) over (1.15-1ubuntu1) ...
2016/01/11 07:38:58 ui: docker: Preparing to unpack .../software-properties-common_0.92.37.6_all.deb ...
docker: Preparing to unpack .../software-properties-common_0.92.37.6_all.deb ...
2016/01/11 07:38:58 ui: docker: Unpacking software-properties-common (0.92.37.6) over (0.92.36) ...
docker: Unpacking software-properties-common (0.92.37.6) over (0.92.36) ...
2016/01/11 07:38:58 ui: docker: Preparing to unpack .../python3-software-properties_0.92.37.6_all.deb ...
docker: Preparing to unpack .../python3-software-properties_0.92.37.6_all.deb ...
2016/01/11 07:38:58 ui: docker: Unpacking python3-software-properties (0.92.37.6) over (0.92.36) ...
docker: Unpacking python3-software-properties (0.92.37.6) over (0.92.36) ...
2016/01/11 07:38:58 ui: docker: Setting up wget (1.15-1ubuntu1.14.04.1) ...
docker: Setting up wget (1.15-1ubuntu1.14.04.1) ...
2016/01/11 07:38:58 ui: docker: Setting up python3-software-properties (0.92.37.6) ...
docker: Setting up python3-software-properties (0.92.37.6) ...
2016/01/11 07:38:58 ui: docker: Setting up software-properties-common (0.92.37.6) ...
docker: Setting up software-properties-common (0.92.37.6) ...
2016/01/11 07:38:59 packer-builder-docker: 2016/01/11 07:38:59 Waiting for exit code to appear for remote command...
2016/01/11 07:38:59 packer-builder-docker: 2016/01/11 07:38:59 Executed command exit status: 0
2016/01/11 07:39:00 packer-builder-docker: 2016/01/11 07:39:00 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:00 [INFO] 1473 bytes written for 'stdout'
2016/01/11 07:39:00 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:00 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:00 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:00 packer-provisioner-shell: 2016/01/11 07:39:00 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:00 packer-provisioner-shell: 2016/01/11 07:39:00 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:00 packer-provisioner-shell: 2016/01/11 07:39:00 [INFO] 1473 bytes written for 'stdout'
2016/01/11 07:39:00 packer-builder-docker: 2016/01/11 07:39:00 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(rm -f /tmp/script_7943.sh) >/packer-files/cmd087909171 2>&1; echo $? >/packer-files/cmd087909171-exit"
2016/01/11 07:39:02 packer-builder-docker: 2016/01/11 07:39:02 Waiting for exit code to appear for remote command...
2016/01/11 07:39:02 packer-builder-docker: 2016/01/11 07:39:02 Executed command exit status: 0
2016/01/11 07:39:04 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:04 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:04 packer-provisioner-shell: 2016/01/11 07:39:04 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:04 packer-builder-docker: 2016/01/11 07:39:04 [INFO] RPC endpoint: Communicator ended with: 0
==> docker: Provisioning with shell script: provision/scripts/install_ansible.sh
2016/01/11 07:39:04 ui: ==> docker: Provisioning with shell script: provision/scripts/install_ansible.sh
2016/01/11 07:39:04 packer-provisioner-shell: 2016/01/11 07:39:04 Opening provision/scripts/install_ansible.sh for reading
2016/01/11 07:39:04 packer-provisioner-shell: 2016/01/11 07:39:04 [INFO] 173 bytes written for 'uploadData'
2016/01/11 07:39:04 [INFO] 173 bytes written for 'uploadData'
2016/01/11 07:39:04 packer-builder-docker: 2016/01/11 07:39:04 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(command cp /packer-files/upload159989494 /tmp/script_7943.sh) >/packer-files/cmd748217309 2>&1; echo $? >/packer-files/cmd748217309-exit"
2016/01/11 07:39:06 packer-builder-docker: 2016/01/11 07:39:06 Waiting for exit code to appear for remote command...
2016/01/11 07:39:06 packer-builder-docker: 2016/01/11 07:39:06 Executed command exit status: 0
2016/01/11 07:39:08 packer-builder-docker: 2016/01/11 07:39:08 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(chmod 0755 /tmp/script_7943.sh) >/packer-files/cmd417977752 2>&1; echo $? >/packer-files/cmd417977752-exit"
2016/01/11 07:39:10 packer-builder-docker: 2016/01/11 07:39:10 Waiting for exit code to appear for remote command...
2016/01/11 07:39:10 packer-builder-docker: 2016/01/11 07:39:10 Executed command exit status: 0
2016/01/11 07:39:12 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:12 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:12 packer-provisioner-shell: 2016/01/11 07:39:12 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:12 packer-builder-docker: 2016/01/11 07:39:12 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:12 packer-builder-docker: 2016/01/11 07:39:12 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(chmod +x /tmp/script_7943.sh; PACKER_BUILD_NAME='docker' PACKER_BUILDER_TYPE='docker' /tmp/script_7943.sh) >/packer-files/cmd269207575 2>&1; echo $? >/packer-files/cmd269207575-exit"
2016/01/11 07:39:14 ui: docker: Install ansible ...
docker: Install ansible ...
2016/01/11 07:39:14 packer-builder-docker: 2016/01/11 07:39:14 Waiting for exit code to appear for remote command...
2016/01/11 07:39:14 packer-builder-docker: 2016/01/11 07:39:14 Executed command exit status: 0
2016/01/11 07:39:16 [INFO] 20 bytes written for 'stdout'
2016/01/11 07:39:16 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:16 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:16 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:16 packer-builder-docker: 2016/01/11 07:39:16 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:16 packer-provisioner-shell: 2016/01/11 07:39:16 [INFO] 20 bytes written for 'stdout'
2016/01/11 07:39:16 packer-provisioner-shell: 2016/01/11 07:39:16 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:16 packer-provisioner-shell: 2016/01/11 07:39:16 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:16 packer-builder-docker: 2016/01/11 07:39:16 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(rm -f /tmp/script_7943.sh) >/packer-files/cmd598788746 2>&1; echo $? >/packer-files/cmd598788746-exit"
2016/01/11 07:39:18 packer-builder-docker: 2016/01/11 07:39:18 Waiting for exit code to appear for remote command...
2016/01/11 07:39:18 packer-builder-docker: 2016/01/11 07:39:18 Executed command exit status: 0
2016/01/11 07:39:20 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:20 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:20 packer-provisioner-shell: 2016/01/11 07:39:20 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:20 packer-builder-docker: 2016/01/11 07:39:20 [INFO] RPC endpoint: Communicator ended with: 0
==> docker: Provisioning with Ansible...
2016/01/11 07:39:20 ui: ==> docker: Provisioning with Ansible...
docker: Uploading Playbook directory to Ansible staging directory...
2016/01/11 07:39:20 ui: docker: Uploading Playbook directory to Ansible staging directory...
2016/01/11 07:39:21 ui: docker: Creating directory: /tmp/packer-provisioner-ansible-local
docker: Creating directory: /tmp/packer-provisioner-ansible-local
2016/01/11 07:39:21 packer-builder-docker: 2016/01/11 07:39:21 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(mkdir -p '/tmp/packer-provisioner-ansible-local') >/packer-files/cmd150695521 2>&1; echo $? >/packer-files/cmd150695521-exit"
2016/01/11 07:39:23 packer-builder-docker: 2016/01/11 07:39:23 Waiting for exit code to appear for remote command...
2016/01/11 07:39:23 packer-builder-docker: 2016/01/11 07:39:23 Executed command exit status: 0
2016/01/11 07:39:25 [INFO] 0 bytes written for 'stdout'
2016/01/11 07:39:25 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:25 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:25 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:25 packer-provisioner-ansible-local: 2016/01/11 07:39:25 [INFO] 0 bytes written for 'stdout'
2016/01/11 07:39:25 packer-provisioner-ansible-local: 2016/01/11 07:39:25 [INFO] RPC client: Communicator ended with: 0
2016/01/11 07:39:25 packer-provisioner-ansible-local: 2016/01/11 07:39:25 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:39:25 packer-builder-docker: 2016/01/11 07:39:25 [INFO] RPC endpoint: Communicator ended with: 0
2016/01/11 07:39:25 packer-builder-docker: 2016/01/11 07:39:25 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(set -e; mkdir -p /tmp/packer-provisioner-ansible-local; command cp -R /packer-files/dirupload335509068/* /tmp/packer-provisioner-ansible-local) >/packer-files/cmd532719931 2>&1; echo $? >/packer-files/cmd532719931-exit"
2016/01/11 07:39:27 packer-builder-docker: 2016/01/11 07:39:27 Waiting for exit code to appear for remote command...
2016/01/11 07:39:27 packer-builder-docker: 2016/01/11 07:39:27 Executed command exit status: 0
2016/01/11 07:39:29 ui: docker: Uploading main Playbook file...
docker: Uploading main Playbook file...
2016/01/11 07:39:29 packer-provisioner-ansible-local: 2016/01/11 07:39:29 [INFO] 91 bytes written for 'uploadData'
2016/01/11 07:39:29 [INFO] 91 bytes written for 'uploadData'
2016/01/11 07:39:29 packer-builder-docker: 2016/01/11 07:39:29 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(command cp /packer-files/upload263022942 /tmp/packer-provisioner-ansible-local/mysql.yml) >/packer-files/cmd533186853 2>&1; echo $? >/packer-files/cmd533186853-exit"
2016/01/11 07:39:31 packer-builder-docker: 2016/01/11 07:39:31 Waiting for exit code to appear for remote command...
2016/01/11 07:39:31 packer-builder-docker: 2016/01/11 07:39:31 Executed command exit status: 0
docker: Uploading inventory file...
2016/01/11 07:39:33 ui: docker: Uploading inventory file...
2016/01/11 07:39:33 packer-provisioner-ansible-local: 2016/01/11 07:39:33 [INFO] 18 bytes written for 'uploadData'
2016/01/11 07:39:33 [INFO] 18 bytes written for 'uploadData'
2016/01/11 07:39:33 packer-builder-docker: 2016/01/11 07:39:33 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(command cp /packer-files/upload408283200 /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local172147206) >/packer-files/cmd637170847 2>&1; echo $? >/packer-files/cmd637170847-exit"
2016/01/11 07:39:35 packer-builder-docker: 2016/01/11 07:39:35 Waiting for exit code to appear for remote command...
2016/01/11 07:39:35 packer-builder-docker: 2016/01/11 07:39:35 Executed command exit status: 0
docker: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/mysql.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local172147206
2016/01/11 07:39:37 ui: docker: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/mysql.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local172147206
2016/01/11 07:39:37 packer-builder-docker: 2016/01/11 07:39:37 Executing in container 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08: "(cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/mysql.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local172147206) >/packer-files/cmd313335154 2>&1; echo $? >/packer-files/cmd313335154-exit"
2016/01/11 07:39:39 ui: docker:
docker:
2016/01/11 07:39:39 ui: docker: PLAY [server mysql configration] **********************************************
docker: PLAY [server mysql configration] **********************************************
2016/01/11 07:39:39 ui: docker:
docker:
2016/01/11 07:39:39 ui: docker: GATHERING FACTS ***************************************************************
docker: GATHERING FACTS ***************************************************************
docker: ok: [127.0.0.1]
docker:
2016/01/11 07:39:40 ui: docker: ok: [127.0.0.1]
2016/01/11 07:39:40 ui: docker:
2016/01/11 07:39:40 ui: docker: TASK: [mysql | Install the mysql packages] ************************************
docker: TASK: [mysql | Install the mysql packages] ************************************
2016/01/11 07:40:09 ui: docker: changed: [127.0.0.1] => (item=mysql-server,mysql-client,python-mysqldb)
docker: changed: [127.0.0.1] => (item=mysql-server,mysql-client,python-mysqldb)
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: TASK: [mysql | MySQL | Update the my.cnf] *************************************
docker: TASK: [mysql | MySQL | Update the my.cnf] *************************************
2016/01/11 07:40:09 ui: docker: changed: [127.0.0.1]
docker: changed: [127.0.0.1]
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: TASK: [mysql | make sure mysql is started] ************************************
docker: TASK: [mysql | make sure mysql is started] ************************************
2016/01/11 07:40:09 ui: docker: ok: [127.0.0.1]
docker: ok: [127.0.0.1]
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: TASK: [mysql | MySQL | Test whether the root password has already been changed (external hostname).] ***
docker: TASK: [mysql | MySQL | Test whether the root password has already been changed (external hostname).] ***
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=6a278a29571b) => {"failed": true, "item": "6a278a29571b"}
docker: failed: [127.0.0.1] => (item=6a278a29571b) => {"failed": true, "item": "6a278a29571b"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: ...ignoring
docker: ...ignoring
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: ...ignoring
docker: ...ignoring
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: ...ignoring
docker: ...ignoring
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: ...ignoring
docker: ...ignoring
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: TASK: [mysql | MySQL | Changing the root password (external hostname).] *******
docker: TASK: [mysql | MySQL | Changing the root password (external hostname).] *******
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=6a278a29571b) => {"failed": true, "item": "6a278a29571b"}
docker: failed: [127.0.0.1] => (item=6a278a29571b) => {"failed": true, "item": "6a278a29571b"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
docker: failed: [127.0.0.1] => (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 packer-builder-docker: 2016/01/11 07:40:09 Waiting for exit code to appear for remote command...
2016/01/11 07:40:09 packer-builder-docker: 2016/01/11 07:40:09 Executed command exit status: 2
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
docker: failed: [127.0.0.1] => (item=::1) => {"failed": true, "item": "::1"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
docker: failed: [127.0.0.1] => (item=localhost) => {"failed": true, "item": "localhost"}
2016/01/11 07:40:09 ui: docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
docker: msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: FATAL: all hosts have already failed -- aborting
docker: FATAL: all hosts have already failed -- aborting
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: PLAY RECAP ********************************************************************
docker: PLAY RECAP ********************************************************************
2016/01/11 07:40:09 ui: docker: to retry, use: --limit @/root/mysql.retry
docker: to retry, use: --limit @/root/mysql.retry
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:09 ui: docker: 127.0.0.1 : ok=5 changed=2 unreachable=0 failed=1
docker: 127.0.0.1 : ok=5 changed=2 unreachable=0 failed=1
2016/01/11 07:40:09 ui: docker:
docker:
2016/01/11 07:40:11 packer-builder-docker: 2016/01/11 07:40:11 [INFO] RPC endpoint: Communicator ended with: 2
2016/01/11 07:40:11 [INFO] 2995 bytes written for 'stdout'
2016/01/11 07:40:11 [INFO] RPC client: Communicator ended with: 2
2016/01/11 07:40:11 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:40:11 [INFO] RPC endpoint: Communicator ended with: 2
2016/01/11 07:40:11 packer-provisioner-ansible-local: 2016/01/11 07:40:11 [INFO] RPC client: Communicator ended with: 2
2016/01/11 07:40:11 packer-provisioner-ansible-local: 2016/01/11 07:40:11 [INFO] 0 bytes written for 'stderr'
2016/01/11 07:40:11 packer-provisioner-ansible-local: 2016/01/11 07:40:11 [INFO] 2995 bytes written for 'stdout'
2016/01/11 07:40:11 ui: ==> docker: Killing the container: 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08
==> docker: Killing the container: 6a278a29571bf31a12eaf18e75d8e14f4d2a4f543280c5592d6edd85ff56df08
2016/01/11 07:40:12 ui error: Build 'docker' errored: Error executing Ansible: Non-zero exit status: 2
2016/01/11 07:40:12 Builds completed. Waiting on interrupt barrier...
2016/01/11 07:40:12 machine readable: error-count []string{"1"}
2016/01/11 07:40:12 ui error:
==> Some builds didn't complete successfully and had errors:
2016/01/11 07:40:12 machine readable: docker,error []string{"Error executing Ansible: Non-zero exit status: 2"}
2016/01/11 07:40:12 ui error: --> docker: Error executing Ansible: Non-zero exit status: 2
2016/01/11 07:40:12 ui:
==> Builds finished but no artifacts were created.
2016/01/11 07:40:12 waiting for all plugin processes to complete...
2016/01/11 07:40:12 /usr/local/bin/packer-post-processor-docker-tag: plugin process exited
2016/01/11 07:40:12 /usr/local/bin/packer-provisioner-ansible-local: plugin process exited
2016/01/11 07:40:12 /usr/local/bin/packer-provisioner-shell: plugin process exited
Build 'docker' errored: Error executing Ansible: Non-zero exit status: 2
==> Some builds didn't complete successfully and had errors:
2016/01/11 07:40:12 /usr/local/bin/packer-builder-docker: plugin process exited
--> docker: Error executing Ansible: Non-zero exit status: 2
==> Builds finished but no artifacts were created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment