Skip to content

Instantly share code, notes, and snippets.

@devcamcar
Created September 12, 2017 03:16
Show Gist options
  • Save devcamcar/6f278ba6fa42679df9d7948282ecf103 to your computer and use it in GitHub Desktop.
Save devcamcar/6f278ba6fa42679df9d7948282ecf103 to your computer and use it in GitHub Desktop.
[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
#url: https://objectstorage.us-phoenix-1.oraclecloud.com/p/J8321CJteLLI6pvM3hV22A3EOSSY2Lc1zgJfvuIXvh0/n/cloudfoundry/b/cpireleases/o/bosh-oracle-cpi-0+dev.latest.tgz
#sha1: 7ff4a013674b5ec17b8b40947c2886e0710f357c
- type: replace
path: /resource_pools/name=vms/stemcell?
value:
url: https://objectstorage.us-phoenix-1.oraclecloud.com/p/ERMshBsLoSFBGg6_8bMdceJLPLIM17Sm0Wiq5E--0WA/n/cloudfoundry/b/stemcells/o/light-oracle-ubuntu-stemcell-2000.6.tgz
sha1: 7094c1fb6110eef7e374a19be1d59e46daf1b8cf
# Configure instance shapes
- type: replace
path: /resource_pools/name=vms/cloud_properties?
value:
availability_domain: ((ad1))
instance_shape: VM.Standard1.4
- type: replace
path: /disk_pools/name=disks/cloud_properties?
value: {type: standard}
# Configure VCN and subnet
- type: replace
path: /networks/name=default/subnets/0/cloud_properties?
value:
vcn: ((vcn))
subnet_name: ((subnet))
# Enable registry job
- type: replace
path: /instance_groups/name=bosh/jobs/-
value:
name: registry
release: bosh
- type: replace
path: /instance_groups/name=bosh/properties/registry?
value:
address: ((internal_ip))
host: ((internal_ip))
...skipping...
cle_cpi/bin/cpi'
{
********************
{
"director_id": "e9acc306-7f29-4538-4a83-8cb924ada005",
"installation_id": "8f811f02-30b9-4878-65a2-3599d6a53348",
"current_vm_cid": "",
"current_stemcell_id": "",
"current_disk_id": "",
"current_release_ids": [],
"current_manifest_sha": "",
"disks": [
{
"id": "7fe2eebb-f55e-4013-5d3f-7462f7957cf2",
"cid": "ocid1.volume.oc1.phx.abyhqljth35g4udgewwhevzbfhhcxqykj3dgsesl3c4narvoez5335ljoo2q",
"size": 51200,
"cloud_properties": {
"type": "standard"
}
}
],
"stemcells": [
{
"id": "83777d04-e7fb-413b-781b-e5a36227905c",
"name": "light-oracle-ubuntu-stemcell",
"version": "2000.6",
"cid": "ocid1.image.oc1.phx.aaaaaaaa54vyrl7a26jyfvm2opci36ozuzuwqgjtgqv2ltfgznxjtls6lfva"
}
],
"releases": []
}
********************
[config] 2017/09/12 03:06:50 DEBUG - Deployment File Contents {
"director_id": "e9acc306-7f29-4538-4a83-8cb924ada005",
"installation_id": "8f811f02-30b9-4878-65a2-3599d6a53348",
"current_vm_cid": "",
"current_stemcell_id": "",
"current_disk_id": "",
"current_release_ids": [],
"current_manifest_sha": "",
"disks": [
{
"id": "7fe2eebb-f55e-4013-5d3f-7462f7957cf2",
"cid": "ocid1.volume.oc1.phx.abyhqljth35g4udgewwhevzbfhhcxqykj3dgsesl3c4narvoez5335ljoo2q",
"size": 51200,
"cloud_properties": {
"type": "standard"
}
}
],
"stemcells": [
{
...skipping...
STDIN: '{"method":"delete_disk","arguments":["ocid1.volume.oc1.phx.abyhqljth35g4udgewwhevzbfhhcxqykj3dgsesl3c4narvoez5335ljoo2q"],"context":{"director_uuid":"e9acc306-7f29-4538-4a83-8cb924ada005"}}'
STDOUT: '{"result":null,"error":{"type":"Bosh::Clouds::CloudError","message":"Error deleting disk: [DELETE /volumes/{volumeId}][404] deleteVolumeNotFound \u0026{Code:0xc42060a140 Message:0xc42060a150}","ok_to_retry":false},"log":""}'
STDERR: '[File System] 2017/09/12 03:06:50 DEBUG - Reading file /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/jobs/oracle_cpi/config/cpi.json
[File System] 2017/09/12 03:06:50 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+lmShtMhwFOke3w5eveJEZ6ogJAhYvY157kVWxOlch32xvcrwsZBWm0uGRblzPVbGTPajHkbtphJjI5NqiXR7/YHE4iYQw+Py3rMIh2eXulgVTdFkUQN1EdmUaHbwrK3CN7hhfpun\n","user":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcnw2HDDjA3TA15Z82MzhxLkiOYdXVqE/TRNz3Z7JuBu/5DxF0JPyPvo81OoCCYelfSoF58/jr0c88WxaErlpvRsmsS7/pqoiA4ETZFLu2KRRWmCAxHQPNdtlRgPZThRFFTGLZsvt0HuhvSAZwqTEHdJRgdLt/9dD/Lp5hUkJP4p3WSlx9Urf5c1pAw0a9SqfvO7gPcnmM2Etklxg6Gzake5un14F7+QMkLSLggKGNN+uIZ65SV0clhsGxW90boz2lqBPpqukkUP20bmWSDKIlVpR5U+7o/Su9vfl1DWi1bsw5BOl9z/0vu7a6jVEju0Fz0suvy+hDsAPvXOBvitpt [email protected]"}},"registry":{"username":"registry","password":"ba543013-17b0-4dd2-4e9e-6404633ca88f","protocol":"http","host":"127.0.0.1","port":6901},"agent":{"ntp":["time1.google.com","time2.google.com","time3.google.com","time4.google.com"],"blobstore":{"provider":"local","options":{"blobstore_path":"/var/vcap/micro_bosh/data/cache"}},"mbus":"https://mbus:[email protected]:6868"}}}}
********************
[json] 2017/09/12 03:06:50 DEBUG - Request bytes
********************
{"method":"delete_disk","arguments":["ocid1.volume.oc1.phx.abyhqljth35g4udgewwhevzbfhhcxqykj3dgsesl3c4narvoez5335ljoo2q"],"context":{"director_uuid":"e9acc306-7f29-4538-4a83-8cb924ada005"}}
********************
[json] 2017/09/12 03:06:50 DEBUG - Deserialized request
********************
{delete_disk [ocid1.volume.oc1.phx.abyhqljth35g4udgewwhevzbfhhcxqykj3dgsesl3c4narvoez5335ljoo2q]}
********************
[BmcConnector] 2017/09/12 03:06:50 DEBUG - Creating Runtime Client
[BmcConnector] 2017/09/12 03:06:50 DEBUG - Creating authenticating transport to host iaas.us-phoenix-1.oraclecloud.com
[BmcConnector] 2017/09/12 03:06:50 DEBUG - Creating Runtime Client
[BmcConnector] 2017/09/12 03:06:50 DEBUG - Creating authenticating transport to host identity.us-phoenix-1.oraclecloud.com
[BMCDiskOperations] 2017/09/12 03:06:50 ERROR - Error deleting volume [DELETE /volumes/{volumeId}][404] deleteVolumeNotFound &{Code:0xc42060a140 Message:0xc42060a150}
[json] 2017/09/12 03:06:50 DEBUG - CloudError response bytes
********************
{"result":null,"error":{"type":"Bosh::Clouds::CloudError","message":"Error deleting disk: [DELETE /volumes/{volumeId}][404] deleteVolumeNotFound \u0026{Code:0xc42060a140 Message:0xc42060a150}","ok_to_retry":false},"log":""}
********************
'
[cpiCmdRunner] 2017/09/12 03:06:50 DEBUG -
[registryServer] 2017/09/12 03:06:50 DEBUG - Stopping registry server
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/jobs/oracle_cpi
[registryServer] 2017/09/12 03:06:50 DEBUG - Registry error occurred: accept tcp 127.0.0.1:6901: use of closed network connection
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/blobs/eafbf9af-e561-4397-580c-16473f7a63a1
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/tmp/bosh-release-job024676121
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/tmp/bosh-release-pkg082939407
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/tmp/bosh-release-pkg136078882
[File System] 2017/09/12 03:06:50 DEBUG - Remove all /home/ubuntu/.bosh/installations/8f811f02-30b9-4878-65a2-3599d6a53348/tmp/bosh-release282055536
[CLI] 2017/09/12 03:06:50 ERROR - Deleting disk in the cloud: CPI 'delete_disk' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Error deleting disk: [DELETE /volumes/{volumeId}][404] deleteVolumeNotFound \u0026{Code:0xc42060a140 Message:0xc42060a150}","ok_to_retry":false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment