FAQ
My apologies if this is a dup, I received the "this topic cannot be found"
after posting the first time.

Hello everyone -

I've been using the stemcell_builder instructions located here to test out
building a vsphere stemcell:

https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder

Thanks for providing these instructions. Here are some additional steps I
had to do in order to get the build process to work on a Ubuntu 10.04
server VM:

* Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

root@QA1LRBBOSH01:/home/lbakken/src/cf/bosh/stemcell_builder# ls
../release/src/
bosh common nats redis ruby
^^^^

* Install ruby for the 'root' user, since the stemcell build process needs
to be run as root. I used rbenv for this (/root/.rbenv)

I also used the btrfs working directory as described in the docs - very
cool.

However, I run into this error during the build process and am stymied -
any assistance is greatly appreciated:

=== Configuring 'image_vsphere_ovf' stage ===
=== Configuring 'image_vsphere_prepare_stemcell' stage ===
=== Configuring 'stemcell' stage ===
=== Applying 'base_debootstrap' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
base_debootstrap unchanged, skipping...
=== Applying 'base_apt' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
base_apt unchanged, skipping...
=== Applying 'bosh_users' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
bosh_users unchanged, skipping...
=== Applying 'bosh_debs' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
bosh_debs unchanged, skipping...
=== Applying 'bosh_monit' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
bosh_monit unchanged, skipping...
=== Applying 'bosh_ruby' stage ===
== Started Wed Jul 31 09:49:59 PDT 2013 ==
bosh_ruby unchanged, skipping...
=== Applying 'bosh_agent' stage ===
== Started Wed Jul 31 09:50:00 PDT 2013 ==
Delete subvolume '/tmp/mnt/work'
Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
ERROR: While executing gem ... (Gem::DependencyError)
     Unable to resolve dependencies: bosh_agent requires netaddr (~> 1.5.0),
thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

Thanks -
Luke

