Skip to content

Instantly share code, notes, and snippets.

@kbighorse
Created July 27, 2017 02:34
Show Gist options
  • Save kbighorse/117f927eab6e2595330c1e2ee247722c to your computer and use it in GitHub Desktop.
Save kbighorse/117f927eab6e2595330c1e2ee247722c to your computer and use it in GitHub Desktop.
$ cap rubber:create_staging
triggering load callbacks
* 2017-07-26 22:33:04 executing `rubber:init'
** Auto role: web => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: haproxy => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: app => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: passenger_nginx => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: db => prod-king2.peltabeta.com, {:primary=>true, :platform=>"linux", :provider=>"aws"}
** Auto role: mysql => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: mysql_master => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: collectd => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: monit => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
* 2017-07-26 22:33:06 executing `rubber:create_staging'
The production environment already has instances, Are you SURE you want to create a staging instance that may interact with them [y/N]?: y
Hostname to use for staging instance [production]:
Roles to use for staging instance [web,app,db:primary=true]:
* 2017-07-26 22:33:28 executing `rubber:create'
* Creating new security group: beta_production_default
* Creating new rule: {"source_group_name"=>"beta_production_default", "source_group_account"=>"878906146062"}
* Creating new rule: {"protocol"=>"tcp", "from_port"=>"22", "to_port"=>"22", "source_ips"=>["0.0.0.0/0"]}
* Creating new security group: beta_production_web
* Creating new rule: {"protocol"=>"tcp", "from_port"=>"80", "to_port"=>"80", "source_ips"=>["0.0.0.0/0"]}
* Creating new rule: {"protocol"=>"tcp", "from_port"=>"443", "to_port"=>"443", "source_ips"=>["0.0.0.0/0"]}
* Creating new security group: beta_production_web_tools
* Creating new rule: {"protocol"=>"tcp", "from_port"=>"8080", "to_port"=>"8080", "source_ips"=>["0.0.0.0/0"]}
* Creating new rule: {"protocol"=>"tcp", "from_port"=>"8443", "to_port"=>"8443", "source_ips"=>["0.0.0.0/0"]}
* Creating new security group: beta_production_prod-king2
* Creating new security group: beta_production_production
* Creating new security group: beta_production_haproxy
* Creating new security group: beta_production_app
* Creating new security group: beta_production_passenger_nginx
* Creating new security group: beta_production_db
* Creating new security group: beta_production_mysql
* Creating new security group: beta_production_mysql_master
* Creating new security group: beta_production_collectd
* Creating new security group: beta_production_monit
** Creating instance ami-9eed86ae/c1.medium/beta_production_default,beta_production_web,beta_production_production,beta_production_haproxy,beta_production_app,beta_production_passenger_nginx,beta_production_db,beta_production_mysql,beta_production_mysql_master,beta_production_collectd,beta_production_monit/us-west-2
/Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/excon-0.25.3/lib/excon/middlewares/expects.rb:6:in `response_call': SecurityGroupLimitExceeded => You have exceeded the number of VPC security groups allowed per instance. (Fog::Compute::AWS::Error)
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/excon-0.25.3/lib/excon/middlewares/response_parser.rb:8:in `response_call'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/excon-0.25.3/lib/excon/connection.rb:349:in `response'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/excon-0.25.3/lib/excon/connection.rb:247:in `request'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/xml/sax_parser_connection.rb:36:in `request'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/core/deprecated/connection.rb:18:in `request'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/aws/compute.rb:425:in `_request'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/aws/compute.rb:420:in `request'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/aws/requests/compute/run_instances.rb:112:in `run_instances'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/aws/models/compute/server.rb:179:in `save'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/fog-1.15.0/lib/fog/core/collection.rb:52:in `create'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/rubber-2.5.5/lib/rubber/cloud/fog.rb:30:in `create_instance'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/rubber-2.5.5/lib/rubber/thread_safe_proxy.rb:13:in `method_missing'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/rubber-2.5.5/lib/rubber/recipes/rubber/instances.rb:311:in `create_instance'
from /Users/kimball/.rvm/gems/ruby-2.0.0-p648@pelta_server/gems/rubber-2.5.5/lib/rubber/recipes/rubber/instances.rb:230:in `block (2 levels) in create_instances'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment