cloudfoundry-community-attic / bosh-bootstrap

From zero to a running micro BOSH in one command line
MIT License
63 stars 46 forks source link

bosh-bootstrap deploy fails for AWS: eu-west-1 #39

Closed mrdavidlaing closed 11 years ago

mrdavidlaing commented 11 years ago

I'm struggling to use bosh-bootstrap on AWS: eu-west-1.

When it gets to the point of deploying the Micro BOSH, is fails as below:

Deploy Micro BOSH
  unpacking stemcell (00:00:13)                                                 
  uploading stemcell (00:13:20)                                                 
Creating VM from...          |ooo                | 2/11 00:13:34  ETA: 01:01:03
/usr/local/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:318:in `return_or_raise': Invalid availability zone: [us-east-1a] (AWS::EC2::Errors::InvalidParameterValue)

At a guess, I'd say that there is a config file which is hardcoded to use us-east-1a; but I'm unsure how to change that.

Full session output below (in case there is something useful in it):

[17:12][mrdavidlaing@maccy001:~/Projects/CloudFoundry/bosh-bootstrap(master)]$ bundle exec bosh-bootstrap deploy --latest-stemcell

Stage 1: Choose infrastructure

Confirming: Using infrastructure provider AWS

Confirming: Using AWS region eu-west-1

Stage 2: BOSH configuration

Confirming: Micro BOSH will be named microbosh-aws-eu-west-1

Please enter a user/password for the BOSH that will be created.
BOSH username: |mrdavidlaing| 
BOSH password: xxxxxxxxxxxxxxxxxx
Confirming: After BOSH is created, your username will be mrdavidlaing

Defaulting to 16Gb persistent disk for BOSH
Acquiring IP address for micro BOSH...
Confirming: Micro BOSH will be assigned IP address 46.137.98.102

opened port 22 in security group microbosh-aws-eu-west-1
opened port 4222 in security group microbosh-aws-eu-west-1
opened port 6868 in security group microbosh-aws-eu-west-1
opened port 25250 in security group microbosh-aws-eu-west-1
opened port 25555 in security group microbosh-aws-eu-west-1
opened port 25777 in security group microbosh-aws-eu-west-1
Confirming: Micro BOSH protected by security group named microbosh-aws-eu-west-1, with ports [22, 4222, 6868, 25250, 25555, 25777]

creating key pair microbosh-aws-eu-west-1...
Confirming: Micro BOSH accessible via key pair named microbosh-aws-eu-west-1

Locating micro-bosh stemcell, running 'bosh public stemcells --tags micro,aws'...
Confirming: Micro BOSH will be created with stemcell micro-bosh-stemcell-aws-0.7.0.tgz

Stage 3: Create/Allocate the Inception VM

1. create new inception VM
2. use an existing Ubuntu server
3. use this server (must be ubuntu & on same network as bosh)
Create or specify an Inception VM:  1

Provisioning m1.small for inception VM...
Provisioning IP address for inception VM...
Provisioning 32Gb persistent disk for inception VM...
Mounting persistent disk as volume on inception VM...
Confirming: Inception VM has been created

SSH access: ssh -i /Users/mrdavidlaing/.ssh/id_rsa ubuntu@ec2-46-137-98-105.eu-west-1.compute.amazonaws.com
Confirming: Using inception VM ubuntu@ec2-46-137-98-105.eu-west-1.compute.amazonaws.com

validating ubuntu
uploading /tmp/remote_script_validate_ubuntu to Inception VM
Successfully validated ubuntu

Stage 4: Preparing the Inception VM

creating vcap user
uploading /tmp/remote_script_create_vcap_user to Inception VM
creating public keys for vcap/root user...
Generating public/private rsa key pair.
Your identification has been saved in /home/vcap/.ssh/id_rsa.
Your public key has been saved in /home/vcap/.ssh/id_rsa.pub.
The key fingerprint is:
3c:ef:9d:69:7d:ab:7b:20:83:c4:9e:66:62:43:33:f8 vcap@ip-10-235-94-212
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|      . .        |
|     . = o       |
|      o S o      |
|       E O o .   |
|      . = . o..  |
|         . ..o...|
|          ..+o+o.|
+-----------------+
copy vcap public keys to root user...
creating /var/vcap/store/microboshes
creating /var/vcap/store/microboshes/deployments
creating /var/vcap/store/deployments
creating /var/vcap/store/releases
creating /var/vcap/store/repos
creating /var/vcap/store/stemcells
creating /var/vcap/store/tmp
creating /var/vcap/store/bosh_cache
adding vcap to sudoers
copying user 'ubuntu' authorized_keys to vcap user
copying user 'ubuntu' .bashrc to vcap user
adding $TMPDIR to .bashrc
setting $EDITOR to vim as default
Successfully created vcap user
installing base packages
uploading /tmp/remote_script_install_base_packages to Inception VM
Get: 1 http://eu-west-1.ec2.archive.ubuntu.com lucid Release.gpg [189B]
Get: 2 http://security.ubuntu.com lucid-security Release.gpg [198B]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Get: 3 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB [62.9kB]
Get: 4 http://security.ubuntu.com lucid-security Release [57.3kB]
Get: 5 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB [33.9kB]
Get: 6 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates Release.gpg [198B]
Get: 7 http://security.ubuntu.com lucid-security/main Packages [473kB]
Get: 8 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB [75.4kB]
Get: 9 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB [5,416B]
Get: 10 http://security.ubuntu.com lucid-security/universe Packages [168kB]    
Get: 11 http://security.ubuntu.com lucid-security/main Sources [133kB]       
Get: 12 http://eu-west-1.ec2.archive.ubuntu.com lucid Release [57.2kB]      
Get: 13 http://security.ubuntu.com lucid-security/universe Sources [43.8kB]    
Get: 14 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates Release [58.3kB] 
Get: 15 http://eu-west-1.ec2.archive.ubuntu.com lucid/main Packages [1,383kB]
Get: 16 http://eu-west-1.ec2.archive.ubuntu.com lucid/universe Packages [5,430kB]
Get: 17 http://eu-west-1.ec2.archive.ubuntu.com lucid/main Sources [659kB]
Get: 18 http://eu-west-1.ec2.archive.ubuntu.com lucid/universe Sources [3,165kB]
Get: 19 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/main Packages [664kB]
Get: 20 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/universe Packages [317kB]
Get: 21 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/main Sources [234kB]
Get: 22 http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/universe Sources [106kB]
Fetched 13.1MB in 11s (1,095kB/s)                                              
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libxslt1-dev instead of libxslt-dev
The following extra packages will be installed:
  binutils bridge-utils comerr-dev cpp-4.4 dpkg-dev fakeroot g++ g++-4.4 gcc
  gcc-4.4 gcc-4.4-base krb5-multidev libaio1 libasound2 libc-bin libc-dev-bin
  libc6 libc6-dev libdigest-sha1-perl libdirectfb-1.2-0 liberror-perl libflac8
  libgcc1 libgomp1 libgssapi-krb5-2 libgssrpc4 libice6 libk5crypto3
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libkrb5-3 libkrb5-dev
  libkrb5support0 liblzma1 libmysqlclient16 libogg0 libpq5 libpulse0
  libsdl1.2debian libsdl1.2debian-alsa libsm6 libsndfile1 libssl-dev
  libssl0.9.8 libstdc++6 libstdc++6-4.4-dev libsysfs2 libts-0.0-0 libvorbis0a
  libvorbisenc2 libxi6 libxml2 libxslt1-dev libxslt1.1 libxtst6 linux-libc-dev
  manpages-dev mysql-common qemu-common seabios tsconf vgabios vim-common
  vim-runtime vim-tiny x11-common xz-utils zlib1g-dev
Suggested packages:
  binutils-doc doc-base gcc-4.4-locales debian-keyring debian-maintainers
  g++-multilib g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-multilib
  autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.4-multilib
  libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0
  libppl-c2 libppl7 wodim cdrkit-doc git-doc git-arch git-cvs git-svn
  git-email git-daemon-run git-gui gitk gitweb krb5-doc libasound2-plugins
  glibc-doc krb5-user postgresql-doc-8.4 pulseaudio sqlite3-doc
  libstdc++6-4.4-doc mol-drivers-macosx openbios-sparc kvm-pxe
  ubuntu-vm-builder uml-utilities ctags vim-doc vim-scripts indent
The following NEW packages will be installed
  binutils bridge-utils build-essential comerr-dev debootstrap dpkg-dev
  fakeroot g++ g++-4.4 gcc gcc-4.4 genisoimage git-core kpartx krb5-multidev
  libaio1 libasound2 libc-dev-bin libc6-dev libdigest-sha1-perl
  libdirectfb-1.2-0 liberror-perl libflac8 libgomp1 libgssrpc4 libice6
  libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libkrb5-dev liblzma1
  libmysqlclient-dev libmysqlclient16 libogg0 libpq-dev libpq5 libpulse0
  libsdl1.2debian libsdl1.2debian-alsa libsm6 libsndfile1 libsqlite3-dev
  libssl-dev libstdc++6-4.4-dev libsysfs2 libts-0.0-0 libvorbis0a
  libvorbisenc2 libxi6 libxml2-dev libxslt1-dev libxslt1.1 libxtst6
  linux-libc-dev manpages-dev mkpasswd mysql-common qemu-common qemu-kvm
  seabios tmux tsconf vgabios x11-common xz-utils zlib1g-dev
The following packages will be upgraded:
  cpp-4.4 curl gcc-4.4-base libc-bin libc6 libgcc1 libgssapi-krb5-2
  libk5crypto3 libkrb5-3 libkrb5support0 libssl0.9.8 libstdc++6 libxml2 rsync
  vim vim-common vim-runtime vim-tiny
18 upgraded, 66 newly installed, 0 to remove and 105 not upgraded.
Need to get 62.9MB of archives.
After this operation, 130MB of additional disk space will be used.
Get: 1 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main x11-common 1:7.5+5ubuntu1.1 [308kB]
Get: 2 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libc-bin 2.11.1-0ubuntu7.12 [819kB]
Get: 3 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libc6 2.11.1-0ubuntu7.12 [4,391kB]
Get: 4 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main gcc-4.4-base 4.4.3-4ubuntu5.1 [118kB]
Get: 5 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libgcc1 1:4.4.3-4ubuntu5.1 [45.1kB]
Get: 6 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main cpp-4.4 4.4.3-4ubuntu5.1 [4,111kB]
Get: 7 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libstdc++6 4.4.3-4ubuntu5.1 [340kB]
Get: 8 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libssl0.9.8 0.9.8k-7ubuntu8.13 [981kB]
Get: 9 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main vim-tiny 2:7.2.330-1ubuntu3.1 [400kB]
Get: 10 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main vim 2:7.2.330-1ubuntu3.1 [984kB]
Get: 11 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main vim-runtime 2:7.2.330-1ubuntu3.1 [6,104kB]
Get: 12 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main vim-common 2:7.2.330-1ubuntu3.1 [175kB]
Get: 13 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libk5crypto3 1.8.1+dfsg-2ubuntu0.11 [105kB]
Get: 14 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libgssapi-krb5-2 1.8.1+dfsg-2ubuntu0.11 [129kB]
Get: 15 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkrb5-3 1.8.1+dfsg-2ubuntu0.11 [369kB]
Get: 16 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkrb5support0 1.8.1+dfsg-2ubuntu0.11 [45.0kB]
Get: 17 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libgssrpc4 1.8.1+dfsg-2ubuntu0.11 [82.4kB]
Get: 18 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkadm5clnt-mit7 1.8.1+dfsg-2ubuntu0.11 [63.1kB]
Get: 19 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkdb5-4 1.8.1+dfsg-2ubuntu0.11 [62.6kB]
Get: 20 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkadm5srv-mit7 1.8.1+dfsg-2ubuntu0.11 [76.6kB]
Get: 21 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libxml2 2.7.6.dfsg-1ubuntu1.7 [874kB]
Get: 22 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main rsync 3.0.7-1ubuntu1.1 [362kB]
Get: 23 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main binutils 2.20.1-3ubuntu7.1 [1,658kB]
Get: 24 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main bridge-utils 1.4-5ubuntu2 [33.9kB]
Get: 25 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libc-dev-bin 2.11.1-0ubuntu7.12 [225kB]
Get: 26 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-libc-dev 2.6.32-45.102 [863kB]
Get: 27 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libc6-dev 2.11.1-0ubuntu7.12 [2,731kB]
Get: 28 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libgomp1 4.4.3-4ubuntu5.1 [25.5kB]
Get: 29 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main gcc-4.4 4.4.3-4ubuntu5.1 [2,877kB]
Get: 30 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main gcc 4:4.4.3-1ubuntu1 [5,064B]
Get: 31 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libstdc++6-4.4-dev 4.4.3-4ubuntu5.1 [1,522kB]
Get: 32 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main g++-4.4 4.4.3-4ubuntu5.1 [5,756kB]
Get: 33 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main g++ 4:4.4.3-1ubuntu1 [1,450B]
Get: 34 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main liblzma1 4.999.9beta+20091116-1 [151kB]
Get: 35 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main xz-utils 4.999.9beta+20091116-1 [233kB]
Get: 36 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main dpkg-dev 1.15.5.6ubuntu4.6 [653kB]
Get: 37 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main build-essential 11.4build1 [7,278B]
Get: 38 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main curl 7.19.7-1ubuntu1.1 [211kB]
Get: 39 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main fakeroot 1.14.4-1ubuntu1 [101kB]
Get: 40 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main genisoimage 9:1.1.10-1ubuntu1 [644kB]
Get: 41 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main liberror-perl 0.17-1 [23.8kB]
Get: 42 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libdigest-sha1-perl 2.12-1build1 [26.7kB]
Get: 43 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main git-core 1:1.7.0.4-1ubuntu0.2 [6,143kB]
Get: 44 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main comerr-dev 2.1-1.41.11-1ubuntu2.1 [42.1kB]
Get: 45 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main krb5-multidev 1.8.1+dfsg-2ubuntu0.11 [103kB]
Get: 46 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libaio1 0.3.107-3ubuntu2 [9,608B]
Get: 47 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libasound2 1.0.22-0ubuntu7 [437kB]
Get: 48 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libsysfs2 2.1.0-6 [23.9kB]
Get: 49 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main tsconf 1.0-7build1 [12.8kB]
Get: 50 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libts-0.0-0 1.0-7build1 [29.1kB]
Get: 51 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libdirectfb-1.2-0 1.2.8-5ubuntu2 [1,191kB]
Get: 52 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libogg0 1.1.4~dfsg-2 [17.3kB]
Get: 53 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libflac8 1.2.1-2build2 [151kB]
Get: 54 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libice6 2:1.0.6-1 [54.3kB]
Get: 55 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main mysql-common 5.1.67-0ubuntu0.10.04.1 [76.2kB]
Get: 56 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libmysqlclient16 5.1.67-0ubuntu0.10.04.1 [1,954kB]
Get: 57 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main zlib1g-dev 1:1.2.3.3.dfsg-15ubuntu1 [167kB]
Get: 58 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libmysqlclient-dev 5.1.67-0ubuntu0.10.04.1 [3,194kB]
Get: 59 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libpq5 8.4.15-0ubuntu10.04 [104kB]
Get: 60 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libssl-dev 0.9.8k-7ubuntu8.13 [2,151kB]
Get: 61 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libkrb5-dev 1.8.1+dfsg-2ubuntu0.11 [36.7kB]
Get: 62 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libpq-dev 8.4.15-0ubuntu10.04 [203kB]
Get: 63 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libsm6 2:1.1.1-1 [25.4kB]
Get: 64 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libvorbis0a 1.2.3-3ubuntu1.1 [110kB]
Get: 65 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libvorbisenc2 1.2.3-3ubuntu1.1 [97.7kB]
Get: 66 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libsndfile1 1.0.21-2ubuntu0.10.04.1 [233kB]
Get: 67 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libxi6 2:1.3-3 [56.0kB]
Get: 68 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libxtst6 2:1.1.0-2 [19.9kB]
Get: 69 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libpulse0 1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu14 [274kB]
Get: 70 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libsdl1.2debian-alsa 1.2.14-4ubuntu1.1 [213kB]
Get: 71 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libsdl1.2debian 1.2.14-4ubuntu1.1 [23.3kB]
Get: 72 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libsqlite3-dev 3.6.22-1 [396kB]
Get: 73 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libxml2-dev 2.7.6.dfsg-1ubuntu1.7 [832kB]
Get: 74 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libxslt1.1 1.1.26-1ubuntu1.1 [244kB]
Get: 75 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main libxslt1-dev 1.1.26-1ubuntu1.1 [663kB]
Get: 76 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main manpages-dev 3.23-1 [1,547kB]
Get: 77 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe mkpasswd 5.0.0ubuntu3 [17.9kB]
Get: 78 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main seabios 0.5.1-0ubuntu2.2 [48.3kB]
Get: 79 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main vgabios 0.6c-2ubuntu1 [78.5kB]
Get: 80 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main qemu-common 0.12.3+noroms-0ubuntu9.21 [31.6kB]
Get: 81 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main qemu-kvm 0.12.3+noroms-0ubuntu9.21 [2,954kB]
Get: 82 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe tmux 1.1-1 [196kB]
Get: 83 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main debootstrap 1.0.20ubuntu1.4 [54.4kB]
Get: 84 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main kpartx 0.4.8-14ubuntu4.10.04.2 [29.0kB]
Fetched 62.9MB in 10s (5,941kB/s)                                              
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously deselected package x11-common.
(Reading database ... 24337 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_1%3a7.5+5ubuntu1.1_all.deb) ...
Preparing to replace libc-bin 2.11.1-0ubuntu7.8 (using .../libc-bin_2.11.1-0ubuntu7.12_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up libc-bin (2.11.1-0ubuntu7.12) ...

(Reading database ... 24416 files and directories currently installed.)
Preparing to replace libc6 2.11.1-0ubuntu7.8 (using .../libc6_2.11.1-0ubuntu7.12_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.11.1-0ubuntu7.12) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 24416 files and directories currently installed.)
Preparing to replace gcc-4.4-base 4.4.3-4ubuntu5 (using .../gcc-4.4-base_4.4.3-4ubuntu5.1_amd64.deb) ...
Unpacking replacement gcc-4.4-base ...
Setting up gcc-4.4-base (4.4.3-4ubuntu5.1) ...
(Reading database ... 24416 files and directories currently installed.)
Preparing to replace libgcc1 1:4.4.3-4ubuntu5 (using .../libgcc1_1%3a4.4.3-4ubuntu5.1_amd64.deb) ...
Unpacking replacement libgcc1 ...
Setting up libgcc1 (1:4.4.3-4ubuntu5.1) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 24416 files and directories currently installed.)
Preparing to replace cpp-4.4 4.4.3-4ubuntu5 (using .../cpp-4.4_4.4.3-4ubuntu5.1_amd64.deb) ...
Unpacking replacement cpp-4.4 ...
Preparing to replace libstdc++6 4.4.3-4ubuntu5 (using .../libstdc++6_4.4.3-4ubuntu5.1_amd64.deb) ...
Unpacking replacement libstdc++6 ...
Processing triggers for man-db ...
Setting up libstdc++6 (4.4.3-4ubuntu5.1) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 24416 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8k-7ubuntu8.5 (using .../libssl0.9.8_0.9.8k-7ubuntu8.13_amd64.deb) ...
Unpacking replacement libssl0.9.8 ...
Setting up libssl0.9.8 (0.9.8k-7ubuntu8.13) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 24416 files and directories currently installed.)
Preparing to replace vim-tiny 2:7.2.330-1ubuntu3 (using .../vim-tiny_2%3a7.2.330-1ubuntu3.1_amd64.deb) ...
Unpacking replacement vim-tiny ...
Preparing to replace vim 2:7.2.330-1ubuntu3 (using .../vim_2%3a7.2.330-1ubuntu3.1_amd64.deb) ...
Unpacking replacement vim ...
Preparing to replace vim-runtime 2:7.2.330-1ubuntu3 (using .../vim-runtime_2%3a7.2.330-1ubuntu3.1_all.deb) ...
Leaving `diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/doc/help.txt.vim-tiny by vim-runtime'
Leaving `diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/tags.vim-tiny by vim-runtime'
Unpacking replacement vim-runtime ...
Preparing to replace vim-common 2:7.2.330-1ubuntu3 (using .../vim-common_2%3a7.2.330-1ubuntu3.1_amd64.deb) ...
Unpacking replacement vim-common ...
Preparing to replace libk5crypto3 1.8.1+dfsg-2ubuntu0.4 (using .../libk5crypto3_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Unpacking replacement libk5crypto3 ...
Preparing to replace libgssapi-krb5-2 1.8.1+dfsg-2ubuntu0.4 (using .../libgssapi-krb5-2_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Unpacking replacement libgssapi-krb5-2 ...
Preparing to replace libkrb5-3 1.8.1+dfsg-2ubuntu0.4 (using .../libkrb5-3_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Unpacking replacement libkrb5-3 ...
Preparing to replace libkrb5support0 1.8.1+dfsg-2ubuntu0.4 (using .../libkrb5support0_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Unpacking replacement libkrb5support0 ...
Selecting previously deselected package libgssrpc4.
Unpacking libgssrpc4 (from .../libgssrpc4_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Selecting previously deselected package libkadm5clnt-mit7.
Unpacking libkadm5clnt-mit7 (from .../libkadm5clnt-mit7_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Selecting previously deselected package libkdb5-4.
Unpacking libkdb5-4 (from .../libkdb5-4_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Selecting previously deselected package libkadm5srv-mit7.
Unpacking libkadm5srv-mit7 (from .../libkadm5srv-mit7_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Preparing to replace libxml2 2.7.6.dfsg-1ubuntu1.1 (using .../libxml2_2.7.6.dfsg-1ubuntu1.7_amd64.deb) ...
Unpacking replacement libxml2 ...
Preparing to replace rsync 3.0.7-1ubuntu1 (using .../rsync_3.0.7-1ubuntu1.1_amd64.deb) ...
Unpacking replacement rsync ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.20.1-3ubuntu7.1_amd64.deb) ...
Selecting previously deselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.4-5ubuntu2_amd64.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.1-0ubuntu7.12_amd64.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.32-45.102_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.11.1-0ubuntu7.12_amd64.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.4.3-4ubuntu5.1_amd64.deb) ...
Selecting previously deselected package gcc-4.4.
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.3-4ubuntu5.1_amd64.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.4.3-1ubuntu1_amd64.deb) ...
Selecting previously deselected package libstdc++6-4.4-dev.
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.3-4ubuntu5.1_amd64.deb) ...
Selecting previously deselected package g++-4.4.
Unpacking g++-4.4 (from .../g++-4.4_4.4.3-4ubuntu5.1_amd64.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.4.3-1ubuntu1_amd64.deb) ...
Selecting previously deselected package liblzma1.
Unpacking liblzma1 (from .../liblzma1_4.999.9beta+20091116-1_amd64.deb) ...
Selecting previously deselected package xz-utils.
Unpacking xz-utils (from .../xz-utils_4.999.9beta+20091116-1_amd64.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.15.5.6ubuntu4.6_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4build1_amd64.deb) ...
Preparing to replace curl 7.19.7-1ubuntu1 (using .../curl_7.19.7-1ubuntu1.1_amd64.deb) ...
Unpacking replacement curl ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_amd64.deb) ...
Selecting previously deselected package genisoimage.
Unpacking genisoimage (from .../genisoimage_9%3a1.1.10-1ubuntu1_amd64.deb) ...
Selecting previously deselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously deselected package libdigest-sha1-perl.
Unpacking libdigest-sha1-perl (from .../libdigest-sha1-perl_2.12-1build1_amd64.deb) ...
Selecting previously deselected package git-core.
Unpacking git-core (from .../git-core_1%3a1.7.0.4-1ubuntu0.2_amd64.deb) ...
Selecting previously deselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.41.11-1ubuntu2.1_amd64.deb) ...
Selecting previously deselected package krb5-multidev.
Unpacking krb5-multidev (from .../krb5-multidev_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Selecting previously deselected package libaio1.
Unpacking libaio1 (from .../libaio1_0.3.107-3ubuntu2_amd64.deb) ...
Selecting previously deselected package libasound2.
Unpacking libasound2 (from .../libasound2_1.0.22-0ubuntu7_amd64.deb) ...
Selecting previously deselected package libsysfs2.
Unpacking libsysfs2 (from .../libsysfs2_2.1.0-6_amd64.deb) ...
Selecting previously deselected package tsconf.
Unpacking tsconf (from .../tsconf_1.0-7build1_all.deb) ...
Selecting previously deselected package libts-0.0-0.
Unpacking libts-0.0-0 (from .../libts-0.0-0_1.0-7build1_amd64.deb) ...
Selecting previously deselected package libdirectfb-1.2-0.
Unpacking libdirectfb-1.2-0 (from .../libdirectfb-1.2-0_1.2.8-5ubuntu2_amd64.deb) ...
Selecting previously deselected package libogg0.
Unpacking libogg0 (from .../libogg0_1.1.4~dfsg-2_amd64.deb) ...
Selecting previously deselected package libflac8.
Unpacking libflac8 (from .../libflac8_1.2.1-2build2_amd64.deb) ...
Selecting previously deselected package libice6.
Unpacking libice6 (from .../libice6_2%3a1.0.6-1_amd64.deb) ...
Selecting previously deselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.1.67-0ubuntu0.10.04.1_all.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.67-0ubuntu0.10.04.1_amd64.deb) ...
Selecting previously deselected package zlib1g-dev.
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.3.dfsg-15ubuntu1_amd64.deb) ...
Selecting previously deselected package libmysqlclient-dev.
Unpacking libmysqlclient-dev (from .../libmysqlclient-dev_5.1.67-0ubuntu0.10.04.1_amd64.deb) ...
Selecting previously deselected package libpq5.
Unpacking libpq5 (from .../libpq5_8.4.15-0ubuntu10.04_amd64.deb) ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_0.9.8k-7ubuntu8.13_amd64.deb) ...
Selecting previously deselected package libkrb5-dev.
Unpacking libkrb5-dev (from .../libkrb5-dev_1.8.1+dfsg-2ubuntu0.11_amd64.deb) ...
Selecting previously deselected package libpq-dev.
Unpacking libpq-dev (from .../libpq-dev_8.4.15-0ubuntu10.04_amd64.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from .../libsm6_2%3a1.1.1-1_amd64.deb) ...
Selecting previously deselected package libvorbis0a.
Unpacking libvorbis0a (from .../libvorbis0a_1.2.3-3ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libvorbisenc2.
Unpacking libvorbisenc2 (from .../libvorbisenc2_1.2.3-3ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libsndfile1.
Unpacking libsndfile1 (from .../libsndfile1_1.0.21-2ubuntu0.10.04.1_amd64.deb) ...
Selecting previously deselected package libxi6.
Unpacking libxi6 (from .../libxi6_2%3a1.3-3_amd64.deb) ...
Selecting previously deselected package libxtst6.
Unpacking libxtst6 (from .../libxtst6_2%3a1.1.0-2_amd64.deb) ...
Selecting previously deselected package libpulse0.
Unpacking libpulse0 (from .../libpulse0_1%3a0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu14_amd64.deb) ...
Selecting previously deselected package libsdl1.2debian-alsa.
Unpacking libsdl1.2debian-alsa (from .../libsdl1.2debian-alsa_1.2.14-4ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libsdl1.2debian.
Unpacking libsdl1.2debian (from .../libsdl1.2debian_1.2.14-4ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libsqlite3-dev.
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.6.22-1_amd64.deb) ...
Selecting previously deselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2-dev_2.7.6.dfsg-1ubuntu1.7_amd64.deb) ...
Selecting previously deselected package libxslt1.1.
Unpacking libxslt1.1 (from .../libxslt1.1_1.1.26-1ubuntu1.1_amd64.deb) ...
Selecting previously deselected package libxslt1-dev.
Unpacking libxslt1-dev (from .../libxslt1-dev_1.1.26-1ubuntu1.1_amd64.deb) ...
Selecting previously deselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.23-1_all.deb) ...
Selecting previously deselected package mkpasswd.
Unpacking mkpasswd (from .../mkpasswd_5.0.0ubuntu3_amd64.deb) ...
Selecting previously deselected package seabios.
Unpacking seabios (from .../seabios_0.5.1-0ubuntu2.2_all.deb) ...
Selecting previously deselected package vgabios.
Unpacking vgabios (from .../vgabios_0.6c-2ubuntu1_all.deb) ...
Selecting previously deselected package qemu-common.
Unpacking qemu-common (from .../qemu-common_0.12.3+noroms-0ubuntu9.21_all.deb) ...
Selecting previously deselected package qemu-kvm.
Unpacking qemu-kvm (from .../qemu-kvm_0.12.3+noroms-0ubuntu9.21_amd64.deb) ...
Selecting previously deselected package tmux.
Unpacking tmux (from .../archives/tmux_1.1-1_amd64.deb) ...
Selecting previously deselected package debootstrap.
Unpacking debootstrap (from .../debootstrap_1.0.20ubuntu1.4_all.deb) ...
Selecting previously deselected package kpartx.
Unpacking kpartx (from .../kpartx_0.4.8-14ubuntu4.10.04.2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for install-info ...
Setting up x11-common (1:7.5+5ubuntu1.1) ...

Setting up cpp-4.4 (4.4.3-4ubuntu5.1) ...
Setting up vim-common (2:7.2.330-1ubuntu3.1) ...

Setting up vim-tiny (2:7.2.330-1ubuntu3.1) ...

Setting up vim-runtime (2:7.2.330-1ubuntu3.1) ...
Processing /usr/share/vim/addons/doc

Setting up vim (2:7.2.330-1ubuntu3.1) ...

Setting up libkrb5support0 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libk5crypto3 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libkrb5-3 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libgssapi-krb5-2 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libgssrpc4 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libkadm5clnt-mit7 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libkdb5-4 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libkadm5srv-mit7 (1.8.1+dfsg-2ubuntu0.11) ...

Setting up libxml2 (2.7.6.dfsg-1ubuntu1.7) ...

Setting up rsync (3.0.7-1ubuntu1.1) ...

Setting up binutils (2.20.1-3ubuntu7.1) ...

Setting up bridge-utils (1.4-5ubuntu2) ...

Setting up libc-dev-bin (2.11.1-0ubuntu7.12) ...
Setting up linux-libc-dev (2.6.32-45.102) ...
Setting up libc6-dev (2.11.1-0ubuntu7.12) ...
Setting up libgomp1 (4.4.3-4ubuntu5.1) ...

Setting up gcc-4.4 (4.4.3-4ubuntu5.1) ...
Setting up gcc (4:4.4.3-1ubuntu1) ...

Setting up liblzma1 (4.999.9beta+20091116-1) ...

Setting up xz-utils (4.999.9beta+20091116-1) ...
Setting up dpkg-dev (1.15.5.6ubuntu4.6) ...
Setting up curl (7.19.7-1ubuntu1.1) ...
Setting up fakeroot (1.14.4-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.

Setting up genisoimage (9:1.1.10-1ubuntu1) ...
Setting up liberror-perl (0.17-1) ...
Setting up libdigest-sha1-perl (2.12-1build1) ...
Setting up git-core (1:1.7.0.4-1ubuntu0.2) ...
Setting up comerr-dev (2.1-1.41.11-1ubuntu2.1) ...
Setting up krb5-multidev (1.8.1+dfsg-2ubuntu0.11) ...
Setting up libaio1 (0.3.107-3ubuntu2) ...

Setting up libasound2 (1.0.22-0ubuntu7) ...

Setting up libsysfs2 (2.1.0-6) ...

Setting up tsconf (1.0-7build1) ...
Setting up libts-0.0-0 (1.0-7build1) ...

Setting up libdirectfb-1.2-0 (1.2.8-5ubuntu2) ...

Setting up libogg0 (1.1.4~dfsg-2) ...

Setting up libflac8 (1.2.1-2build2) ...

Setting up libice6 (2:1.0.6-1) ...

Setting up mysql-common (5.1.67-0ubuntu0.10.04.1) ...
Setting up libmysqlclient16 (5.1.67-0ubuntu0.10.04.1) ...

Setting up zlib1g-dev (1:1.2.3.3.dfsg-15ubuntu1) ...
Setting up libmysqlclient-dev (5.1.67-0ubuntu0.10.04.1) ...

Setting up libpq5 (8.4.15-0ubuntu10.04) ...

Setting up libssl-dev (0.9.8k-7ubuntu8.13) ...
Setting up libkrb5-dev (1.8.1+dfsg-2ubuntu0.11) ...
Setting up libpq-dev (8.4.15-0ubuntu10.04) ...
Setting up libsm6 (2:1.1.1-1) ...

Setting up libvorbis0a (1.2.3-3ubuntu1.1) ...

Setting up libvorbisenc2 (1.2.3-3ubuntu1.1) ...

Setting up libsndfile1 (1.0.21-2ubuntu0.10.04.1) ...

Setting up libxi6 (2:1.3-3) ...

Setting up libxtst6 (2:1.1.0-2) ...

Setting up libpulse0 (1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu14) ...

Setting up libsdl1.2debian-alsa (1.2.14-4ubuntu1.1) ...

Setting up libsdl1.2debian (1.2.14-4ubuntu1.1) ...
Setting up libsqlite3-dev (3.6.22-1) ...
Setting up libxml2-dev (2.7.6.dfsg-1ubuntu1.7) ...
Setting up libxslt1.1 (1.1.26-1ubuntu1.1) ...

Setting up libxslt1-dev (1.1.26-1ubuntu1.1) ...
Setting up manpages-dev (3.23-1) ...
Setting up mkpasswd (5.0.0ubuntu3) ...
Setting up seabios (0.5.1-0ubuntu2.2) ...
Setting up vgabios (0.6c-2ubuntu1) ...
Setting up qemu-common (0.12.3+noroms-0ubuntu9.21) ...
Setting up qemu-kvm (0.12.3+noroms-0ubuntu9.21) ...
qemu-kvm start/running

Setting up tmux (1.1-1) ...

Setting up debootstrap (1.0.20ubuntu1.4) ...
Setting up kpartx (0.4.8-14ubuntu4.10.04.2) ...

Setting up libstdc++6-4.4-dev (4.4.3-4ubuntu5.1) ...
Setting up g++-4.4 (4.4.3-4ubuntu5.1) ...
Setting up g++ (4:4.4.3-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.

Setting up build-essential (11.4build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Successfully installed base packages
installing ruby 1.9.3
uploading /tmp/remote_script_install_ruby_1_9_3 to Inception VM
Adding the Unboxed APT repository...

 Retrieving the PGP keys for the repository...
--2013-01-23 17:17:20--  http://apt.unboxedconsulting.com/release.asc
Resolving apt.unboxedconsulting.com... 217.158.189.124
Connecting to apt.unboxedconsulting.com|217.158.189.124|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4929 (4.8K) [text/plain]
Saving to: `STDOUT'