Search Discussions

  • Luke Bakken at Jul 31, 2013 at 11:42 pm
    Hi everyone -

    I'm using the docs here to build a stemcell from the latest bosh code:

    https://github.com/IronFoundry/bosh/tree/master/stemcell_builder

    I used the examples in the docs to set up a btrfs mount and use that as the
    working directory for the builder.

    However, I found I also had to do the following:

    * Install ruby 1.9.3 for the root user with rbenv. System-wide ruby would
    work too.
    * Run the script as root, since both rbenv and debootstrap (and other
    commands I'm sure) require it.
    * Do a full clone of the bosh repo into this directory within the "parent"
    bosh clone: release/src/bosh

    Are those additional steps valid? If so, I'll do a pull request with some
    updates to the docs.

    Then I ran the process until it came to a halt at this step:

    ...
    ...
    ...
    == 1.8.24 / 2012-04-27

    * 1 bug fix:

       * Install the .pem files properly. Fixes #320
       * Remove OpenSSL dependency from the http code path


    ------------------------------------------------------------------------------

    RubyGems installed the following executables:
             /var/vcap/bosh/bin/gem

    Successfully installed bundler-1.2.3
    1 gem installed
    Create a snapshot of '/tmp/mnt/work' in '/tmp/mnt/bosh_ruby_applied'
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 08:50:35 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
         Unable to resolve dependencies: bosh_agent requires netaddr (~> 1.5.0),
    thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)
    root@QA1LRBBOSH01:/home/lbakken/src/cf/bosh/stemcell_builder# which -a ruby
    /root/.rbenv/shims/ruby

    I'm not sure what should be done to resolve this - I'll start by installing
    those gems manually but that seems like a workaround.

    Thanks -
    Luke
  • Luke Bakken at Jul 31, 2013 at 11:42 pm
    Looking further into the top-level Rakefile and the rake files in
    bosh-dev/lib/bosh/dev/tasks/, it seems like I may be trying this
    mid-refactor. For instance, the top-level Rakefile doesn't load the tasks
    correctly.

    Should I be using a stable branch or stable commit version to test this out?
    On Wednesday, July 31, 2013 10:11:37 AM UTC-7, Luke Bakken wrote:

    My apologies if this is a dup, I received the "this topic cannot be found"
    after posting the first time.

    Hello everyone -

    I've been using the stemcell_builder instructions located here to test out
    building a vsphere stemcell:

    https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder

    Thanks for providing these instructions. Here are some additional steps I
    had to do in order to get the build process to work on a Ubuntu 10.04
    server VM:

    * Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

    root@QA1LRBBOSH01:/home/lbakken/src/cf/bosh/stemcell_builder# ls
    ../release/src/
    bosh common nats redis ruby
    ^^^^

    * Install ruby for the 'root' user, since the stemcell build process needs
    to be run as root. I used rbenv for this (/root/.rbenv)

    I also used the btrfs working directory as described in the docs - very
    cool.

    However, I run into this error during the build process and am stymied -
    any assistance is greatly appreciated:

    === Configuring 'image_vsphere_ovf' stage ===
    === Configuring 'image_vsphere_prepare_stemcell' stage ===
    === Configuring 'stemcell' stage ===
    === Applying 'base_debootstrap' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_debootstrap unchanged, skipping...
    === Applying 'base_apt' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_apt unchanged, skipping...
    === Applying 'bosh_users' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_users unchanged, skipping...
    === Applying 'bosh_debs' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_debs unchanged, skipping...
    === Applying 'bosh_monit' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_monit unchanged, skipping...
    === Applying 'bosh_ruby' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_ruby unchanged, skipping...
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 09:50:00 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: bosh_agent requires netaddr (~>
    1.5.0), thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

    Thanks -
    Luke
  • Abhi Hiremagalur at Aug 1, 2013 at 3:26 am
    The top level Rakefile should work fine, we've been using it for various
    things all day today and it gets used by Travis to run specs.

    It does need to be run prefixed with bundle exec to ensure the loadpath has
    been setup correctly by Bundler.
    On Wed, Jul 31, 2013 at 11:33 AM, Luke Bakken wrote:

    Looking further into the top-level Rakefile and the rake files in
    bosh-dev/lib/bosh/dev/tasks/, it seems like I may be trying this
    mid-refactor. For instance, the top-level Rakefile doesn't load the tasks
    correctly.

    Should I be using a stable branch or stable commit version to test this
    out?

    On Wednesday, July 31, 2013 10:11:37 AM UTC-7, Luke Bakken wrote:

    My apologies if this is a dup, I received the "this topic cannot be
    found" after posting the first time.

    Hello everyone -

    I've been using the stemcell_builder instructions located here to test
    out building a vsphere stemcell:

    https://github.com/**cloudfoundry/bosh/tree/master/**stemcell_builder<https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder>

    Thanks for providing these instructions. Here are some additional steps I
    had to do in order to get the build process to work on a Ubuntu 10.04
    server VM:

    * Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

    root@QA1LRBBOSH01:/home/**lbakken/src/cf/bosh/stemcell_**builder# ls
    ../release/src/
    bosh common nats redis ruby
    ^^^^

    * Install ruby for the 'root' user, since the stemcell build process
    needs to be run as root. I used rbenv for this (/root/.rbenv)

    I also used the btrfs working directory as described in the docs - very
    cool.

    However, I run into this error during the build process and am stymied -
    any assistance is greatly appreciated:

    === Configuring 'image_vsphere_ovf' stage ===
    === Configuring 'image_vsphere_prepare_**stemcell' stage ===
    === Configuring 'stemcell' stage ===
    === Applying 'base_debootstrap' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_debootstrap unchanged, skipping...
    === Applying 'base_apt' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_apt unchanged, skipping...
    === Applying 'bosh_users' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_users unchanged, skipping...
    === Applying 'bosh_debs' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_debs unchanged, skipping...
    === Applying 'bosh_monit' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_monit unchanged, skipping...
    === Applying 'bosh_ruby' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_ruby unchanged, skipping...
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 09:50:00 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: bosh_agent requires netaddr (~>
    1.5.0), thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

    Thanks -
    Luke
  • Luke Bakken at Aug 1, 2013 at 3:34 am
    Thanks Abhi -

    I actually figured that out as well, but google groups ate both of my
    replies to this thread.
    On Wednesday, July 31, 2013 8:26:00 PM UTC-7, Abhi Hiremagalur wrote:

    The top level Rakefile should work fine, we've been using it for various
    things all day today and it gets used by Travis to run specs.

    It does need to be run prefixed with bundle exec to ensure the loadpath
    has been setup correctly by Bundler.

    On Wed, Jul 31, 2013 at 11:33 AM, Luke Bakken <lu...@bowbak.org<javascript:>
    wrote:
    Looking further into the top-level Rakefile and the rake files in
    bosh-dev/lib/bosh/dev/tasks/, it seems like I may be trying this
    mid-refactor. For instance, the top-level Rakefile doesn't load the tasks
    correctly.

    Should I be using a stable branch or stable commit version to test this
    out?

    On Wednesday, July 31, 2013 10:11:37 AM UTC-7, Luke Bakken wrote:

    My apologies if this is a dup, I received the "this topic cannot be
    found" after posting the first time.

    Hello everyone -

    I've been using the stemcell_builder instructions located here to test
    out building a vsphere stemcell:

    https://github.com/**cloudfoundry/bosh/tree/master/**stemcell_builder<https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder>

    Thanks for providing these instructions. Here are some additional steps
    I had to do in order to get the build process to work on a Ubuntu 10.04
    server VM:

    * Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

    root@QA1LRBBOSH01:/home/**lbakken/src/cf/bosh/stemcell_**builder# ls
    ../release/src/
    bosh common nats redis ruby
    ^^^^

    * Install ruby for the 'root' user, since the stemcell build process
    needs to be run as root. I used rbenv for this (/root/.rbenv)

    I also used the btrfs working directory as described in the docs - very
    cool.

    However, I run into this error during the build process and am stymied -
    any assistance is greatly appreciated:

    === Configuring 'image_vsphere_ovf' stage ===
    === Configuring 'image_vsphere_prepare_**stemcell' stage ===
    === Configuring 'stemcell' stage ===
    === Applying 'base_debootstrap' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_debootstrap unchanged, skipping...
    === Applying 'base_apt' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_apt unchanged, skipping...
    === Applying 'bosh_users' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_users unchanged, skipping...
    === Applying 'bosh_debs' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_debs unchanged, skipping...
    === Applying 'bosh_monit' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_monit unchanged, skipping...
    === Applying 'bosh_ruby' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_ruby unchanged, skipping...
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 09:50:00 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: bosh_agent requires netaddr (~>
    1.5.0), thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

    Thanks -
    Luke
  • Tammer Saleh at Aug 1, 2013 at 2:43 pm
    Hi Luke,

    Is the group configured poorly? Let me know, and I can fix.

    Cheers,
    Tammer Saleh

    On Wed, Jul 31, 2013 at 9:34 PM, Luke Bakken wrote:

    Thanks Abhi -

    I actually figured that out as well, but google groups ate both of my
    replies to this thread.

    On Wednesday, July 31, 2013 8:26:00 PM UTC-7, Abhi Hiremagalur wrote:

    The top level Rakefile should work fine, we've been using it for various
    things all day today and it gets used by Travis to run specs.

    It does need to be run prefixed with bundle exec to ensure the loadpath
    has been setup correctly by Bundler.
    On Wed, Jul 31, 2013 at 11:33 AM, Luke Bakken wrote:

    Looking further into the top-level Rakefile and the rake files in
    bosh-dev/lib/bosh/dev/tasks/, it seems like I may be trying this
    mid-refactor. For instance, the top-level Rakefile doesn't load the tasks
    correctly.

    Should I be using a stable branch or stable commit version to test this
    out?

    On Wednesday, July 31, 2013 10:11:37 AM UTC-7, Luke Bakken wrote:

    My apologies if this is a dup, I received the "this topic cannot be
    found" after posting the first time.

    Hello everyone -

    I've been using the stemcell_builder instructions located here to test
    out building a vsphere stemcell:

    https://github.com/**cloudfoundr**y/bosh/tree/master/**stemcell_**
    builder<https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder>

    Thanks for providing these instructions. Here are some additional steps
    I had to do in order to get the build process to work on a Ubuntu 10.04
    server VM:

    * Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

    root@QA1LRBBOSH01:/home/**lbakke**n/src/cf/bosh/stemcell_**builder**#
    ls ../release/src/
    bosh common nats redis ruby
    ^^^^

    * Install ruby for the 'root' user, since the stemcell build process
    needs to be run as root. I used rbenv for this (/root/.rbenv)

    I also used the btrfs working directory as described in the docs - very
    cool.

    However, I run into this error during the build process and am stymied
    - any assistance is greatly appreciated:

    === Configuring 'image_vsphere_ovf' stage ===
    === Configuring 'image_vsphere_prepare_**stemcel**l' stage ===
    === Configuring 'stemcell' stage ===
    === Applying 'base_debootstrap' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_debootstrap unchanged, skipping...
    === Applying 'base_apt' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_apt unchanged, skipping...
    === Applying 'bosh_users' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_users unchanged, skipping...
    === Applying 'bosh_debs' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_debs unchanged, skipping...
    === Applying 'bosh_monit' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_monit unchanged, skipping...
    === Applying 'bosh_ruby' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_ruby unchanged, skipping...
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 09:50:00 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: bosh_agent requires netaddr (~>
    1.5.0), thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

    Thanks -
    Luke
  • Luke Bakken at Aug 2, 2013 at 3:25 pm
    https://groups.google.com/a/cloudfoundry.org/d/topic/bosh-dev/He7NwEsrm6o/discussion

    That thread pointed me in the right direction - use bundler, then use the
    stemcell rake task. Just FYI if anyone tries to run the script manually.
    On Wednesday, July 31, 2013 10:11:37 AM UTC-7, Luke Bakken wrote:

    My apologies if this is a dup, I received the "this topic cannot be found"
    after posting the first time.

    Hello everyone -

    I've been using the stemcell_builder instructions located here to test out
    building a vsphere stemcell:

    https://github.com/cloudfoundry/bosh/tree/master/stemcell_builder

    Thanks for providing these instructions. Here are some additional steps I
    had to do in order to get the build process to work on a Ubuntu 10.04
    server VM:

    * Clone the bosh repo into this subdirectory of the 'parent' bosh repo:

    root@QA1LRBBOSH01:/home/lbakken/src/cf/bosh/stemcell_builder# ls
    ../release/src/
    bosh common nats redis ruby
    ^^^^

    * Install ruby for the 'root' user, since the stemcell build process needs
    to be run as root. I used rbenv for this (/root/.rbenv)

    I also used the btrfs working directory as described in the docs - very
    cool.

    However, I run into this error during the build process and am stymied -
    any assistance is greatly appreciated:

    === Configuring 'image_vsphere_ovf' stage ===
    === Configuring 'image_vsphere_prepare_stemcell' stage ===
    === Configuring 'stemcell' stage ===
    === Applying 'base_debootstrap' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_debootstrap unchanged, skipping...
    === Applying 'base_apt' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    base_apt unchanged, skipping...
    === Applying 'bosh_users' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_users unchanged, skipping...
    === Applying 'bosh_debs' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_debs unchanged, skipping...
    === Applying 'bosh_monit' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_monit unchanged, skipping...
    === Applying 'bosh_ruby' stage ===
    == Started Wed Jul 31 09:49:59 PDT 2013 ==
    bosh_ruby unchanged, skipping...
    === Applying 'bosh_agent' stage ===
    == Started Wed Jul 31 09:50:00 PDT 2013 ==
    Delete subvolume '/tmp/mnt/work'
    Create a snapshot of '/tmp/mnt/bosh_ruby_applied' in '/tmp/mnt/work'
    ERROR: While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: bosh_agent requires netaddr (~>
    1.5.0), thin (~> 1.5.0), yajl-ruby (~> 1.1.0), sinatra (~> 1.4.2), nats (~>
    0.4.28), sigar (~> 0.7.2), httpclient (= 2.2.4), syslog_protocol (~>
    0.9.2), bosh_common (~> 1.5.0.pre.3), bosh_encryption (~> 1.5.0.pre.3),
    monit_api (~> 1.5.0.pre.3), blobstore_client (~> 1.5.0.pre.3)

    Thanks -
    Luke

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbosh-dev @
postedJul 31, '13 at 5:11p
activeAug 2, '13 at 3:25p
posts7
users3

People

Translate

site design / logo © 2021 Grokbase