Skip to content

Instantly share code, notes, and snippets.

View allomov-altoros's full-sized avatar

Alexander Łomov allomov-altoros

View GitHub Profile
@allomov-altoros
allomov-altoros / bosh-cheatsheet.md
Last active September 17, 2023 05:50
BOSH CLI cheatsheet

BOSH command line interface cheatsheet

Introduction

BOSH is a powerful tool to install and manage your deployments. You can find docs on https://bosh.io/docs. Consider using bosh-init tool to install to a cloud of your choice MicroBOSH instance (MicroBOSH is a single VM BOSH installation, it has everything that you need to deploy and manage).

Installing of BOSH CLI

BOSH command line interface is implemented as a ruby gem and can be run on every platform that supports ruby, you'll need to have ruby 2.1.x or higher to run it. To install it you can run gem install bosh_cli and gem update bosh_cli to update to a newer version.

Error applying plan:
6 error(s) occurred:
* aws_iam_role.jenkins_role: Error creating IAM Role jenkins_iam_role: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/jenkins_iam_role
status code: 403, request id: bafb0b3c-e24a-11e5-abf7-132439892ddb
* aws_iam_role.spinnaker_role: Error creating IAM Role spinnaker_iam_role: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/spinnaker_iam_role
status code: 403, request id: bafb806d-e24a-11e5-abf7-132439892ddb
* aws_iam_role.properties_and_logging_role: Error creating IAM Role properties_and_logging_iam_role: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/properties_and_logging_iam_role
status code: 403, request id: bafb5a06-
Error applying plan:
6 error(s) occurred:
* aws_iam_role.base_iam_role: Error creating IAM Role base_iam_role_testing: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/base_iam_role_testing
status code: 403, request id: 3c7ea0e7-e20a-11e5-9631-835724739dd0
* aws_iam_role.properties_and_logging_role: Error creating IAM Role properties_and_logging_iam_role: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/properties_and_logging_iam_role
status code: 403, request id: 3c98437d-e20a-11e5-9631-835724739dd0
* aws_iam_role.spinnaker_role: Error creating IAM Role spinnaker_iam_role: AccessDenied: User: arn:aws:iam::754058048930:user/alexander.lomov is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::754058048930:role/spinnaker_iam_role
status code: 403, request id: 3cb5b6a2-e20a-11e5-
Started compiling packages > buildpack_php/6dae2301648646cd8ed544af53ff34be0497efe0
Failed compiling packages > cli/b61b75716312df9f4f7c81a17f3a7de456efce71: Timed out pinging to e8f8d9b5-9074-489a-91
bb-3ccf3c3cf200 after 600 seconds (00:10:03)
Failed compiling packages > rootfs_cflinuxfs2/3232d35298f26bcfb153d964e329fcb42c77051f: Timed out pinging to fc4f154
6-3499-4afc-9cf3-5f73c296b429 after 600 seconds (00:10:04)
Failed compiling packages > rtr/2d7de4f6fc25938c21c5be87174f95583feb14b5: Timed out pinging to 82e7fdb4-a638-4a9b-95
16-2f8e8bd38d73 after 600 seconds (00:10:04)
Failed compiling packages > buildpack_php/6dae2301648646cd8ed544af53ff34be0497efe0: Timed out pinging to fe5bdbc7-3a
8a-4d20-aca1-8008a8a57936 after 600 seconds (00:10:04)
Failed compiling packages > buildpack_staticfile/47c22ec219ca96215c509572f7a59aae55e45535: Timed out pinging to 2e6e
#!/bin/bash
export CC_JOB_DIR=/var/vcap/jobs/cloud_controller_ng
source $CC_JOB_DIR/bin/ruby_version.sh
CC_PACKAGE_DIR=/var/vcap/packages/cloud_controller_ng
RUN_DIR=/var/vcap/sys/run/cloud_controller_ng
LOG_DIR=/var/vcap/sys/log/cloud_controller_ng
PIDFILE=$RUN_DIR/cloud_controller_ng.pid
sudo apt-get udpate
sudo apt-get install -y git build-essential
sudo apt-get install -y vim tmux
apt-get install -y git libssl-dev zlib1g-dev libssl-dev libreadline6-dev libxml2-dev libsqlite3-dev
apt-get install -y libruby
apt-get install -y libxml2 libxslt
mkdir -p ~/work/ruby
pushd ~/work/ruby
--- a/Rakefile
+++ b/Rakefile
@@ -36,6 +36,10 @@ CPU = case RbConfig::CONFIG['host_cpu'].downcase
when /amd64|x86_64/
"x86_64"
+ when /powerpc64le/
+ "ppc64le"
+
+
when /ppc64|powerpc64/
ubuntu@ursula-tester:~/work/ursula$ sudo apt-get update
Hit http://repo.openstack.blueboxgrid.com trusty InRelease
Ign http://repos.sensuapp.org sensu InRelease
Hit http://repos.sensuapp.org sensu Release.gpg
Ign http://ports.ubuntu.com trusty InRelease
Hit http://repos.sensuapp.org sensu Release
Ign http://hwraid.le-vert.net precise InRelease
Ign http://ports.ubuntu.com trusty-updates InRelease
Hit http://hwraid.le-vert.net precise Release.gpg
Ign http://ports.ubuntu.com trusty-security InRelease
D, [2015-08-05 09:47:25 #15977] [] DEBUG -- DirectorJobRunner: Lock renewal thread exiting
D, [2015-08-05 09:47:25 #15977] [task:76] DEBUG -- DirectorJobRunner: Deleted lock: lock:deployment:cf
I, [2015-08-05 09:47:25 #15977] [task:76] INFO -- DirectorJobRunner: sending update deployment error event
D, [2015-08-05 09:47:25 #15977] [task:76] DEBUG -- DirectorJobRunner: SENT: hm.director.alert {"id":"4c2cf180-9c2a-4821-bd75-298be815ebea","severity":3,"title":"director - error during update deployment","summary":"Error during update deployment for 'cf' against Director '56f4541a-ebef-45dd-9276-9df6705c9b6d': #<Bosh::Clouds::CloudError: Volume `5ff1c17d-d1ad-4fe3-ae69-af06a92c51f2' state is error, expected available>","created_at":1438768045}
E, [2015-08-05 09:47:25 #15977] [task:76] ERROR -- DirectorJobRunner: Volume `5ff1c17d-d1ad-4fe3-ae69-af06a92c51f2' state is error, expected available
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_cpi-1.0000.0/lib/cloud/external_cpi.rb:119:in `handle_error'
/var
Pending:
network configuration when using manual networking changes static IP address
# not using manual networking
# ./spec/system/network_configuration_spec.rb:76
network configuration when using manual networking deploys multiple manual networks
# not using manual networking
# ./spec/system/network_configuration_spec.rb:89
with release and stemcell and two deployments first deployment should do two deployments from one release
# This fails on OpenStack because use_static_ip only sets the floating IP but doesn't prevent collision
# ./spec/system/with_release_stemcell_spec.rb:112