100%[======================================>] 4,929       --.-K/s   in 0.01s   

2013-01-23 17:17:20 (392 KB/s) - written to stdout [4929/4929]

OK
Resynchronizing the package index files from their sources...
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid Release.gpg
Hit http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
Hit http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
Get: 1 http://apt.unboxedconsulting.com lucid Release.gpg [836B]
Ign http://apt.unboxedconsulting.com/ lucid/main Translation-en_GB
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Hit http://security.ubuntu.com lucid-security Release                
Get: 2 http://apt.unboxedconsulting.com lucid Release [1,584B]
Hit http://security.ubuntu.com lucid-security/main Packages            
Ign http://apt.unboxedconsulting.com lucid/main Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/universe Packages      
Hit http://security.ubuntu.com lucid-security/main Sources           
Hit http://security.ubuntu.com lucid-security/universe Sources       
Ign http://apt.unboxedconsulting.com lucid/main Packages             
Hit http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Hit http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Get: 3 http://apt.unboxedconsulting.com lucid/main Packages [5,017B]
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid Release
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates Release
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid/main Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid/universe Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid/main Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid/universe Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/main Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/universe Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/main Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com lucid-updates/universe Sources
Fetched 7,437B in 0s (29.4kB/s)
Reading package lists... Done
Installing Ruby 1.9.3...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  ubxd-ruby1.9.3
0 upgraded, 1 newly installed, 0 to remove and 105 not upgraded.
Need to get 5,283kB of archives.
After this operation, 17.7MB of additional disk space will be used.
Get: 1 http://apt.unboxedconsulting.com/ lucid/main ubxd-ruby1.9.3 1.9.3+p125-1lucid1 [5,283kB]
Fetched 5,283kB in 11s (460kB/s)                                               
Selecting previously deselected package ubxd-ruby1.9.3.
(Reading database ... 31321 files and directories currently installed.)
Unpacking ubxd-ruby1.9.3 (from .../ubxd-ruby1.9.3_1.9.3+p125-1lucid1_amd64.deb) ...
Processing triggers for man-db ...
Setting up ubxd-ruby1.9.3 (1.9.3+p125-1lucid1) ...
Upgrading to latest Rubygems...
Updating rubygems-update
Fetching: rubygems-update-1.8.24.gem (100%)
Successfully installed rubygems-update-1.8.24
Installing RubyGems 1.8.24
RubyGems 1.8.24 installed

== 1.8.24 / 2012-04-27

* 1 bug fix:

  * Install the .pem files properly. Fixes #320
  * Remove OpenSSL dependency from the http code path

------------------------------------------------------------------------------

RubyGems installed the following executables:
    /usr/local/bin/gem

RubyGems system software updated
Successfully installed ruby 1.9.3
installing useful ruby gems
uploading /tmp/remote_script_install_useful_ruby_gems to Inception VM
Fetching: bundler-1.2.3.gem (100%)
Successfully installed bundler-1.2.3
1 gem installed
gem rake already installed
Successfully installed useful ruby gems
installing bosh
uploading /tmp/remote_script_install_bosh to Inception VM
Fetching: bosh_common-0.5.4.gem (100%)
Fetching: json_pure-1.6.7.gem (100%)
Fetching: highline-1.6.15.gem (100%)
Fetching: progressbar-0.9.2.gem (100%)
Fetching: httpclient-2.2.4.gem (100%)
Fetching: terminal-table-1.4.5.gem (100%)
Fetching: xml-simple-1.1.2.gem (100%)
Fetching: builder-3.1.4.gem (100%)
Fetching: mime-types-1.19.gem (100%)
Fetching: aws-s3-0.6.3.gem (100%)
Fetching: multi_json-1.1.0.gem (100%)
Fetching: log4r-1.1.10.gem (100%)
Fetching: ruby-hmac-0.4.0.gem (100%)
Fetching: ruby-atmos-pure-1.0.5.gem (100%)
Fetching: uuidtools-2.1.3.gem (100%)
Fetching: blobstore_client-0.4.0.gem (100%)
Fetching: net-ssh-2.2.2.gem (100%)
Fetching: net-ssh-gateway-1.1.0.gem (100%)
Fetching: net-scp-1.0.4.gem (100%)
Fetching: netaddr-1.5.0.gem (100%)
Fetching: bosh_cli-1.0.3.gem (100%)
Successfully installed bosh_common-0.5.4
Successfully installed json_pure-1.6.7
Successfully installed highline-1.6.15
Successfully installed progressbar-0.9.2
Successfully installed httpclient-2.2.4
Successfully installed terminal-table-1.4.5
Successfully installed xml-simple-1.1.2
Successfully installed builder-3.1.4
Successfully installed mime-types-1.19
Successfully installed aws-s3-0.6.3
Successfully installed multi_json-1.1.0
Successfully installed log4r-1.1.10
Successfully installed ruby-hmac-0.4.0
Successfully installed ruby-atmos-pure-1.0.5
Successfully installed uuidtools-2.1.3
Successfully installed blobstore_client-0.4.0
Successfully installed net-ssh-2.2.2
Successfully installed net-ssh-gateway-1.1.0
Successfully installed net-scp-1.0.4
Successfully installed netaddr-1.5.0
Successfully installed bosh_cli-1.0.3
21 gems installed
Fetching: bosh_cpi-0.5.1.gem (100%)
Fetching: rest-client-1.6.7.gem (100%)
Fetching: nokogiri-1.5.6.gem (100%)
Building native extensions.  This could take a while...
Fetching: ruby_vcloud_sdk-0.4.8.gem (100%)
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: bosh_vcloud_cpi-0.4.9.gem (100%)
Fetching: membrane-0.0.2.gem (100%)
Fetching: ruby_vim_sdk-0.0.3.gem (100%)
Fetching: sequel-3.43.0.gem (100%)
Fetching: bosh_vsphere_cpi-0.6.0.gem (100%)
Fetching: multi_xml-0.5.2.gem (100%)
Fetching: httparty-0.10.0.gem (100%)
When you HTTParty, you must party hard!
Fetching: aws-sdk-1.6.9.gem (100%)
Fetching: bosh_aws_cpi-0.7.0.gem (100%)
Fetching: rack-1.5.0.gem (100%)
Fetching: rack-protection-1.3.2.gem (100%)
Fetching: tilt-1.3.3.gem (100%)
Fetching: sinatra-1.3.3.gem (100%)
Fetching: eventmachine-1.0.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: daemons-1.1.9.gem (100%)
Fetching: thin-1.5.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: bosh_aws_registry-0.2.3.gem (100%)
Fetching: excon-0.16.10.gem (100%)
Fetching: formatador-0.2.4.gem (100%)
Fetching: fog-1.9.0.gem (100%)
Fetching: bosh_openstack_cpi-0.0.6.gem (100%)
Fetching: bosh_openstack_registry-0.0.5.gem (100%)
Fetching: agent_client-0.1.1.gem (100%)
Fetching: sqlite3-1.3.7.gem (100%)
Building native extensions.  This could take a while...
Fetching: bosh_deployer-1.4.0.gem (100%)
Successfully installed bosh_cpi-0.5.1
Successfully installed rest-client-1.6.7
Successfully installed nokogiri-1.5.6
Successfully installed ruby_vcloud_sdk-0.4.8
Successfully installed yajl-ruby-1.1.0
Successfully installed bosh_vcloud_cpi-0.4.9
Successfully installed membrane-0.0.2
Successfully installed ruby_vim_sdk-0.0.3
Successfully installed sequel-3.43.0
Successfully installed bosh_vsphere_cpi-0.6.0
Successfully installed multi_xml-0.5.2
Successfully installed httparty-0.10.0
Successfully installed aws-sdk-1.6.9
Successfully installed bosh_aws_cpi-0.7.0
Successfully installed rack-1.5.0
Successfully installed rack-protection-1.3.2
Successfully installed tilt-1.3.3
Successfully installed sinatra-1.3.3
Successfully installed eventmachine-1.0.0
Successfully installed daemons-1.1.9
Successfully installed thin-1.5.0
Successfully installed bosh_aws_registry-0.2.3
Successfully installed excon-0.16.10
Successfully installed formatador-0.2.4
Successfully installed fog-1.9.0
Successfully installed bosh_openstack_cpi-0.0.6
Successfully installed bosh_openstack_registry-0.0.5
Successfully installed agent_client-0.1.1
Successfully installed sqlite3-1.3.7
Successfully installed bosh_deployer-1.4.0
30 gems installed
Symlinking the expected stemcell creation folder into mounted volume...
Successfully installed bosh
captures value of salted password
uploading /tmp/remote_script_capture_value_salted_password to Inception VM
$6$pkMvca4mqy$M1dgK6eeoJwoKECJlgTFWWn8xNGogJICu4Jgn5bieSAXfAuSwsDWLunWk4folDX45IBQqYixeehgWs7J7WcPv1
Successfully captured value of salted password
validating bosh deployer
uploading /tmp/remote_script_validate_bosh_deployer to Inception VM
Testing for 'bosh micro deploy' command...
Successfully installed bosh deployer (bosh micro deploy)
Successfully validated bosh deployer

