Re: Failed to run "bosh aws create"


王小锋 <zzuwxf at gmail.com...>
 

Seems "bosh aws create" will read bosh file from s3, in the past, the
command is executed successfully except for "creating database".

The command "bosh aws create" tries to continue executing, after I delete
the bosh bucket from s3, it worked!

2015-07-23 9:26 GMT+08:00 Gwenn Etourneau <getourneau(a)pivotal.io>:

Error seems to be "The vpc ID 'vpc-e4484c81' does not exist
(AWS::EC2::Errors::InvalidVpcID::NotFound)" no ?

On Wed, Jul 22, 2015 at 9:34 PM, 王小锋 <zzuwxf(a)gmail.com> wrote:

Hi, there

I am able to run "bosh aws create" before, but it failed today with
following error, I am wondering what might be wrong? From the output of
"bosh aws create", seems it tries to "Executing migration CreateRdsDbs"
first instead of "Executing migration CreateKeyPairs" first.

ubuntu(a)ip-10-0-0-141:~/bosh-workspace/bootstrap$ bosh aws create
Executing migration CreateRdsDbs
details in S3 receipt: aws_rds_receipt and file: aws_rds_receipt.yml
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/core/client.rb:375:in
`return_or_raise': The vpc ID 'vpc-e4484c81' does not exist
(AWS::EC2::Errors::InvalidVpcID::NotFound)
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/core/client.rb:476:in
`client_request'
from (eval):3:in `describe_vpcs'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/ec2/resource.rb:72:in
`describe_call'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/ec2/resource.rb:56:in
`get_resource'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/core/resource.rb:235:in
`block (2 levels) in define_attribute_getter'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/core/cacheable.rb:63:in
`retrieve_attribute'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/ec2/resource.rb:66:in
`retrieve_attribute'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/aws-sdk-1.44.0/lib/aws/core/resource.rb:235:in
`block in define_attribute_getter'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/vpc.rb:43:in
`cidr_block'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/rds.rb:136:in
`create_vpc_db_security_group'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/rds.rb:25:in
`create_database'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migration_helper.rb:46:in
`create!'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/migrations/20130412183544_create_rds_dbs.rb:21:in
`block in execute'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/migrations/20130412183544_create_rds_dbs.rb:17:in
`each'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/migrations/20130412183544_create_rds_dbs.rb:17:in
`execute'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migration.rb:21:in
`run'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migrator.rb:75:in
`block in run_migrations'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migrator.rb:74:in
`each'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migrator.rb:74:in
`run_migrations'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh_cli_plugin_aws/migrator.rb:13:in
`migrate'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.2810.0/lib/bosh/cli/commands/aws.rb:130:in
`create'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli-1.2810.0/lib/cli/command_handler.rb:57:in
`run'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli-1.2810.0/lib/cli/runner.rb:56:in
`run'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli-1.2810.0/lib/cli/runner.rb:16:in
`run'
from
/home/ubuntu/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/bosh_cli-1.2810.0/bin/bosh:7:in
`<top (required)>'
from /home/ubuntu/.rbenv/versions/1.9.3-p194/bin/bosh:23:in `load'
from /home/ubuntu/.rbenv/versions/1.9.3-p194/bin/bosh:23:in `<main>'



_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh

_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.