Skip to content

Instantly share code, notes, and snippets.

View devcamcar's full-sized avatar

Devin Carlen devcamcar

View GitHub Profile
$ terraform 0.12upgrade
This command will rewrite the configuration files in the given directory so
that they use the new syntax features from Terraform v0.12, and will identify
any constructs that may need to be adjusted for correct operation with
Terraform v0.12.
We recommend using this command in a clean version control work tree, so that
you can easily see the proposed changes as a diff against the latest commit.
If you have uncommited changes already present, we recommend aborting this
d8d021f3?accepts_incomplete=true HTTP/1.1" 500 320 20 "-" "HTTPClient/1.0 (2.8.2.4, ruby 2.3.3 (2016-11-21))" "10.0.1.5:8312" "10.0.6.18:61020" x_forwarded_for:"129.146.87.31, 10.0.1.5" x_forwarded_proto:"http" vcap_request_id:"568cf833-b059-40ee-6dd8-3bef2173f87e" response_time:0.01719786 app_id:"7cf3a2e8-a3de-4858-96e3-6fb966e63dc8" app_index:"0" x_b3_traceid:"9e9edc5a047c2915" x_b3_spanid:"9e9edc5a047c2915" x_b3_parentspanid:"-"
2017-09-22T20:09:46.27+0000 [RTR/0] OUT
2017-09-22T20:10:00.72+0000 [APP/PROC/WEB/0] OUT 2017-09-22 20:10:00.722 INFO 8 --- [nio-8080-exec-8] com.oracle.cf.bm.dbaas.plan.BasicPlan : service instance id af6bede7-eb83-4987-815a-0ab9d8d021f3
2017-09-22T20:10:00.72+0000 [APP/PROC/WEB/0] OUT 2017-09-22 20:10:00.726 INFO 8 --- [nio-8080-exec-8] com.oracle.bmc.http.DefaultConfigurator : Setting connector provider to HttpUrlConnectorProvider
2017-09-22T20:10:00.73+0000 [APP/PROC/WEB/0] OUT 2017-09-22 20:10:00.730 INFO 8 --- [nio-8080-exec-8] c.o.bmc.database.DatabaseAsyn
$ ./push.sh
Using manifest file /home/ubuntu/bosh/apps/dbaas-cf-service-broker/manifest.yml
Updating app oci-dbaas-service-broker in org system / space dev as admin...
OK
Uploading oci-dbaas-service-broker...
Uploading app files from: /tmp/unzipped-app095888546
Uploading 616.8K, 121 files
Done uploading
D, [2017-09-14 04:00:20 #32527] [] DEBUG -- Director: (0.000140s) SELECT * FROM "deployments" WHERE ("name" IS NULL) LIMIT 1
E, [2017-09-14 04:00:20 #32527] [] ERROR -- Director: NoMethodError - undefined method `downcase' for nil:NilClass:
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-261.4.0/lib/bosh/director/dns/canonicalizer.rb:6:in `canonicalize'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-261.4.0/lib/bosh/director/deployment_plan/deployment_repo.rb:31:in `create_for_attributes'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-261.4.0/lib/bosh/director/deployment_plan/deployment_repo.rb:25:in `find_or_create_by_name'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-261.4.0/lib/bosh/director/deployment_plan/planner_factory.rb:58:in `parse_from_manifest'
/var/vcap/packages/director/gem_home/ruby/2.3.0/gems/bosh-director-261.4.0/lib/bosh/director/deployment_plan/planner_factory.rb:43:in `create_from_manifest'
/var/vcap/packages/
[File System] 2017/09/12 03:06:13 DEBUG - Reading file ./cpi.yml
[File System] 2017/09/12 03:06:13 DEBUG - Read content
********************
---
- type: replace
path: /releases/-
value:
name: bosh-oracle-cpi
version: 0.1
url: file:///home/ubuntu/bosh/deployments/bosh/bosh-oracle-cpi-0+dev.latest.tgz
Task 77 | 19:38:04 | Preparing deployment: Preparing deployment (00:00:00)
Task 77 | 19:38:04 | Preparing package compilation: Finding packages to compile (00:00:00)
Task 77 | 19:38:04 | Creating missing vms: zookeeper/af1cb4a6-9acd-4da8-a1fa-162de39788fa (0)
Task 77 | 19:38:04 | Creating missing vms: zookeeper/59ca73c4-7310-4ff3-84e1-6e7f18d6d821 (2)
Task 77 | 19:38:04 | Creating missing vms: zookeeper/4bab37b9-3dc8-4ef0-be45-c2247feca2f0 (1)
Task 77 | 19:38:05 | Creating missing vms: zookeeper/af1cb4a6-9acd-4da8-a1fa-162de39788fa (0) (00:00:01)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Error launching new instance: [POST /instances/][400] launchInstanceBadRequest &{Code:0xc42039bca0 Message:0xc42039bcc0}' in 'create_vm' CPI method
Task 77 | 19:38:05 | Creating missing vms: zookeeper/59ca73c4-7310-4ff3-84e1-6e7f18d6d821 (2) (00:00:01)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Error launching new instance: [POST /instances/][400] launc
$ bosh task 6 --cpi
Using environment '10.0.3.2' as client 'admin'
Task 6
[File System] 2017/09/05 21:44:03 DEBUG - Reading file /var/vcap/jobs/oracle_cpi/config/cpi.json
[File System] 2017/09/05 21:44:03 DEBUG - Read content
********************
{"cloud":{"plugin":"oracle","properties":{"bmcs":{"tenancy":"ocid1.tenancy.oc1..aaaaaaaaz5ye2l2v7or3ail7ruke4eibbwnp5xpetdwcj5m6sdkq6k3irxpa","compartment":"ocid1.compartment.oc1..aaaaaaaaectl7xrrmv3sy5eyhn3bjw3rcogtphz5i2wzqms22k4olgfs6voa","region":"us-phoenix-1","user":"ocid1.user.oc1..aaaaaaaaftkyhxdy2c7ii4va7fn654dubgnj6mh6zf24tnv67s5myhcshcja","fingerprint":"e1:f4:9b:4b:9a:1c:29:bb:cf:f4:10:11:88:19:46:ed","apikeyfile":"bmcs_apikey.pem","cpikeyfile":"bmcs_cpikey.pem","cpiuser":"ubuntu","authorized_keys":{"cpi":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDgmfjqH7awpxt/3QjtrcQy/Wf65WZh0KDQ2kHeRL6b/0iLRdlVM7VJna2DxQjKnnluWKAsqfUM/3ZURg9hrepPiduVpRhig57B/6Agqh0RnP3ym0bsCMXL7JRGpNN2ULTO1IOZ0YGCjH+jh3uYHiKOLclfIuAmh2oZCfA8Y4v/VaNuqxzsEiYPYJIa4mII2R8g17AGOw2JLVU+lmShtMhw
Failed compiling packages > ruby/1: Action Failed get_task: Task 3e4ea128-3626-4470-4d31-f8c821745035 result: Compiling package ruby: Running packaging script: Command exited with 2; Truncated stdout: compiling bigdecimal.c
compiling set_len.c
installing default string libraries
linking shared-object -test-/string/string.so
make[2]: Leaving directory `/var/vcap/data/compile/ruby/ruby-2.1.1/ext/-test-/string'
make[2]: Entering directory `/var/vcap/data/compile/ruby/ruby-2.1.1/ext/continuation'
compiling continuation.c
installing default continuation libraries
linking shared-object continuation.so
make[2]: Leaving directory `/var/vcap/data/compile/ruby/ruby-2.1.1/ext/continuation'
@devcamcar
devcamcar / gist:16551ac12e9a3757c49c
Created May 27, 2014 18:28
bosh cf-services-contrib manifest
director_uuid: <my director uuid>
releases:
- name: cf-services-contrib
version: 4
compilation:
workers: 10
network: default
reuse_compilation_vms: true
@devcamcar
devcamcar / gist:bbc5c822e0be1dbc0b69
Created May 27, 2014 18:23
bosh cloud foundry manifest
<%
director_uuid = <my director uuid>
static_ip = <my floating ip>
root_domain = <my domain>
deployment_name = 'cf'
cf_release = '171'
protocol = 'http'
common_password = <redacted>
%>
---