bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Can latest 1.5.0.pre2 micrbosh work with public gems?

Open drnic opened this issue 13 years ago • 3 comments

Raised at https://github.com/StarkAndWayne/bosh-bootstrap/issues/115.

I am using the latest public gems and when I try to deploy microbosh I get:

Stemcell info
-------------
Name:    micro-bosh-stemcell
Version: 1.5.0.pre2


Deploy Micro BOSH
  unpacking stemcell (00:00:15)                                                 
  uploading stemcell (00:12:42)                                                 
  creating VM from ami-f2e5779b (00:00:29)                                      
  waiting for the agent (00:01:56)                                              
  create disk (00:02:38)                                                        
  mount disk (00:00:14)                                                         
  stopping agent services (00:00:01)                                            
Applying micro BOSH spec     |oooooooooooo       | 7/11 00:18:26  ETA: 00:10:18/usr/local/lib/ruby/gems/1.9.1/gems/agent_client-0.1.1/lib/agent_client/base.rb:19:in `method_missing': {"message"=>"Failed to install job 'micro_aws.micro_aws': failed to process configuration template 'director/director.yml.erb': line 172, error: Could not find cloud plugin: [\"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:241:in `install_failed'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:126:in `rescue in block in bind_configuration'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:117:in `block in bind_configuration'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:107:in `each_pair'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:107:in `bind_configuration'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/job.rb:51:in `install'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/plan.rb:73:in `block in install_jobs'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/plan.rb:72:in `each'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/apply_plan/plan.rb:72:in `install_jobs'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:117:in `apply_job'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:77:in `apply'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:10:in `process'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:274:in `process'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:259:in `process_long_running'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:181:in `block in process_in_thread'\", \"<internal:prelude>:10:in `synchronize'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:179:in `process_in_thread'\", \"/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:160:in `block in handle_message'\"]", "backtrace"=>["/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:83:in `rescue in apply'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:75:in `apply'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/message/apply.rb:10:in `process'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:274:in `process'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:259:in `process_long_running'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:181:in `block in process_in_thread'", "<internal:prelude>:10:in `synchronize'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:179:in `process_in_thread'", "/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre2/lib/bosh_agent/handler.rb:160:in `block in handle_message'"]} (Bosh::Agent::HandlerError)

What does failed to process configuration template 'director/director.yml.erb': line 172, error: Could not find cloud plugin mean? Did the micro_bosh.yml schema change? Does this stemcell only work with bosh_deployer built from master/HEAD?

drnic avatar Feb 24 '13 17:02 drnic

Director.yml.erb has been changed to use the new style properties (08cccdd). I guess there's now some new mandatory property, so if it's not filled then it doesn't detect that cpi plugin should be aws. The only thing it has been changed it's the region. Can you please confirm that you've a region property on the micro_bosh.yml aws credentials.

frodenas avatar Feb 25 '13 00:02 frodenas

There is a cloud.properties.aws.region field in my micro_cloud.yml:

cloud:
  plugin: aws
  properties:
    aws:
      access_key_id: XXX
      secret_access_key: YYY
      region: us-east-1
      ec2_endpoint: ec2.us-east-1.amazonaws.com
      default_security_groups:
      - microbosh-aws-us-east-1
      default_key_name: microbosh-aws-us-east-1
      ec2_private_key: /home/vcap/.ssh/microbosh-aws-us-east-1.pem

drnic avatar Feb 25 '13 01:02 drnic

The latest stemcells should be used with the pre-released gems. The public gems are not tested with the 1.5.0.pre2 stemcells so your mileage may vary.

ajackson avatar Apr 23 '13 18:04 ajackson