Bosh 1.0 and Micro issue

42 views
Skip to first unread message

Mike Wright

unread,
Oct 19, 2012, 4:00:12 PM10/19/12
to bosh...@cloudfoundry.org
So I just created a fresh gemset to use with the new bosh 1.0 that was released today and I went through the following steps, but ran into some issues.

1. updated to the lastest bosh src
2. cd deployer
3. bundle install
4. bundle exec rake install

My list of gems for bosh are listed below

bosh_aws_cpi (0.6.2)
bosh_aws_registry (0.2.2)
bosh_cli (1.0.rc1)                 -- Deployer hasn't been updated to 1.0 yet?
bosh_common (0.5.1)
bosh_cpi (0.4.4)
bosh_deployer (0.6.2)
bosh_openstack_cpi (0.0.3)
bosh_openstack_registry (0.0.2)
bosh_vsphere_cpi (0.5.0) 

So I know I have bosh the cli and deployer in my local gem repository.  Running bosh help micro I get the correct output:
micro agent <args>
    Send.....

micro apply <spec>
.......

But none of the micro commands seem to work, for example when I run 'bosh micro deployments' I get the error "Unknown command: micro deployments"

If anyone sees what I missed in this list I would appreciate the assist.

Thanks!

Mike

Ferran Rodenas

unread,
Oct 19, 2012, 4:19:06 PM10/19/12
to bosh...@cloudfoundry.org
Mike, rake install "cli" dir also and try again. There're 2 other not merged changes you'd like to pick if you get more errors: 10601 and 10611.

- Ferdy

2012/10/19 Mike Wright <mkwr...@gmail.com>

Mike Wright

unread,
Oct 19, 2012, 4:50:31 PM10/19/12
to bosh...@cloudfoundry.org
Ferdy,

Thanks, manually installing the newer version of the cli fixed that one issue. Appreciate the assist.

Mike
Message has been deleted

Peter Le

unread,
Oct 29, 2012, 3:43:10 PM10/29/12
to bosh...@cloudfoundry.org
I ran into some issues while installing micro bosh for bosh 1.0.  please help..

ple1@bosh-cli:~/deployments$ bosh micro deployment bosh_micro2
WARNING! Your target has been changed to `http://10.40.33.221:25555'!
Deployment set to '/home/ple1/deployments/bosh_micro2/micro_bosh.yml'
ple1@bosh-cli:~/deployments$ bosh micro deploy ~/stemcells/micro-bosh-stemcell-vsphere-0.6.4.tgz 
Deploying new micro BOSH instance `bosh_micro2/micro_bosh.yml' to `http://10.40.33.221:25555' (type 'yes' to continue): yes

Verifying stemcell...
File exists and readable                                     OK
Manifest not found in cache, verifying tarball...
Extract tarball                                              OK
Manifest exists                                              OK
Stemcell image file                                          OK
Writing manifest to cache...
Stemcell properties                                          OK

Stemcell info
-------------
Name:    micro-bosh-stemcell
Version: 0.6.4


Deploy Micro BOSH
Unpacking stemcell                  |                        | 0/11 00:00:18  ETA: --:--:--/home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/membrane-0.0.2/lib/membrane/schema/record.rb:42:in `validate': { soap_log => Expected instance of String, given an instance of NilClass } (Membrane::SchemaValidationError)
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.5.0/lib/cloud/vsphere/config.rb:221:in `configure'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.5.0/lib/cloud/vsphere/cloud.rb:28:in `initialize'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.5.0/lib/cloud/vsphere.rb:22:in `new'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.5.0/lib/cloud/vsphere.rb:22:in `initialize'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cpi-0.4.4/lib/cloud/provider.rb:10:in `new'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cpi-0.4.4/lib/cloud/provider.rb:10:in `create'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/config.rb:74:in `cloud'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:59:in `cloud'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:213:in `block (2 levels) in create_stemcell'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:84:in `step'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:212:in `block in create_stemcell'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:198:in `create_stemcell'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:128:in `create'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:104:in `block in create_deployment'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:97:in `with_lifecycle'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/deployer/instance_manager.rb:103:in `create_deployment'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-1.0.1/lib/bosh/cli/commands/micro.rb:159:in `perform'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0/lib/cli/command_handler.rb:57:in `run'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0/lib/cli/runner.rb:61:in `run'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0/lib/cli/runner.rb:18:in `run'
        from /home/ple1/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0/bin/bosh:16:in `<top (required)>'
        from /home/ple1/.rbenv/versions/1.9.2-p290/bin/bosh:23:in `load'
        from /home/ple1/.rbenv/versions/1.9.2-p290/bin/bosh:23:in `<main>'
ple1@bosh-cli:~/deployments$  

Vadim Spivak

unread,
Oct 29, 2012, 5:18:20 PM10/29/12
to bosh...@cloudfoundry.org
This was fixed here already: http://reviews.cloudfoundry.org/#/c/10518/

I also verified that the version on rubygems was published with this fix. How did you install the bosh_vsphere_cpi gem locally?

Thanks,
Vadim

Peter Le

unread,
Oct 29, 2012, 5:35:29 PM10/29/12
to bosh...@cloudfoundry.org
I installed bosh_vsphere_cpi using 'gem install bosh_deployer'

ple@bosh-cli:~$ gem install bosh_deployer
Fetching: bosh_cli-1.0.gem (100%)
Fetching: membrane-0.0.2.gem (100%)
Fetching: bosh_vsphere_cpi-0.5.0.gem (100%)
Fetching: bosh_deployer-1.0.1.gem (100%)
Fetching: aws-sdk-1.6.9.gem (100%)

-Peter

Vadim Spivak

unread,
Oct 29, 2012, 6:57:13 PM10/29/12
to bosh...@cloudfoundry.org
Can you reinstall bosh_vsphere_cpi-0.5.0?

gem uninstall bosh_vsphere_cpi
gem install bosh_vsphere_cpi

Thanks,
Vadim
Reply all
Reply to author
Forward
0 new messages