Error during bosh aws create

134 views
Skip to first unread message

Owais Mohamed

unread,
Nov 23, 2014, 3:49:12 PM11/23/14
to vcap...@cloudfoundry.org
I have installed Cloud Foundry on AWS multiple times. Seeing this issue for the first time.

When I do a 'bosh aws create' everything goes fine till rds db creation begins. When that happens I get the following AWS error:

Cannot create a db.t1.micro Multi-AZ instance because no subnets exist in availability zones with sufficient capacity for VPC and storage type : standard for db.t1.micro. Please first create at least 2 new subnets; choose from these availability zones: us-east-1c, us-east-1b, us-east-1d. (AWS::RDS::Errors::InvalidVPCNetworkStateFault)

VPC, Subnets have been auto created by the above command as expected. 

I am still researching but have not found much yet. If anyone can provide information on this it would great.

The rest of 'bosh aws create' log is below:

$ bosh aws create
Executing migration CreateKeyPairs
allocating 1 KeyPair(s)
Executing migration CreateVpc
creating internet gateway
creating security groups: open, bosh, bat, cf, web
creating subnets: bosh1, bosh_rds1, cf_elb1, cf_rds1, services_rds1, cf1, services1, bosh_rds2, cf_elb2, cf_rds2, services_rds2
  Making subnet bosh1 10.10.0.0/24:
  Making subnet bosh_rds1 10.10.1.0/24:
  Making subnet cf_elb1 10.10.2.0/24:
  Making subnet cf_rds1 10.10.3.0/24:
  Making subnet services_rds1 10.10.8.0/21:
  Making subnet cf1 10.10.16.0/20:
  Making subnet services1 10.10.32.0/20:
  Making subnet bosh_rds2 10.10.65.0/24:
  Making subnet cf_elb2 10.10.66.0/24:
  Making subnet cf_rds2 10.10.67.0/24:
  Making subnet services_rds2 10.10.72.0/21:
    Making routing table for bosh1
    Binding default route to igw
    Making routing table for cf_elb1
    Binding default route to igw
    Making routing table for cf1
    Binding default route to cf_nat_box1
    Making routing table for services1
    Binding default route to cf_nat_box1
    Making routing table for cf_elb2
    Binding default route to igw
creating load balancers: cfrouter
adding CNAME record for *.cf.<Domain>.com
creating DHCP options
details in S3 receipt: aws_vpc_receipt and file: aws_vpc_receipt.yml
Executing migration CreateRoute53Records
allocating 3 elastic IP(s)
adding A record for micro.cf.<domain>.com
adding A record for bat.cf.<domain>.com
adding A record for bosh.cf.<domain>.com
details in S3 receipt: aws_route53_receipt and file: aws_route53_receipt.yml
Executing migration CreateRdsDbs
details in S3 receipt: aws_rds_receipt and file: aws_rds_receipt.yml
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-1.44.0/lib/aws/core/client.rb:375:in `return_or_raise': Cannot create a db.t1.micro Multi-AZ instance because no subnets exist in availability zones with sufficient capacity for VPC and storage type : standard for db.t1.micro. Please first create at least 2 new subnets; choose from these availability zones: us-east-1c, us-east-1b, us-east-1d. (AWS::RDS::Errors::InvalidVPCNetworkStateFault)
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-1.44.0/lib/aws/core/client.rb:476:in `client_request'
from (eval):3:in `create_db_instance'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/rds.rb:38:in `create_database'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migration_helper.rb:46:in `create!'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/migrations/20130412183544_create_rds_dbs.rb:21:in `block in execute'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/migrations/20130412183544_create_rds_dbs.rb:17:in `each'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/migrations/20130412183544_create_rds_dbs.rb:17:in `execute'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migration.rb:21:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migrator.rb:75:in `block in run_migrations'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migrator.rb:74:in `each'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migrator.rb:74:in `run_migrations'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh_cli_plugin_aws/migrator.rb:13:in `migrate'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli_plugin_aws-1.2751.0/lib/bosh/cli/commands/aws.rb:130:in `create'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli-1.2751.0/lib/cli/command_handler.rb:57:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli-1.2751.0/lib/cli/runner.rb:56:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli-1.2751.0/lib/cli/runner.rb:16:in `run'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/bosh_cli-1.2751.0/bin/bosh:7:in `<top (required)>'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/bosh:23:in `load'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/bosh:23:in `<main>'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval'
from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'


Nguyen Anh Tu

unread,
Nov 26, 2014, 10:31:05 PM11/26/14
to vcap...@cloudfoundry.org
the same with me. Any help?

syl...@munichconsulting.de

unread,
Nov 27, 2014, 10:49:37 AM11/27/14
to vcap...@cloudfoundry.org
Hi,

I will guess you have an issue with your VPC created, i.e. if you are following this documentation. you need to ensure that the env variables pointing to your primary & secondary VPC AZ exists for your AWS account. I occured this error in the past - when trying to deploy in a new region, the command failed, and forgot to clean up properly the vpc creation (including the receipts stored in S3 buckets) that were pointing to old subnets non existing.

S.

Nguyen Anh Tu

unread,
Nov 27, 2014, 11:09:11 AM11/27/14
to vcap...@cloudfoundry.org, syl...@munichconsulting.de
Remember to remove everything generated from the last run. Please check groups on RDS service page.
Reply all
Reply to author
Forward
0 new messages