Created
February 12, 2018 14:53
-
-
Save grej/94e20d55a9c9d89c8c5dc77bf2d3e1d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) ubuntu@ip-10-30-254-4:/ops/mbdevops$ python deploy_stack.py emea master master | |
Region: eu-central-1 | |
Stack: emea | |
Portal branch: master | |
Solver branch: master | |
packer build -var-file=packer/aws/vars/eu-central-1/emea/worker.json -var 'region=eu-central-1' -var 'stack=emea' -var 'portal_branch=master' | |
-var 'solver_branch=master' -var 'mode=worker' packer/aws/mb-app.json | |
packer build -var-file=packer/aws/vars/eu-central-1/emea/portal.json -var 'region=eu-central-1' -var 'stack=emea' -var 'portal_branch=master' | |
-var 'solver_branch=master' -var 'mode=portal' packer/aws/mb-app.json | |
amazon-ebs output will be in this color. | |
amazon-ebs output will be in this color. | |
==> amazon-ebs: Prevalidating AMI Name... | |
==> amazon-ebs: Prevalidating AMI Name... | |
amazon-ebs: Found Image ID: ami-714f2b1e | |
==> amazon-ebs: Creating temporary keypair: packer_5a7dd220-380c-f0fb-6db8-c352c86b0c62 | |
==> amazon-ebs: Creating temporary security group for this instance: packer_5a7dd223-29dd-70c9-f797-36750b91f268 | |
==> amazon-ebs: Authorizing access to port 22 on the temporary security group... | |
==> amazon-ebs: Launching a source AWS instance... | |
==> amazon-ebs: Adding tags to source instance | |
amazon-ebs: Adding tag: "Name": "Packer Builder" | |
amazon-ebs: Found Image ID: ami-714f2b1e | |
==> amazon-ebs: Creating temporary keypair: packer_5a7dd220-d2ee-7b65-a880-5745d8781c13 | |
==> amazon-ebs: Creating temporary security group for this instance: packer_5a7dd224-7090-35cf-6c6e-a9f280fdf137 | |
==> amazon-ebs: Authorizing access to port 22 on the temporary security group... | |
==> amazon-ebs: Error launching source instance: InvalidGroup.NotFound: The security group 'sg-5e55b933' does not exist in VPC 'vpc-453ac02d' | |
==> amazon-ebs: status code: 400, request id: 3f16758e-e326-46d5-b6b3-8851ee8aa20f | |
==> amazon-ebs: No volumes to clean up, skipping | |
==> amazon-ebs: Deleting temporary security group... | |
==> amazon-ebs: Launching a source AWS instance... | |
==> amazon-ebs: Adding tags to source instance | |
amazon-ebs: Adding tag: "Name": "Packer Builder" | |
==> amazon-ebs: Deleting temporary keypair... | |
Build 'amazon-ebs' errored: Error launching source instance: InvalidGroup.NotFound: The security group 'sg-5e55b933' does not exist in VPC 'v | |
pc-453ac02d' | |
status code: 400, request id: 3f16758e-e326-46d5-b6b3-8851ee8aa20f | |
==> Some builds didn't complete successfully and had errors: | |
--> amazon-ebs: Error launching source instance: InvalidGroup.NotFound: The security group 'sg-5e55b933' does not exist in VPC 'vpc-453ac02d' | |
status code: 400, request id: 3f16758e-e326-46d5-b6b3-8851ee8aa20f | |
==> Builds finished but no artifacts were created. | |
Makefile:10: recipe for target 'bake_worker' failed | |
make: *** [bake_worker] Error 1 | |
amazon-ebs: Instance ID: i-0b40da7265e82c381 | |
==> amazon-ebs: Waiting for instance (i-0b40da7265e82c381) to become ready... | |
==> amazon-ebs: Waiting for SSH to become available... | |
==> amazon-ebs: Connected to SSH! | |
==> amazon-ebs: Provisioning with shell script: /tmp/packer-shell961715140 | |
==> amazon-ebs: Provisioning with shell script: /tmp/packer-shell238754009 | |
amazon-ebs: Reading package lists... | |
amazon-ebs: Building dependency tree... | |
amazon-ebs: Reading state information... | |
amazon-ebs: software-properties-common is already the newest version (0.96.20.7). | |
amazon-ebs: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
amazon-ebs: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writin | |
g scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no age | |
nts to install on remote systems. | |
amazon-ebs: | |
amazon-ebs: http://ansible.com/ | |
amazon-ebs: More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible | |
amazon-ebs: gpg: keyring `/tmp/tmp309shjll/secring.gpg' created | |
amazon-ebs: gpg: keyring `/tmp/tmp309shjll/pubring.gpg' created | |
amazon-ebs: gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com | |
amazon-ebs: gpg: /tmp/tmp309shjll/trustdb.gpg: trustdb created | |
amazon-ebs: gpg: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported | |
amazon-ebs: gpg: Total number processed: 1 | |
amazon-ebs: gpg: imported: 1 (RSA: 1) | |
amazon-ebs: OK | |
amazon-ebs: Hit:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease | |
amazon-ebs: Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] | |
amazon-ebs: Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] | |
amazon-ebs: Get:4 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial InRelease [18.0 kB] | |
amazon-ebs: Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] | |
amazon-ebs: Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB] | |
amazon-ebs: Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B] | |
amazon-ebs: Get:8 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB] | |
amazon-ebs: Get:9 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB] | |
amazon-ebs: Get:10 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB] | |
amazon-ebs: Get:11 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB] | |
amazon-ebs: Get:12 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB] | |
amazon-ebs: Get:13 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB] | |
amazon-ebs: Get:14 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [294 kB] | |
amazon-ebs: Get:15 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,524 B] | |
amazon-ebs: Get:16 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [191 kB] | |
amazon-ebs: Get:17 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,968 B] | |
amazon-ebs: Get:18 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [715 kB] | |
amazon-ebs: Get:19 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [297 kB] | |
amazon-ebs: Get:20 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [582 kB] | |
amazon-ebs: Get:21 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [235 kB] | |
amazon-ebs: Get:22 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB] | |
amazon-ebs: Get:23 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,052 B] | |
amazon-ebs: Get:24 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,432 B] | |
amazon-ebs: Get:25 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [4,904 B] | |
amazon-ebs: Get:26 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,836 B] | |
amazon-ebs: Get:27 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B] | |
amazon-ebs: Get:28 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6,628 B] | |
amazon-ebs: Get:29 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,768 B] | |
amazon-ebs: Get:30 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial/main amd64 Packages [540 B] | |
amazon-ebs: Get:31 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial/main Translation-en [344 B] | |
amazon-ebs: Get:32 http://security.ubuntu.com/ubuntu xenial-security/main Sources [108 kB] | |
amazon-ebs: Get:33 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B] | |
amazon-ebs: Get:34 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [50.0 kB] | |
amazon-ebs: Get:35 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,516 B] | |
amazon-ebs: Get:36 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [436 kB] | |
amazon-ebs: Get:37 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [189 kB] | |
amazon-ebs: Get:38 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [201 kB] | |
amazon-ebs: Get:39 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [102 kB] | |
amazon-ebs: Get:40 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B] | |
amazon-ebs: Get:41 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B] | |
amazon-ebs: Fetched 24.7 MB in 3s (6,301 kB/s) | |
amazon-ebs: Reading package lists... | |
amazon-ebs: Reading package lists... | |
amazon-ebs: Building dependency tree... | |
amazon-ebs: Reading state information... | |
amazon-ebs: The following additional packages will be installed: | |
amazon-ebs: libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python | |
amazon-ebs: python-cffi-backend python-crypto python-cryptography python-ecdsa | |
amazon-ebs: python-enum34 python-httplib2 python-idna python-ipaddress python-jinja2 | |
amazon-ebs: python-markupsafe python-minimal python-paramiko python-pkg-resources | |
amazon-ebs: python-pyasn1 python-setuptools python-six python-yaml python2.7 | |
amazon-ebs: python2.7-minimal sshpass | |
amazon-ebs: Suggested packages: | |
amazon-ebs: python-doc python-tk python-crypto-dbg python-crypto-doc | |
amazon-ebs: python-cryptography-doc python-cryptography-vectors python-enum34-doc | |
amazon-ebs: python-jinja2-doc doc-base python-setuptools-doc python2.7-doc binutils | |
amazon-ebs: binfmt-support | |
amazon-ebs: The following NEW packages will be installed: | |
amazon-ebs: ansible libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python | |
amazon-ebs: python-cffi-backend python-crypto python-cryptography python-ecdsa | |
amazon-ebs: python-enum34 python-httplib2 python-idna python-ipaddress python-jinja2 | |
amazon-ebs: python-markupsafe python-minimal python-paramiko python-pkg-resources | |
amazon-ebs: python-pyasn1 python-setuptools python-six python-yaml python2.7 | |
amazon-ebs: python2.7-minimal sshpass | |
amazon-ebs: 0 upgraded, 25 newly installed, 0 to remove and 17 not upgraded. | |
amazon-ebs: Need to get 7,907 kB of archives. | |
amazon-ebs: After this operation, 46.2 MB of additional disk space will be used. | |
amazon-ebs: Get:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~ | |
16.04.3 [340 kB] | |
amazon-ebs: Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16. | |
04.3 [1,261 kB] | |
amazon-ebs: Get:3 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial/main amd64 ansible all 2.4.3.0-1ppa~xenial [2,690 kB] | |
amazon-ebs: Get:4 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-minimal amd64 2.7.11-1 [28.2 kB] | |
amazon-ebs: Get:5 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-stdlib amd64 2.7.12-1ubuntu0~1 | |
amazon-ebs: Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.3 [22 | |
4 kB] | |
amazon-ebs: Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libpython-stdlib amd64 2.7.11-1 [7,656 B] | |
amazon-ebs: Get:8 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python amd64 2.7.11-1 [137 kB] | |
amazon-ebs: Get:9 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-markupsafe amd64 0.23-2build2 [15.5 kB] | |
amazon-ebs: Get:10 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-jinja2 all 2.8-1 [109 kB] | |
amazon-ebs: Get:11 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-yaml amd64 3.11-3build1 [105 kB] | |
amazon-ebs: Get:12 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-crypto amd64 2.6.1-6ubuntu0.16.04.2 | |
[246 kB] | |
amazon-ebs: Get:13 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-six all 1.10.0-3 [10.9 kB] | |
amazon-ebs: Get:14 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-ecdsa all 0.13-2 [34.0 kB] | |
amazon-ebs: Get:15 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-paramiko all 1.16.0-1 [109 kB] | |
amazon-ebs: Get:16 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-httplib2 all 0.9.1+dfsg-1 [34.2 kB] | |
amazon-ebs: Get:17 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB] | |
amazon-ebs: Get:18 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-setuptools all 20.7.0-1 [169 kB] | |
amazon-ebs: Get:19 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 sshpass amd64 1.05-1 [10.5 kB] | |
amazon-ebs: Get:20 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-cffi-backend amd64 1.5.2-1ubuntu1 [58.1 kB] | |
amazon-ebs: Get:21 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-enum34 all 1.1.2-1 [35.8 kB] | |
amazon-ebs: Get:22 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-idna all 2.0-3 [35.1 kB] | |
amazon-ebs: Get:23 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-ipaddress all 1.0.16-1 [18.0 kB] | |
amazon-ebs: Get:24 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-pyasn1 all 0.1.9-1 [45.1 kB] | |
amazon-ebs: Get:25 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-cryptography amd64 1.2.3-1ubuntu0.1 | |
[199 kB] | |
amazon-ebs: debconf: unable to initialize frontend: Dialog | |
amazon-ebs: debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) | |
amazon-ebs: debconf: falling back to frontend: Readline | |
amazon-ebs: debconf: unable to initialize frontend: Readline | |
amazon-ebs: debconf: (This frontend requires a controlling tty.) | |
amazon-ebs: debconf: falling back to frontend: Teletype | |
amazon-ebs: dpkg-preconfigure: unable to re-open stdin: | |
amazon-ebs: Fetched 7,907 kB in 0s (30.6 MB/s) | |
amazon-ebs: Selecting previously unselected package libpython2.7-minimal:amd64. | |
amazon-ebs: (Reading database ... 51123 files and directories currently installed.) | |
amazon-ebs: Preparing to unpack .../libpython2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ... | |
amazon-ebs: Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Selecting previously unselected package python2.7-minimal. | |
amazon-ebs: Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ... | |
amazon-ebs: Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Selecting previously unselected package python-minimal. | |
amazon-ebs: Preparing to unpack .../python-minimal_2.7.11-1_amd64.deb ... | |
amazon-ebs: Unpacking python-minimal (2.7.11-1) ... | |
amazon-ebs: Selecting previously unselected package libpython2.7-stdlib:amd64. | |
amazon-ebs: Preparing to unpack .../libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.3_amd64.deb ... | |
amazon-ebs: Unpacking libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Selecting previously unselected package python2.7. | |
amazon-ebs: Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.3_amd64.deb ... | |
amazon-ebs: Unpacking python2.7 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Selecting previously unselected package libpython-stdlib:amd64. | |
amazon-ebs: Preparing to unpack .../libpython-stdlib_2.7.11-1_amd64.deb ... | |
amazon-ebs: Unpacking libpython-stdlib:amd64 (2.7.11-1) ... | |
amazon-ebs: Processing triggers for man-db (2.7.5-1) ... | |
amazon-ebs: Processing triggers for mime-support (3.59ubuntu1) ... | |
amazon-ebs: Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Linking and byte-compiling packages for runtime python2.7... | |
amazon-ebs: Setting up python-minimal (2.7.11-1) ... | |
amazon-ebs: Selecting previously unselected package python. | |
amazon-ebs: (Reading database ... 51869 files and directories currently installed.) | |
amazon-ebs: Preparing to unpack .../python_2.7.11-1_amd64.deb ... | |
amazon-ebs: Unpacking python (2.7.11-1) ... | |
amazon-ebs: Selecting previously unselected package python-markupsafe. | |
amazon-ebs: Preparing to unpack .../python-markupsafe_0.23-2build2_amd64.deb ... | |
amazon-ebs: Unpacking python-markupsafe (0.23-2build2) ... | |
amazon-ebs: Selecting previously unselected package python-jinja2. | |
amazon-ebs: Preparing to unpack .../python-jinja2_2.8-1_all.deb ... | |
amazon-ebs: Unpacking python-jinja2 (2.8-1) ... | |
amazon-ebs: Selecting previously unselected package python-yaml. | |
amazon-ebs: Preparing to unpack .../python-yaml_3.11-3build1_amd64.deb ... | |
amazon-ebs: Unpacking python-yaml (3.11-3build1) ... | |
amazon-ebs: Selecting previously unselected package python-crypto. | |
amazon-ebs: Preparing to unpack .../python-crypto_2.6.1-6ubuntu0.16.04.2_amd64.deb ... | |
amazon-ebs: Unpacking python-crypto (2.6.1-6ubuntu0.16.04.2) ... | |
amazon-ebs: Selecting previously unselected package python-six. | |
amazon-ebs: Preparing to unpack .../python-six_1.10.0-3_all.deb ... | |
amazon-ebs: Unpacking python-six (1.10.0-3) ... | |
amazon-ebs: Selecting previously unselected package python-ecdsa. | |
amazon-ebs: Preparing to unpack .../python-ecdsa_0.13-2_all.deb ... | |
amazon-ebs: Unpacking python-ecdsa (0.13-2) ... | |
amazon-ebs: Selecting previously unselected package python-paramiko. | |
amazon-ebs: Preparing to unpack .../python-paramiko_1.16.0-1_all.deb ... | |
amazon-ebs: Unpacking python-paramiko (1.16.0-1) ... | |
amazon-ebs: Selecting previously unselected package python-httplib2. | |
amazon-ebs: Preparing to unpack .../python-httplib2_0.9.1+dfsg-1_all.deb ... | |
amazon-ebs: Unpacking python-httplib2 (0.9.1+dfsg-1) ... | |
amazon-ebs: Selecting previously unselected package python-pkg-resources. | |
amazon-ebs: Preparing to unpack .../python-pkg-resources_20.7.0-1_all.deb ... | |
amazon-ebs: Unpacking python-pkg-resources (20.7.0-1) ... | |
amazon-ebs: Selecting previously unselected package python-setuptools. | |
amazon-ebs: Preparing to unpack .../python-setuptools_20.7.0-1_all.deb ... | |
amazon-ebs: Unpacking python-setuptools (20.7.0-1) ... | |
amazon-ebs: Selecting previously unselected package sshpass. | |
amazon-ebs: Preparing to unpack .../sshpass_1.05-1_amd64.deb ... | |
amazon-ebs: Unpacking sshpass (1.05-1) ... | |
amazon-ebs: Selecting previously unselected package python-cffi-backend. | |
amazon-ebs: Preparing to unpack .../python-cffi-backend_1.5.2-1ubuntu1_amd64.deb ... | |
amazon-ebs: Unpacking python-cffi-backend (1.5.2-1ubuntu1) ... | |
amazon-ebs: Selecting previously unselected package python-enum34. | |
amazon-ebs: Preparing to unpack .../python-enum34_1.1.2-1_all.deb ... | |
amazon-ebs: Unpacking python-enum34 (1.1.2-1) ... | |
amazon-ebs: Selecting previously unselected package python-idna. | |
amazon-ebs: Preparing to unpack .../python-idna_2.0-3_all.deb ... | |
amazon-ebs: Unpacking python-idna (2.0-3) ... | |
amazon-ebs: Selecting previously unselected package python-ipaddress. | |
amazon-ebs: Preparing to unpack .../python-ipaddress_1.0.16-1_all.deb ... | |
amazon-ebs: Unpacking python-ipaddress (1.0.16-1) ... | |
amazon-ebs: Selecting previously unselected package python-pyasn1. | |
amazon-ebs: Preparing to unpack .../python-pyasn1_0.1.9-1_all.deb ... | |
amazon-ebs: Unpacking python-pyasn1 (0.1.9-1) ... | |
amazon-ebs: Selecting previously unselected package python-cryptography. | |
amazon-ebs: Preparing to unpack .../python-cryptography_1.2.3-1ubuntu0.1_amd64.deb ... | |
amazon-ebs: Unpacking python-cryptography (1.2.3-1ubuntu0.1) ... | |
amazon-ebs: Selecting previously unselected package ansible. | |
amazon-ebs: Preparing to unpack .../ansible_2.4.3.0-1ppa~xenial_all.deb ... | |
amazon-ebs: Unpacking ansible (2.4.3.0-1ppa~xenial) ... | |
amazon-ebs: Processing triggers for man-db (2.7.5-1) ... | |
amazon-ebs: Setting up libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Setting up python2.7 (2.7.12-1ubuntu0~16.04.3) ... | |
amazon-ebs: Setting up libpython-stdlib:amd64 (2.7.11-1) ... | |
amazon-ebs: Setting up python (2.7.11-1) ... | |
amazon-ebs: Setting up python-markupsafe (0.23-2build2) ... | |
amazon-ebs: Setting up python-jinja2 (2.8-1) ... | |
amazon-ebs: Setting up python-yaml (3.11-3build1) ... | |
amazon-ebs: Setting up python-crypto (2.6.1-6ubuntu0.16.04.2) ... | |
amazon-ebs: Setting up python-six (1.10.0-3) ... | |
amazon-ebs: Setting up python-ecdsa (0.13-2) ... | |
amazon-ebs: Setting up python-paramiko (1.16.0-1) ... | |
amazon-ebs: Setting up python-httplib2 (0.9.1+dfsg-1) ... | |
amazon-ebs: Setting up python-pkg-resources (20.7.0-1) ... | |
amazon-ebs: Setting up python-setuptools (20.7.0-1) ... | |
amazon-ebs: Setting up sshpass (1.05-1) ... | |
amazon-ebs: Setting up python-cffi-backend (1.5.2-1ubuntu1) ... | |
amazon-ebs: Setting up python-enum34 (1.1.2-1) ... | |
amazon-ebs: Setting up python-idna (2.0-3) ... | |
amazon-ebs: Setting up python-ipaddress (1.0.16-1) ... | |
amazon-ebs: Setting up python-pyasn1 (0.1.9-1) ... | |
amazon-ebs: Setting up python-cryptography (1.2.3-1ubuntu0.1) ... | |
amazon-ebs: Setting up ansible (2.4.3.0-1ppa~xenial) ... | |
==> amazon-ebs: Uploading keys/bitbucket.pem => /ops/bitbucket.pem | |
==> amazon-ebs: Uploading keys/bitbucket.pub => /ops/bitbucket.pub | |
==> amazon-ebs: Provisioning with shell script: packer/scripts/setup_mbdevops.sh | |
amazon-ebs: # bitbucket.org:22 SSH-2.0-conker_1.0.329-80fd3ec app-156 | |
amazon-ebs: # bitbucket.org:22 SSH-2.0-conker_1.0.329-80fd3ec app-154 | |
amazon-ebs: # bitbucket.org:22 SSH-2.0-conker_1.0.329-80fd3ec app-128 | |
amazon-ebs: Agent pid 2985 | |
amazon-ebs: Identity added: /ops/bitbucket.pem (/ops/bitbucket.pem) | |
amazon-ebs: Cloning into '/ops/mbdevops'... | |
amazon-ebs: Warning: Permanently added the RSA host key for IP address '104.192.143.2' to the list of known hosts. | |
==> amazon-ebs: Provisioning with shell script: /tmp/packer-shell914270436 | |
amazon-ebs: [DEPRECATION WARNING]: The sudo command line option has been deprecated in | |
amazon-ebs: favor of the "become" command line arguments. This feature will be removed in | |
amazon-ebs: version 2.6. Deprecation warnings can be disabled by setting | |
amazon-ebs: deprecation_warnings=False in ansible.cfg. | |
amazon-ebs: [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use | |
amazon-ebs: 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. | |
amazon-ebs: This feature will be removed in a future release. Deprecation warnings can be | |
amazon-ebs: disabled by setting deprecation_warnings=False in ansible.cfg. | |
amazon-ebs: [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is | |
amazon-ebs: discouraged. The module documentation details page may explain more about this | |
amazon-ebs: rationale.. This feature will be removed in a future release. Deprecation | |
amazon-ebs: warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. | |
amazon-ebs: | |
amazon-ebs: PLAY [Build Mondobrain Portal Packer Image (eu-central-1 - emea-v2)] *********** | |
amazon-ebs: | |
amazon-ebs: TASK [Gathering Facts] ********************************************************* | |
amazon-ebs: ok: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Update Apt Repositories] **************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Update apt configuration] *************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Common apt dependencies] **************************************** | |
amazon-ebs: changed: [localhost] => (item=[u'gcc', u'make', u'automake', u'libtool', u'wget', u'htop', u'unzip', u'automake', u'autoconf' | |
, u'python-dev', u'python-pip', u'zlib1g', u'zlib1g-dev', u'libedit2', u'libedit-dev', u'llvm-3.5-dev', u'llvm-dev', u'llvm-3.5', u'git', u'l | |
ibpq-dev', u'libncurses5-dev', u'build-essential', u'g++', u'liblapack-dev', u'gfortran', u'supervisor', u'openssh-client', u'libssl-dev']) | |
amazon-ebs: | |
amazon-ebs: TASK [common : Start Supervisor] *********************************************** | |
amazon-ebs: ok: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Common pip dependencies] **************************************** | |
amazon-ebs: changed: [localhost] => (item=virtualenv) | |
amazon-ebs: changed: [localhost] => (item=requests) | |
amazon-ebs: | |
amazon-ebs: TASK [common : Create mbadmin user] ******************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Create ops directory if doesn't exist] ************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Install SSH authorized key] ************************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [common : Upload shared bitbucket pem file] ******************************* | |
amazon-ebs: ok: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Add Python 3.6 repo] ***************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Update Apt Repositories] ************************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Portal apt dependencies] ************************************* | |
amazon-ebs: changed: [localhost] => (item=[u'postgresql-client', u'libffi-dev', u'libpq-dev', u'nginx', u'python3.6', u'python3.6-dev']) | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Create app run directory] ************************************ | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Hard reset directory] **************************************** | |
amazon-ebs: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 2] No such f | |
ile or directory: '/srv/mbportal' | |
amazon-ebs: fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible | |
_O2F6sU/ansible_module_command.py\", line 214, in <module>\n main()\n File \"/tmp/ansible_O2F6sU/ansible_module_command.py\", line 153, i | |
n main\n os.chdir(chdir)\nOSError: [Errno 2] No such file or directory: '/srv/mbportal'\n", "module_stdout": "", "msg": "MODULE FAILURE", | |
"rc": 0} | |
amazon-ebs: ...ignoring | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Git Checkout Portal - [email protected]:mondobrain/mbportal.git@master] *** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Git Checkout Solver - [email protected]:mondobrain/mbcore.git@master] *** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload uwsqi config] ***************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload supervisor configuration] ***************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Create bin directory] **************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload start.sh] ********************************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Install psycopg2 for ansible postgres admin] ***************** | |
amazon-ebs: changed: [localhost] => (item=psycopg2) | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Remove default nginx conf] *********************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload dev nginx config] ************************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload aws nginx config] ************************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload container nginx config] ******************************* | |
amazon-ebs: skipping: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Upload App configuration] ************************************ | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Install App Initial pip Requirements] ************************ | |
amazon-ebs: changed: [localhost] => (item=enum34==1.1.6) | |
amazon-ebs: changed: [localhost] => (item=llvmlite==0.20.0) | |
amazon-ebs: changed: [localhost] => (item=numba==0.35.0) | |
amazon-ebs: changed: [localhost] => (item=numexpr==2.4.3) | |
amazon-ebs: changed: [localhost] => (item=numpy==1.13.1) | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Set project dir permissions] ********************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Create solve output directory] ******************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Install App Specific pip Requirements] *********************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Install mbcore repo] ***************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [mb-portal : Notify Slack] ************************************************ | |
amazon-ebs: ok: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [nodejs : Node Repo] ****************************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: [WARNING]: Consider using get_url or uri module rather than running curl | |
amazon-ebs: | |
amazon-ebs: TASK [nodejs : Node Install] *************************************************** | |
amazon-ebs: changed: [localhost] => (item=[u'build-essential', u'nodejs']) | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Define user variable for ssh use] ********************** | |
amazon-ebs: ok: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Define user variable for non-ssh use] ****************** | |
amazon-ebs: skipping: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | De-configure shell profiles] ******************** | |
amazon-ebs: skipping: [localhost] => (item=.bash_profile) | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Uninstall] ************************************** | |
amazon-ebs: [WARNING]: when statements should not include jinja2 templating delimiters | |
amazon-ebs: such as {{ }} or {% %}. Found: yarn_clean_install == true and "{{ | |
amazon-ebs: ansible_os_family }}" == "Debian" or "{{ ansible_os_family }}" == "RedHat" | |
amazon-ebs: skipping: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Include OS-specific tasks] ********************** | |
amazon-ebs: [WARNING]: when statements should not include jinja2 templating delimiters | |
amazon-ebs: such as {{ }} or {% %}. Found: "{{ ansible_os_family }}" == "Debian" or "{{ | |
amazon-ebs: ansible_os_family }}" == "RedHat" | |
amazon-ebs: included: /ops/mbdevops/roles/fubarhouse.yarn/tasks/yarn-Debian.yml for localhost | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | GPG] ******************************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Ensure Debian sources list file exists] ********* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Ensure Debian package is in sources list] ******* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Update APT cache] ******************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Install] **************************************** | |
amazon-ebs: [WARNING]: when statements should not include jinja2 templating delimiters | |
amazon-ebs: such as {{ }} or {% %}. Found: "{{ ansible_os_family }}" == "Debian" or "{{ | |
amazon-ebs: ansible_os_family }}" == "RedHat" | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Configure shell profiles] *********************** | |
amazon-ebs: ok: [localhost] => (item=.bash_profile) | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Ensure installed] ******************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: TASK [fubarhouse.yarn : Yarn | Update as required] ***************************** | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: RUNNING HANDLER [mb-portal : Restart Supervisor] ******************************* | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: RUNNING HANDLER [mb-portal : Restart Nginx] ************************************ | |
amazon-ebs: changed: [localhost] | |
amazon-ebs: | |
amazon-ebs: PLAY RECAP ********************************************************************* | |
amazon-ebs: localhost : ok=46 changed=38 unreachable=0 failed=0 | |
amazon-ebs: | |
==> amazon-ebs: Stopping the source instance... | |
amazon-ebs: Stopping instance, attempt 1 | |
==> amazon-ebs: Waiting for the instance to stop... | |
==> amazon-ebs: Creating the AMI: MB portal eu-central-1 emea-v2 1518195232 | |
amazon-ebs: AMI: ami-76412619 | |
==> amazon-ebs: Waiting for AMI to become ready... | |
==> amazon-ebs: Terminating the source AWS instance... | |
==> amazon-ebs: Cleaning up any extra volumes... | |
==> amazon-ebs: No volumes to clean up, skipping | |
==> amazon-ebs: Deleting temporary security group... | |
==> amazon-ebs: Deleting temporary keypair... | |
==> amazon-ebs: Running post-processor: manifest | |
Build 'amazon-ebs' finished. | |
==> Builds finished. The artifacts of successful builds are: | |
--> amazon-ebs: AMIs were created: | |
eu-central-1: ami-76412619 | |
--> amazon-ebs: | |
Traceback (most recent call last): | |
File "deploy_stack.py", line 70, in <module> | |
main(sys.argv[1:]) | |
File "deploy_stack.py", line 44, in main | |
raise Exception('Worker Build Failed!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment