Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spun up more instances than allowed then crashed trying to contract. #67

Open
bradphelan opened this issue Jan 13, 2010 · 0 comments
Open

Comments

@bradphelan
Copy link
Contributor

brad@bradgonesurfing:~/workspace/poolparty$cloud-start
PoolParty core loadtime: 0.126798
  running on CloudProviders::Ec2
  for cloud: db
  minimum_instances: 1
  maximum_instances: 1
  security_groups: aprico-deploy-db
  using keypair: aprico-deploy-db
  user: root
---- live, running instances (2) ----
-----> contracting the cloud because the instances count exceeds the 1 maximum_instances by 1
/var/lib/gems/1.8/gems/poolparty-1.4.7/bin/../lib/cloud_providers/ec2/ec2.rb:222:in `contract_by': Contracting instances by 1 will lower the number of instances below specified minimum (RuntimeError)
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/bin/../lib/cloud_providers/ec2/ec2.rb:141:in `run'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/cloud.rb:161:in `run'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/bin/cloud-start:20:in `cloaker_'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/bin/cloud-start:18:in `each'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/bin/cloud-start:18:in `cloaker_'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary/command.rb:114:in `call'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary/command.rb:114:in `call_parser_run_block'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary/command.rb:74:in `run'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary/autorunner.rb:16:in `run'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary/autorunner.rb:8:in `run'
    from /var/lib/gems/1.8/gems/poolparty-1.4.7/vendor/gems/git-style-binaries/lib/git-style-binary.rb:85
    from /var/lib/gems/1.8/bin/cloud-start:19

my cloud spec for this cloud was.

----------------------
clouds.rb
----------------------
  3   cloud "db" do
  4     instances 1
  5     using :ec2
  6     chef_repo File.dirname(__FILE__)+"/aprico-deploy"
  7     recipe "database"
  8     #chef_attributes :apache2 => {:listen_ports => ["80", "8080"]}
  9     # user_data File.open(File.dirname(__FILE__)+"/user_data").read
 10     security_group do
 11       authorize :from_port => "22", :to_port => "22"
 12       authorize :from_port => "3306", :to_port => "3306"
 13     end
 14     #availability_zones ["eu-west-1a"]
 15   end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant