Hi Adhi,
Your reply is very useful to me!But,I am using an older version bosh --
1.5.0.pre and Yudai's code is for the latest bosh.So,I have to carry on
debuging in bosh-1.5.0.pre.

I am convinced that the souce code for bosh is correct bucause I have
successfully created bosh-stemcell.The only difference between creating
bosh-stemcell and micro-bosh-stemcell is the bosh_micro stage in shell
scripts.Accroding to the error message,the bosh_micro
stage need to run two gems:package_compiler and bosh_agent.Maybe it's just
the issues about my Ruby or Rubygems enviroment that result in
"LoadError".My Ruby is 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
and Rubygem's version is 1.8.25.Is there any problems?

Besides,I am still a bit confused about the mechanism of bosh gem packages
management.When I type "bundle install",the output is like that:

Using sinatra (1.2.9)
Using ffi (1.9.3)
Using sys-filesystem (1.1.1)
Using bosh_agent (1.5.0.pre) from source at bosh_agent
Using bosh_cpi (1.5.0.pre) from source at bosh_cpi
Using bosh_aws_cpi (1.5.0.pre) from source at bosh_aws_cpi
......

Then,when I type "gem list",the output is like that:
ffi (1.9.3)
sinatra (1.2.9)
sys-filesystem (1.1.1)
......

I just can't find bosh_agent,bosh_cpi,bosh_aws_cpi and so on that
concerning on bosh components in the output list of "gem list".Are they
really installed or hiden?I find the following codes in Gemfile:
gem "agent_client", path: "agent_client"
gem "blobstore_client", path: "blobstore_client"
gem "bosh_agent", path: "bosh_agent"
I think it should be the key to my question,but I just can't explain it by
myself.Would you please help me answer my questions?

--------------
Best regards,
Frank






2013/11/14 Abhi Hiremagalur <abhi@pivotallabs.com>
You shouldn't need to add any gems to the GEMPATH. The rake tasks are
intended to be run from source only. The "bundle exec" prefix ensures any
"require" lines find the bosh source as described in its Gemfile instead
of an installed gem.

For now, I'd suggest using the rake task the Iwasaki Yudai put together:
https://gist.github.com/yudai/6710397

Also - I'd suggest using a bosh-stemcell VM if you aren't already. This
will ensure many dependencies have been met:
https://github.com/cloudfoundry/bosh/blob/master/bosh-stemcell/Vagrantfile

Finally, to debug in the chroot, one thing you could try is starting bash
in the chroot and typing "gem list" etc. once in the chroot.

Hope that helps.

Abhi

On Wednesday, November 13, 2013, wrote:

Hi Brown,
How to add local gems to your GEMPATH manually?

--------------
Best regards,
Frank


在 2013年11月13日星期三UTC+8下午4时36分56秒,dj19...@gmail.com写道:
When I try to create bosh stemcell by typing:
rake stemcell:basic["openstack"]
Every thing is ok until it enter the stage of bosh_micro,and I get the
following error message:

Successfully installed agent_client-1.5.0.pre
Successfully installed trollop-1.16.2
Successfully installed package_compiler-1.5.0.pre
3 gems installed
Starting micro bosh compilation
Starting BOSH Agent for compiling micro bosh package, agent pid is 15959
/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- bosh_agent (LoadError)
from /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre/bin/bosh_agent:5:in
`<top (required)>'
from /var/vcap/bosh/bin/bosh_agent:23:in `load'
from /var/vcap/bosh/bin/bosh_agent:23:in `<main>'
/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- package_compiler (LoadError)
from /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/package_compiler-1.
5.0.pre/bin/package_compiler:4:in `<top (required)>'
from /var/vcap/bosh/bin/package_compiler:23:in `load'
from /var/vcap/bosh/bin/package_compiler:23:in `<main>'


I feel confused because I already have built bosh release.And as the
message shows,so that I have "Successfully installed
package_compiler-1.5.0.pre",why it tell me
"/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- package_compiler (LoadError)"?

So,can anyone tell me why and offer some suggestions?

------------------
Best regards,
Frank

To unsubscribe from this group and stop receiving emails from it, send
an email to bosh-dev+unsubscribe@cloudfoundry.org.

--
tiny keyboard + fat fingers
To unsubscribe from this group and stop receiving emails from it, send an email to bosh-dev+unsubscribe@cloudfoundry.org.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 7 | next ›
Discussion Overview
groupbosh-dev @
postedNov 13, '13 at 8:36a
activeNov 15, '13 at 7:06a
posts7
users4

People

Translate

site design / logo © 2021 Grokbase