Tag : author-cweibel

Verifying Cloud Foundry Routes

Occasionally you may run into an issue where the routes between the routers and nats are not in a consistent state. To detect this issue log onto a server with connectivity to your BOSH director and copy the following Bash script onto it: #!/usr/bin/env bash DEPLOYMENT=$1 RUSER=$2 RPASSWORD=$3 if [[ -z ${DEPLOYMENT} ]]; then echo

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
Creating a Read-Only Cloud Foundry API Server for Reporting

Backstory Cloud Foundry is a powerful PaaS allowing developers to easily deploy and scale their applications. Keeping an eye on the platform falls to the operators who can leverage various tools such as the CF Firehose and Prometheus to consume metrics and create dashboards to validate the health of the system. One of the dashboards

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
Curl a CF API Endpoint

There may be times when an operator wants to test a Cloud Foundry API server for operations to list spaces, organizations, etc. There are many ways of doing this, below is one example. Before starting you will need three pieces of information: client_id with cloud_controller.admin privilege client_secret for the client_id api url Obtaining Your Bearer

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
BOSH Director Time Drift

Earlier today I was greeted with this message while performing a BOSH deployment for SHIELD: Error 100: Unknown CPI error ‘Unknown’ with message ‘AWS was not able to validate the provided access credentials’ I double checked the AWS Access and Secret permissions. I even deployed from my laptop a test deployment with the same keys

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
Connecting to an App Container in Cloud Foundry

You may find yourself in need to connect to a container running on either a DEA runner or Diego Cell. There are two different methods depending on which backend you use which are listed below. DEA Runner Connect via ssh to one of the runners. bosh ssh runner_z1/0 Switch to the root user and obtain

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
The Day I Broke Every VM in Cloud Foundry

On a recent upgrade I added Diego components to an existing DEA based CF deployment. All was well until I ran the smoke_tests errand and noticed logs were not being returned through Doppler to Loggregator so I ran through the usual suspects. At some point I ran bosh vms and was greeted with every single

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
Configuring etcd.cluster Job Property in Cloud Foundry

A few new job properties were added to the etcd bosh release. One of these is etcd.cluster and reading the spec file you get the helpful hint that it is to represent Information about etcd cluster. So what is this job property supposed to be set to? After a bit of trial and error and

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
AWS Instance Counts from BOSH Deployed VMs

Ever wonder how many of the VMS in AWS Console were deployed via BOSH? How about the number of instance types so you can start using reserved instances? The script below will show you the number of BOSH deployed VMS you have for each defined director on AWS. A few assumptions: You can log into

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
Adding Certs to Cloud Foundry Deployments

We recently added etcd TLS to several environments and leveraged the certificate creation scripts in cf-release/scripts. These are wonderful little scripts but leave it as an exercise to copy and paste in the contents of the flat files into your deployment manifest. After my second copy-pasta a colleague (thanks Tom) created a helpful script to

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