Last active
July 10, 2016 15:23
-
-
Save timani/91b05cae17c81af9949bedce5faafed1 to your computer and use it in GitHub Desktop.
Upgrading Bosh lite - Cloud Foundry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:~ tmunyaradzi$ bosh stemcells | |
Acting as user 'admin' on 'Bosh Lite Director' | |
No stemcells |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ gem install bosh_cli --no-ri --no-rdoc | |
Fetching: semi_semantic-1.2.0.gem (100%) | |
Successfully installed semi_semantic-1.2.0 | |
Fetching: bosh_common-1.3262.0.gem (100%) | |
Successfully installed bosh_common-1.3262.0 | |
Fetching: bosh-template-1.3262.0.gem (100%) | |
Successfully installed bosh-template-1.3262.0 | |
Fetching: blobstore_client-1.3262.0.gem (100%) | |
Successfully installed blobstore_client-1.3262.0 | |
Fetching: bosh_cli-1.3262.0.gem (100%) | |
Successfully installed bosh_cli-1.3262.0 | |
5 gems installed | |
tmunyaradzi:cf-release tmunyaradzi$ bosh -v | |
BOSH 1.3262.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download Go https://golang.org/dl/ for Mac, OS, Linux | |
# Darwin for Mac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ vagrant up --provider=virtualbox | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Checking if box 'cloudfoundry/bosh-lite' is up to date... | |
==> default: A newer version of the box 'cloudfoundry/bosh-lite' is available! You currently | |
==> default: have version '9000.112.0'. The latest is version '9000.126.0'. Run | |
==> default: `vagrant box update` to update. | |
==> default: Resuming suspended VM... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
==> default: Machine booted and ready! | |
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` | |
==> default: flag to force provisioning. Provisioners marked to run always will still run. | |
tmunyaradzi:bosh-lite tmunyaradzi$ vagrant box update | |
==> default: Checking for updates to 'cloudfoundry/bosh-lite' | |
default: Latest installed version: 9000.112.0 | |
default: Version constraints: 9000.126.0 | |
default: Provider: virtualbox | |
==> default: Updating 'cloudfoundry/bosh-lite' with provider 'virtualbox' from version | |
==> default: '9000.112.0' to '9000.126.0'... | |
==> default: Loading metadata for box 'https://atlas.hashicorp.com/cloudfoundry/bosh-lite' | |
==> default: Adding box 'cloudfoundry/bosh-lite' (v9000.126.0) for provider: virtualbox | |
default: Downloading: https://atlas.hashicorp.com/cloudfoundry/boxes/bosh-lite/versions/9000.126.0/providers/virtualbox.box | |
==> default: Successfully added box 'cloudfoundry/bosh-lite' (v9000.126.0) for 'virtualbox'! | |
tmunyaradzi:bosh-lite tmunyaradzi$ vagrant destroy | |
default: Are you sure you want to destroy the 'default' VM? [y/N] y | |
==> default: Forcing shutdown of VM... | |
==> default: Destroying VM and associated drives... | |
tmunyaradzi:bosh-lite tmunyaradzi$ vagrant up --provider=virtualbox | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'cloudfoundry/bosh-lite'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'cloudfoundry/bosh-lite' is up to date... | |
==> default: Setting the name of the VM: bosh-lite_default_1468089925769_47836 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 (guest) => 2222 (host) (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: | |
default: Vagrant insecure key detected. Vagrant will automatically replace | |
default: this with a newly generated keypair for better security. | |
default: | |
default: Inserting generated public key within guest... | |
default: Removing insecure key from the guest if it's present... | |
default: Key inserted! Disconnecting and reconnecting using new SSH key... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Setting hostname... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Mounting shared folders... | |
default: /vagrant => /Users/tmunyaradzi/Pivotal/bosh-lite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ export no_proxy=xip.io,192.168.50.4 | |
tmunyaradzi:bosh-lite tmunyaradzi$ bosh target 192.168.50.4 lite | |
Target set to 'Bosh Lite Director' | |
tmunyaradzi:bosh-lite tmunyaradzi$ bin/add-route | |
+ old_ips=10.244.0.0/19 | |
+ ips=10.244.0.0/16 | |
+ gw=192.168.50.4 | |
+ echo 'Adding the following route entry to your local route table to enable direct container access: 10.244.0.0/16 via 192.168.50.4. Your sudo password may be required.' | |
++ uname | |
+ '[' Darwin = Darwin ']' | |
+ sudo route delete -net 10.244.0.0/19 192.168.50.4 | |
Password: | |
route: writing to routing socket: not in table | |
delete net 10.244.0.0: gateway 192.168.50.4: not in table | |
+ sudo route delete -net 10.244.0.0/16 192.168.50.4 | |
route: writing to routing socket: not in table | |
delete net 10.244.0.0: gateway 192.168.50.4: not in table | |
+ sudo route add -net 10.244.0.0/16 192.168.50.4 | |
add net 10.244.0.0: gateway 192.168.50.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ ls | |
LICENSE Vagrantfile ci tmp | |
README.md bin docs packer | |
tmunyaradzi:bosh-lite tmunyaradzi$ bosh target 192.168.50.4 lite | |
Target set to 'Bosh Lite Director' | |
tmunyaradzi:bosh-lite tmunyaradzi$ bosh login | |
Your username: admin | |
Enter password: | |
Logged in as 'admin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ bosh download public stemcell bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz | |
bosh-stemcell: 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| 431.4MB 1.9MB/s Time: 00:03:50 | |
Download complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ bosh upload stemcell bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz | |
Acting as user 'admin' on 'Bosh Lite Director' | |
Verifying stemcell... | |
File exists and readable OK | |
Verifying tarball... | |
Read tarball OK | |
Manifest exists OK | |
Stemcell image file OK | |
Stemcell properties OK | |
Stemcell info | |
------------- | |
Name: bosh-warden-boshlite-ubuntu-trusty-go_agent | |
Version: 389 | |
Checking if stemcell already exists... | |
No | |
Uploading stemcell... | |
bosh-stemcell: 96% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | 414.1MB 41.7MB/s ETA: 00:00:00 | |
Director task 2 | |
Started update stemcell | |
Started update stemcell > Extracting stemcell archive. Done (00:00:03) | |
Started update stemcell > Verifying stemcell manifest. Done (00:00:00) | |
Started update stemcell > Checking if this stemcell already exists. Done (00:00:00) | |
Started update stemcell > Uploading stemcell bosh-warden-boshlite-ubuntu-trusty-go_agent/389 to the cloud. Done (00:00:11) | |
Started update stemcell > Save stemcell bosh-warden-boshlite-ubuntu-trusty-go_agent/389 (92d62d48-a121-4135-5ed9-93fb2b33e1be). Done (00:00:00) | |
Done update stemcell (00:00:14) | |
Task 2 done | |
Started 2016-07-10 06:25:11 UTC | |
Finished 2016-07-10 06:25:25 UTC | |
Duration 00:00:14 | |
bosh-stemcell: 96% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | 415.1MB 16.3MB/s Time: 00:00:25 | |
Stemcell uploaded and created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:~ tmunyaradzi$ bosh stemcells | |
Acting as user 'admin' on 'Bosh Lite Director' | |
+---------------------------------------------+---------------------------------------------+---------+--------------------------------------+ | |
| Name | OS | Version | CID | | |
+---------------------------------------------+---------------------------------------------+---------+--------------------------------------+ | |
| bosh-warden-boshlite-ubuntu-trusty-go_agent | bosh-warden-boshlite-ubuntu-trusty-go_agent | 389 | 92d62d48-a121-4135-5ed9-93fb2b33e1be | | |
+---------------------------------------------+---------------------------------------------+---------+--------------------------------------+ | |
(*) Currently in-use | |
Stemcells total: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:bosh-lite tmunyaradzi$ ls -la | |
total 884296 | |
drwxr-xr-x 14 tmunyaradzi staff 476 Jul 9 23:20 . | |
drwxr-xr-x 15 tmunyaradzi staff 510 Jul 9 09:30 .. | |
drwxr-xr-x 15 tmunyaradzi staff 510 Jul 9 11:31 .git | |
-rw-r--r-- 1 tmunyaradzi staff 235 May 1 17:07 .gitignore | |
drwxr-xr-x 3 tmunyaradzi staff 102 May 1 17:08 .vagrant | |
-rw-r--r-- 1 tmunyaradzi staff 419835 May 1 17:07 LICENSE | |
-rw-r--r-- 1 tmunyaradzi staff 5920 Jul 9 11:30 README.md | |
-rw-r--r-- 1 tmunyaradzi staff 1620 Jul 9 11:30 Vagrantfile | |
drwxr-xr-x 7 tmunyaradzi staff 238 May 1 17:07 bin | |
-rw-r--r-- 1 tmunyaradzi staff 452320588 Jul 9 23:24 bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz | |
drwxr-xr-x 21 tmunyaradzi staff 714 Jul 9 11:30 ci | |
drwxr-xr-x 10 tmunyaradzi staff 340 Jul 9 11:30 docs | |
drwxr-xr-x 11 tmunyaradzi staff 374 Jul 9 11:30 packer | |
drwxr-xr-x 3 tmunyaradzi staff 102 May 1 18:20 tmp | |
tmunyaradzi:bosh-lite tmunyaradzi$ cd .. | |
tmunyaradzi:Pivotal tmunyaradzi$ cd cf-release/ | |
tmunyaradzi:releases tmunyaradzi$ ls -la releases/ | |
total 3104 | |
drwxr-xr-x 100 tmunyaradzi staff 3400 Jul 9 23:41 . | |
drwxr-xr-x 27 tmunyaradzi staff 918 Jul 9 23:41 .. | |
lrwxr-xr-x 1 tmunyaradzi staff 1 May 1 17:22 cf -> . | |
-rw-r--r-- 1 tmunyaradzi staff 10034 May 1 17:22 cf-136.yml | |
-rw-r--r-- 1 tmunyaradzi staff 9822 May 1 17:22 cf-137.yml | |
-rw-r--r-- 1 tmunyaradzi staff 9622 May 1 17:22 cf-138.yml | |
... | |
-rw-r--r-- 1 tmunyaradzi staff 18759 May 1 17:22 cf-236.yml | |
-rw-r--r-- 1 tmunyaradzi staff 19551 Jul 9 23:41 cf-237.yml | |
-rw-r--r-- 1 tmunyaradzi staff 19352 Jul 9 23:41 cf-238.yml | |
-rw-r--r-- 1 tmunyaradzi staff 5776 Jul 9 23:41 index.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmunyaradzi:cf-release tmunyaradzi$ bosh upload release releases/cf-238.yml | |
Acting as user 'admin' on 'Bosh Lite Director' | |
Downloading from blobstore (id=ba5f3fcc-7c34-4092-a0c5-9c639f0f7062)... | |
Downloading from blobstore (id=35097176-52ee-4756-a2af-0adecc7228ff)... | |
Downloading from blobstore (id=d0ddc712-5e79-4ee9-ad5a-1df8c576cfd3)... | |
Downloading from blobstore (id=b5a73f6f-5605-4509-b401-57308bfd46d5)... | |
Downloading from blobstore (id=1250d0e6-245e-494c-9991-4daa62baa7fb)... | |
... | |
Started creating new jobs > statsd-injector/7bb836cf603a4084493d1cc0bb5403b867c0dc15. Done (00:00:00) | |
Started creating new jobs > syslog_drain_binder/e61f420765c1390543216f8f321ccfd78e292061. Done (00:00:00) | |
Started creating new jobs > tps/fbec0883ddba30e77df453f98b0a8f99cd76e3c6. Done (00:00:00) | |
Started creating new jobs > uaa/dcff8b06b46ef9efee25edeffe2d72c3b6a8e38f. Done (00:00:00) | |
Done creating new jobs (00:00:02) | |
Started release has been created > cf/238. Done (00:00:00) | |
Task 4 done | |
Started 2016-07-10 07:32:06 UTC | |
Finished 2016-07-10 07:33:08 UTC | |
Duration 00:01:02 | |
release.tgz: 96% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | 2.1GB 18.9MB/s Time: 00:01:52 | |
Release uploaded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download Go https://golang.org/dl/ for Mac, OS, Linux | |
# Darwin for Mac | |
tmunyaradzi:cf-release tmunyaradzi$ ./scripts/generate-bosh-lite-dev-manifest | |
Aborted. Please install spiff by following https://github.com/cloudfoundry-incubator/spiff#installation | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment