How to upgrade my bosh?


Zhi Xie
 

Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the templates to no longer include resoure pool sizes require s a minimun bosh director of v149. So I guess the solution is to upgrade bosh. But I couldn't find a doc for it.


Amit Kumar Gupta
 

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com> wrote:

Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the
templates to no longer include resoure pool sizes require s a minimun bosh
director of v149. So I guess the solution is to upgrade bosh. But I
couldn't find a doc for it.


Alex Lomoff <lomov.as@...>
 

Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then everything you need to do is to run: “gem update bosh_cli” (possibly with sudo).

If you mean you need to update BOSH director, then everything depend on the you deployed the BOSH. In this case could you tell what commands did you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases <https://github.com/cloudfoundry/bosh-lite/releases>

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com <mailto:daxiezhi(a)gmail.com>> wrote:
Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the templates to no longer include resoure pool sizes require s a minimun bosh director of v149. So I guess the solution is to upgrade bosh. But I couldn't find a doc for it.


Amit Kumar Gupta
 

For me, `bosh -t lite status` shows "Version 1.3056.0 (00000000)". I
believe that's the version of the bosh-director gem:
https://rubygems.org/gems/bosh-director/versions/

On Tue, Sep 15, 2015 at 4:34 AM, Alex Lomoff <lomov.as(a)gmail.com> wrote:

Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are
over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then
everything you need to do is to run: “gem update bosh_cli” (possibly with
sudo).

If you mean you need to update BOSH director, then everything depend on
the you deployed the BOSH. In this case could you tell what commands did
you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com> wrote:

Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the
templates to no longer include resoure pool sizes require s a minimun bosh
director of v149. So I guess the solution is to upgrade bosh. But I
couldn't find a doc for it.


Alex Lomoff <lomov.as@...>
 

Sorry, I guess some misunderstanding took place.

Approximately the same number you’ll get if you run `gem list bosh_cli` because bosh-director has the same version numbering as a bosh_cli, as far they are parts of the same project of cloudfoundry/bosh repo. So I thought @daxiezhi probably wants to update CLI through gem.

As far as I know bosh-lite is a go utility to deploy MicroBOSH. It aims to replace BOSH CLI plugin “micro", the outdated way to deploy MicrBOSH. Do you mean that at this moment MicroBOSH deployed with bosh-lite should be called BOSH-Lite?

On Sep 15, 2015, at 4:23 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

For me, `bosh -t lite status` shows "Version 1.3056.0 (00000000)". I believe that's the version of the bosh-director gem: https://rubygems.org/gems/bosh-director/versions/ <https://rubygems.org/gems/bosh-director/versions/>

On Tue, Sep 15, 2015 at 4:34 AM, Alex Lomoff <lomov.as(a)gmail.com <mailto:lomov.as(a)gmail.com>> wrote:
Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then everything you need to do is to run: “gem update bosh_cli” (possibly with sudo).

If you mean you need to update BOSH director, then everything depend on the you deployed the BOSH. In this case could you tell what commands did you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases <https://github.com/cloudfoundry/bosh-lite/releases>

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io <mailto:agupta(a)pivotal.io>> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com <mailto:daxiezhi(a)gmail.com>> wrote:
Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the templates to no longer include resoure pool sizes require s a minimun bosh director of v149. So I guess the solution is to upgrade bosh. But I couldn't find a doc for it.


Alex Lomoff <lomov.as@...>
 

@daxiezhi in case you are talking about BOSH-director update you should described the way you deployed BOSH. Did you used `bosh micro` command to deploy MicroBOSH? Or did you used bosh-lite?

If you used the first option then here a way to update you MicroBOSH instance. MicroBOSH is built-in stemcell, originally stemcell version is a version of MicroBOSH release that it contains. This means first you'll need to do is upload newer version of stemcell. After it I recommend to make a snapshot of the MicroBOSH instance with its persistent disk. Then you can run update process with the following command:

bosh -n micro deploy bosh-stemcell-xxxx-openstack-kvm-ubuntu-trusty-go_agent.tgz --update

Best Wishes,
Alex L.

On Sep 15, 2015, at 4:23 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

For me, `bosh -t lite status` shows "Version 1.3056.0 (00000000)". I believe that's the version of the bosh-director gem: https://rubygems.org/gems/bosh-director/versions/ <https://rubygems.org/gems/bosh-director/versions/>

On Tue, Sep 15, 2015 at 4:34 AM, Alex Lomoff <lomov.as(a)gmail.com <mailto:lomov.as(a)gmail.com>> wrote:
Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then everything you need to do is to run: “gem update bosh_cli” (possibly with sudo).

If you mean you need to update BOSH director, then everything depend on the you deployed the BOSH. In this case could you tell what commands did you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases <https://github.com/cloudfoundry/bosh-lite/releases>

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io <mailto:agupta(a)pivotal.io>> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com <mailto:daxiezhi(a)gmail.com>> wrote:
Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the templates to no longer include resoure pool sizes require s a minimun bosh director of v149. So I guess the solution is to upgrade bosh. But I couldn't find a doc for it.


Amit Kumar Gupta
 

Hi Alex,

That's not correct. bosh-init is an executable binary, written in golang,
used to deploy single-VM deployments of anything you can colocate onto one
VM. Using it to deploy BOSH itself is the most common use case, so you
could call that Micro BOSH. *bosh-init* is different from *BOSH-Lite*.
BOSH-Lite is a project for producing a vagrant VM running the BOSH director
along with garden, which creates containers which simulates VMs (the BOSH
director in the BOSH-Lite vagrant box talks to garden via the warden-cpi to
create "VMs", which in this care are just garden containers).

daxiezhi,

If you are using BOSH-Lite, I believe there is no upgrade path, as it is
only meant for development purposes. From the "bosh-lite" directory, you
will need to:

vagrant box update
vagrant destroy
vagrant up

See http://stackoverflow.com/questions/25914383/update-a-vagrant-box. You
will then need to re-provision everything, i.e. reupload the stemcell,
release, and do a "bosh deploy" with your cf manifest.

Best,
Amit

On Tue, Sep 15, 2015 at 9:56 AM, Alex Lomoff <lomov.as(a)gmail.com> wrote:

Sorry, I guess some misunderstanding took place.

Approximately the same number you’ll get if you run `gem list bosh_cli`
because bosh-director has the same version numbering as a bosh_cli, as far
they are parts of the same project of cloudfoundry/bosh repo. So I thought
@daxiezhi probably wants to update CLI through gem.

As far as I know bosh-lite is a go utility to deploy MicroBOSH. It aims to
replace BOSH CLI plugin “micro", the outdated way to deploy MicrBOSH. Do
you mean that at this moment MicroBOSH deployed with bosh-lite should be
called BOSH-Lite?

On Sep 15, 2015, at 4:23 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

For me, `bosh -t lite status` shows "Version 1.3056.0 (00000000)". I
believe that's the version of the bosh-director gem:
https://rubygems.org/gems/bosh-director/versions/

On Tue, Sep 15, 2015 at 4:34 AM, Alex Lomoff <lomov.as(a)gmail.com> wrote:

Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are
over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then
everything you need to do is to run: “gem update bosh_cli” (possibly with
sudo).

If you mean you need to update BOSH director, then everything depend on
the you deployed the BOSH. In this case could you tell what commands did
you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com> wrote:

Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in
the templates to no longer include resoure pool sizes require s a minimun
bosh director of v149. So I guess the solution is to upgrade bosh. But I
couldn't find a doc for it.


Alex Lomoff <lomov.as@...>
 

Thank you for correct me.

Shame on me, I meant bosh-init instead of bosh-lite.

On Sep 15, 2015, at 5:09 PM, Amit Gupta <agupta(a)pivotal.io> wrote:

Hi Alex,

That's not correct. bosh-init is an executable binary, written in golang, used to deploy single-VM deployments of anything you can colocate onto one VM. Using it to deploy BOSH itself is the most common use case, so you could call that Micro BOSH. *bosh-init* is different from *BOSH-Lite*. BOSH-Lite is a project for producing a vagrant VM running the BOSH director along with garden, which creates containers which simulates VMs (the BOSH director in the BOSH-Lite vagrant box talks to garden via the warden-cpi to create "VMs", which in this care are just garden containers).

daxiezhi,

If you are using BOSH-Lite, I believe there is no upgrade path, as it is only meant for development purposes. From the "bosh-lite" directory, you will need to:

vagrant box update
vagrant destroy
vagrant up

See http://stackoverflow.com/questions/25914383/update-a-vagrant-box <http://stackoverflow.com/questions/25914383/update-a-vagrant-box>. You will then need to re-provision everything, i.e. reupload the stemcell, release, and do a "bosh deploy" with your cf manifest.

Best,
Amit

On Tue, Sep 15, 2015 at 9:56 AM, Alex Lomoff <lomov.as(a)gmail.com <mailto:lomov.as(a)gmail.com>> wrote:
Sorry, I guess some misunderstanding took place.

Approximately the same number you’ll get if you run `gem list bosh_cli` because bosh-director has the same version numbering as a bosh_cli, as far they are parts of the same project of cloudfoundry/bosh repo. So I thought @daxiezhi probably wants to update CLI through gem.

As far as I know bosh-lite is a go utility to deploy MicroBOSH. It aims to replace BOSH CLI plugin “micro", the outdated way to deploy MicrBOSH. Do you mean that at this moment MicroBOSH deployed with bosh-lite should be called BOSH-Lite?

On Sep 15, 2015, at 4:23 PM, Amit Gupta <agupta(a)pivotal.io <mailto:agupta(a)pivotal.io>> wrote:

For me, `bosh -t lite status` shows "Version 1.3056.0 (00000000)". I believe that's the version of the bosh-director gem: https://rubygems.org/gems/bosh-director/versions/ <https://rubygems.org/gems/bosh-director/versions/>

On Tue, Sep 15, 2015 at 4:34 AM, Alex Lomoff <lomov.as(a)gmail.com <mailto:lomov.as(a)gmail.com>> wrote:
Hi, all.

Amit, I guess it is not bosh-lite version, because bosh-lite versions are over 9000 [1].

daxiezhi, if you mean by “local bosh” your version of bosh_cli gem, then everything you need to do is to run: “gem update bosh_cli” (possibly with sudo).

If you mean you need to update BOSH director, then everything depend on the you deployed the BOSH. In this case could you tell what commands did you used to deploy BOSH?

[1] https://github.com/cloudfoundry/bosh-lite/releases <https://github.com/cloudfoundry/bosh-lite/releases>

Thank you,
Alex L.

On Sep 14, 2015, at 7:00 PM, Amit Gupta <agupta(a)pivotal.io <mailto:agupta(a)pivotal.io>> wrote:

When you say "local bosh", do you mean BOSH-Lite?

On Wed, Jun 3, 2015 at 4:03 AM, daxiezhi <daxiezhi(a)gmail.com <mailto:daxiezhi(a)gmail.com>> wrote:
Hi,all.
My local bosh version is 1.2124.0. From cf v208, there is a change in the templates to no longer include resoure pool sizes require s a minimun bosh director of v149. So I guess the solution is to upgrade bosh. But I couldn't find a doc for it.