Stage 5: Deploying micro BOSH

downloading micro-bosh stemcell
uploading /tmp/remote_script_download_micro_bosh_stemcell to Inception VM
Downloading public stemcell micro-bosh-stemcell-aws-0.7.0.tgz
micro-bosh-st: 100% |oooooooooooooooooooooooo| 452.7MB   3.9MB/s Time: 00:01:56
Download complete
Successfully downloaded micro-bosh stemcell
uploading file
uploading /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml to Inception VM
Successfully uploaded file
installing key pair for user
uploading /tmp/remote_script_install_key_pair_for_user to Inception VM
Successfully installed key pair for user
deploy micro bosh
uploading /tmp/remote_script_deploy_micro_bosh to Inception VM
WARNING! Your target has been changed to `http://microbosh-aws-eu-west-1:25555'!
Deployment set to '/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml'
Downloaded stemcell path /var/vcap/store/stemcells/micro-bosh-stemcell-aws-0.7.0.tgz
Performing initial deploy of micro BOSH microbosh-aws-eu-west-1

Verifying stemcell...
File exists and readable                                     OK
Manifest not found in cache, verifying tarball...
Extract tarball                                              OK
Manifest exists                                              OK
Stemcell image file                                          OK
Writing manifest to cache...
Stemcell properties                                          OK

Stemcell info
-------------
Name:    micro-bosh-stemcell
Version: 0.7.0

Deploy Micro BOSH
  unpacking stemcell (00:00:13)                                                 
  uploading stemcell (00:13:20)                                                 
Creating VM from...          |ooo                | 2/11 00:13:34  ETA: 01:01:03/usr/local/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:318:in `return_or_raise': Invalid availability zone: [us-east-1a] (AWS::EC2::Errors::InvalidParameterValue)
    from /usr/local/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:419:in `client_request'
    from (eval):3:in `run_instances'
    from /usr/local/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/ec2/instance_collection.rb:265:in `create'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_aws_cpi-0.7.0/lib/cloud/aws/cloud.rb:119:in `block in create_vm'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_common-0.5.4/lib/common/thread_formatter.rb:46:in `with_thread_name'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_aws_cpi-0.7.0/lib/cloud/aws/cloud.rb:91:in `create_vm'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:224:in `create_vm'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:134:in `block in create'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:84:in `step'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:133:in `create'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:104:in `block in create_deployment'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:97:in `with_lifecycle'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/deployer/instance_manager.rb:103:in `create_deployment'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.4.0/lib/bosh/cli/commands/micro.rb:171:in `perform'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/command_handler.rb:57:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:61:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:18:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/bin/bosh:16:in `<top (required)>'
    from /usr/local/bin/bosh:23:in `load'
    from /usr/local/bin/bosh:23:in `<main>'
       error  deploy micro bosh
drnic commented 11 years ago

Thanks @mrdavidlaing.

If you're able to help debugging before I can get to look at this - is there any mention of us-east-1:

mrdavidlaing commented 11 years ago

@drnic - Thanks for the tips!

I deleted everything and started again with bundle exec bosh-bootstrap deploy --edge-stemcell --edge-deployer just to be sure this isn't an "old" bug.

Same problem occured.

So:

  1. grep us-east-1 ~/.bosh_bootstrap/manifest.yml returns nothing.
  2. grep us-east-1 /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml returns nothing.
  3. ~$ sudo grep -r us-east-1 /var/vcap gives
/var/vcap/store/releases/bosh-release/src/bosh/aws_cpi/lib/cloud/aws/cloud.rb:    DEFAULT_AVAILABILITY_ZONE = "us-east-1a"
/var/vcap/store/releases/bosh-release/src/bosh/aws_cpi/README.md:  EC2 region, defaults to `us-east-1`
/var/vcap/store/releases/bosh-release/src/bosh/aws_cpi/spec/unit/create_disk_spec.rb:      :availability_zone => "us-east-1a"
/var/vcap/store/releases/bosh-release/src/bosh/aws_cpi/spec/unit/create_disk_spec.rb:      :availability_zone => "us-east-1a"
/var/vcap/store/releases/bosh-release/src/bosh/aws/README:  us-east-1:
/var/vcap/store/releases/bosh-release/src/bosh/aws/bin/ami:  us-east-1
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/lib/bosh/cli/commands/aws.rb:        say("no region specified, defaulting to us-east-1")
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/functional/aws_spec.rb:          {"cidr" => "10.10.0.0/24", "availability_zone" => "us-east-1a"},
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/functional/aws_spec.rb:          {"cidr" => "10.10.1.0/24", "availability_zone" => "us-east-1b"}
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/assets/config.yml:  region: us-east-1
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/assets/config.yml:      availability_zone: us-east-1a
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/assets/config.yml:      availability_zone: us-east-1b
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/assets/test-output.yml:  region: us-east-1
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/unit/aws_spec.rb:        subnets.should_receive(:create).with("1.0.10.0/24", {:availability_zone => "us-east-1"})
/var/vcap/store/releases/bosh-release/src/bosh/aws_bootstrap/spec/unit/aws_spec.rb:        aws.create_subnets([{"cidr" => "1.0.10.0/24", "availability_zone" => "us-east-1"}])
/var/vcap/store/repos/bosh/aws_cpi/lib/cloud/aws/cloud.rb:    DEFAULT_AVAILABILITY_ZONE = "us-east-1a"
/var/vcap/store/repos/bosh/aws_cpi/README.md:  EC2 region, defaults to `us-east-1`
/var/vcap/store/repos/bosh/aws_cpi/spec/unit/create_disk_spec.rb:      :availability_zone => "us-east-1a"
/var/vcap/store/repos/bosh/aws_cpi/spec/unit/create_disk_spec.rb:      :availability_zone => "us-east-1a"
/var/vcap/store/repos/bosh/aws/README:  us-east-1:
/var/vcap/store/repos/bosh/aws/bin/ami:  us-east-1
/var/vcap/store/repos/bosh/aws_bootstrap/lib/bosh/cli/commands/aws.rb:        say("no region specified, defaulting to us-east-1")
/var/vcap/store/repos/bosh/aws_bootstrap/spec/functional/aws_spec.rb:          {"cidr" => "10.10.0.0/24", "availability_zone" => "us-east-1a"},
/var/vcap/store/repos/bosh/aws_bootstrap/spec/functional/aws_spec.rb:          {"cidr" => "10.10.1.0/24", "availability_zone" => "us-east-1b"}
/var/vcap/store/repos/bosh/aws_bootstrap/spec/assets/config.yml:  region: us-east-1
/var/vcap/store/repos/bosh/aws_bootstrap/spec/assets/config.yml:      availability_zone: us-east-1a
/var/vcap/store/repos/bosh/aws_bootstrap/spec/assets/config.yml:      availability_zone: us-east-1b
/var/vcap/store/repos/bosh/aws_bootstrap/spec/assets/test-output.yml:  region: us-east-1
/var/vcap/store/repos/bosh/aws_bootstrap/spec/unit/aws_spec.rb:        subnets.should_receive(:create).with("1.0.10.0/24", {:availability_zone => "us-east-1"})
/var/vcap/store/repos/bosh/aws_bootstrap/spec/unit/aws_spec.rb:        aws.create_subnets([{"cidr" => "1.0.10.0/24", "availability_zone" => "us-east-1"}])
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/bosh_micro_deploy.log:I, [2013-01-24T18:45:22.893970 #29343] [create_vm(bm-a811ea5f-ecda-462d-b88c-601484bfab0d, ...)]  INFO -- : [AWS EC2 400 0.139043 0 retries] run_instances(:client_token=>"358ef71c-6656-11e2-91b4-12313c0631bf",:image_id=>"ami-d01917a4",:instance_type=>"m1.medium",:key_name=>"microbosh-aws-eu-west-1",:max_count=>1,:min_count=>1,:placement=>{:availability_zone=>"us-east-1a"},:security_groups=>["microbosh-aws-eu-west-1"],:user_data=>"eyJyZWdpc3RyeSI6eyJlbmRwb2ludCI6Imh0dHA6Ly9hZG1pbjphZG1pbkBs\nb2NhbGhvc3Q6MjU4ODgifX0=") AWS::EC2::Errors::InvalidParameterValue Invalid availability zone: [us-east-1a]

Could /var/vcap/store/releases/bosh-release/src/bosh/aws_cpi/lib/cloud/aws/cloud.rb: DEFAULT_AVAILABILITY_ZONE = "us-east-1a" be a clue?

drnic commented 11 years ago

Yeah, can you run the greps again for eu-west? Perhaps I'm not populating the region at all and its defaulting to us-east-1?

drnic commented 11 years ago

You shouldn't need edge stemcells any more. Martin just release new public stemcell which map to what I've been working against. From now on "--latest-stemcell" is the flag to use (since the 0.8.1 stemcell is not marked "stable" yet).

mrdavidlaing commented 11 years ago

can you run the greps again for eu-west

I think you mean this:

$ grep eu-west ~/.bosh_bootstrap/manifest.yml
  region: eu-west-1
    ec2_endpoint: ec2.eu-west-1.amazonaws.com
    - microbosh-aws-eu-west-1
    default_key_name: microbosh-aws-eu-west-1
    ec2_private_key: /home/vcap/.ssh/microbosh-aws-eu-west-1.pem
region_code: eu-west-1
bosh_name: microbosh-aws-eu-west-1
  name: microbosh-aws-eu-west-1
  name: microbosh-aws-eu-west-1
  host: ec2-46-51-171-219.eu-west-1.compute.amazonaws.com
~$ grep eu-west /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml
name: microbosh-aws-eu-west-1
      ec2_endpoint: ec2.eu-west-1.amazonaws.com
      - microbosh-aws-eu-west-1
      default_key_name: microbosh-aws-eu-west-1
      ec2_private_key: /home/vcap/.ssh/microbosh-aws-eu-west-1.pem
~$ sudo grep -r eu-west /var/vcap
/var/vcap/store/releases/bosh-release/.git/logs/HEAD:0000000000000000000000000000000000000000 e960acd9d6529b2500c5f98254454891c64df692 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048945 +0000   clone: from https://github.com/cloudfoundry/bosh-release.git
/var/vcap/store/releases/bosh-release/.git/logs/refs/heads/master:0000000000000000000000000000000000000000 e960acd9d6529b2500c5f98254454891c64df692 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048945 +0000  clone: from https://github.com/cloudfoundry/bosh-release.git
/var/vcap/store/releases/bosh-release/src/bosh/.git/logs/HEAD:0000000000000000000000000000000000000000 9719202c9d3fed5e77205adc156b109a9cf683f4 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048976 +0000  clone: from https://github.com/cloudfoundry/bosh.git
/var/vcap/store/releases/bosh-release/src/bosh/.git/logs/HEAD:9719202c9d3fed5e77205adc156b109a9cf683f4 57b31b3f15804d8df6c3ffded6a1555b5bc065f5 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048979 +0000  checkout: moving from master to 57b31b3f15804d8df6c3ffded6a1555b5bc065f5
/var/vcap/store/releases/bosh-release/src/bosh/.git/logs/refs/heads/master:0000000000000000000000000000000000000000 9719202c9d3fed5e77205adc156b109a9cf683f4 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048976 +0000 clone: from https://github.com/cloudfoundry/bosh.git
/var/vcap/store/releases/bosh-release/src/bosh/aws/bin/ami:  eu-west-1
/var/vcap/store/releases/bosh-release/src/gonatsd/.git/logs/HEAD:0000000000000000000000000000000000000000 8b836c98520c9913f85aaf4419fa070f64b81668 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048982 +0000   clone: from https://github.com/cloudfoundry/gonatsd.git
/var/vcap/store/releases/bosh-release/src/gonatsd/.git/logs/HEAD:8b836c98520c9913f85aaf4419fa070f64b81668 8101d1446a3f208cd4cd2974d43bce7078ca39cc root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048983 +0000   checkout: moving from master to 8101d1446a3f208cd4cd2974d43bce7078ca39cc
/var/vcap/store/releases/bosh-release/src/gonatsd/.git/logs/refs/heads/master:0000000000000000000000000000000000000000 8b836c98520c9913f85aaf4419fa070f64b81668 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048982 +0000  clone: from https://github.com/cloudfoundry/gonatsd.git
/var/vcap/store/repos/bosh/.git/logs/HEAD:0000000000000000000000000000000000000000 9719202c9d3fed5e77205adc156b109a9cf683f4 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048465 +0000  clone: from https://github.com/cloudfoundry/bosh.git
/var/vcap/store/repos/bosh/.git/logs/refs/heads/master:0000000000000000000000000000000000000000 9719202c9d3fed5e77205adc156b109a9cf683f4 root <root@ip-10-51-50-77.eu-west-1.compute.internal> 1359048465 +0000 clone: from https://github.com/cloudfoundry/bosh.git
/var/vcap/store/repos/bosh/aws/bin/ami:  eu-west-1
/var/vcap/store/microboshes/deployments/bosh-deployments.yml:  :name: microbosh-aws-eu-west-1
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/bosh_micro_deploy.log:I, [2013-01-24T18:33:49.868528 #29343] [create_disk(4096, i-18b24b52)]  INFO -- : [AWS EC2 200 0.350324 0 retries] create_volume(:availability_zone=>"eu-west-1b",:size=>4)  
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/bosh_micro_deploy.log:D, [2013-01-24T18:45:22.556370 #29343] [create_vm(bm-a811ea5f-ecda-462d-b88c-601484bfab0d, ...)] DEBUG -- : using security groups: microbosh-aws-eu-west-1
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/bosh_micro_deploy.log:I, [2013-01-24T18:45:22.893970 #29343] [create_vm(bm-a811ea5f-ecda-462d-b88c-601484bfab0d, ...)]  INFO -- : [AWS EC2 400 0.139043 0 retries] run_instances(:client_token=>"358ef71c-6656-11e2-91b4-12313c0631bf",:image_id=>"ami-d01917a4",:instance_type=>"m1.medium",:key_name=>"microbosh-aws-eu-west-1",:max_count=>1,:min_count=>1,:placement=>{:availability_zone=>"us-east-1a"},:security_groups=>["microbosh-aws-eu-west-1"],:user_data=>"eyJyZWdpc3RyeSI6eyJlbmRwb2ludCI6ImhxxxxxODgifX0=") AWS::EC2::Errors::InvalidParameterValue Invalid availability zone: [us-east-1a]
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml:name: microbosh-aws-eu-west-1
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml:      ec2_endpoint: ec2.eu-west-1.amazonaws.com
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml:      - microbosh-aws-eu-west-1
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml:      default_key_name: microbosh-aws-eu-west-1
/var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml:      ec2_private_key: /home/vcap/.ssh/microbosh-aws-eu-west-1.pem
mrdavidlaing commented 11 years ago

Doing some puts debugging in aws_cpi/lib/cloud/aws/cloud.rb

reveals that:

disk_locality: nil
resource_pool["availability_zone"]: nil

Meaning that select_availability_zone(disk_locality, resource_pool["availability_zone"]) is going to fall through to default_availablity_zone()

So, taking a guess, I added availability_zone: eu-west-1b to /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml

i.e

...snip...
resources:
  persistent_disk: 16384
  cloud_properties:
    instance_type: m1.medium
    availability_zone: eu-west-1b
cloud:
...snip...

And viola; I advance to the next level!

Deploy Micro BOSH
  unpacking stemcell (00:00:16)                                                 
  uploading stemcell (00:14:39)                                                 
  creating VM from ami-e2121c96 (00:00:24) 
  waiting for the agent (00:03:49)
...snip...

In conclusion, I believe the core of the problem lies in the fact that the availability_zone: eu-west-1b is not added to /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml

So, who / where is /var/vcap/store/microboshes/deployments/microbosh-aws-eu-west-1/micro_bosh.yml created, and how do we fix that ?

mrdavidlaing commented 11 years ago

Cherrypicking commit 9839edb into master has fixed this issue.

:beers: for @drnic

drnic commented 11 years ago

That's awesome. I figured that out by reading the bosh/director code on the plane.

I'll leave the ticket open until its merged into master in this repo; so I don't forget :)

bonzofenix commented 11 years ago

I just had this issue on bosh-bootstrap deploy

Deploy Micro BOSH
  unpacking stemcell (00:00:20)                                                 
  uploading stemcell (00:14:05)                                                 
Delete stemcell              |ooo                | 
2/11 00:14:27  ETA: 01:04:59/usr/local/lib/ruby/gems/1.9.1/gems/aws-sdk-1.6.9/lib/aws/core/client.rb:318
:in `return_or_raise': Invalid availability zone: [us-east-1b] (AWS::EC2::Errors::InvalidParameterValue)

any idea of how to solve it ?