Date
1 - 3 of 3
Failed initializing BOSH environment on vSphere
Jim
Hi all
I followed the instructions [1] to initialize BOSH environment on vSphere. I
failed and only got the message "Rendering job templates... Failed". Where
can I check more details about this failure? [2] is my console log and [3]
is the content of bosh-deployment.yml.
Thanks
[1] http://bosh.io/docs/init-vsphere.html
[2]
$ bosh-init deploy ./bosh-deployment.yml
Deployment manifest: '/root/bosh-deployment.yml'
Deployment state: '/root/bosh-deployment-state.json'
Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:06)
Downloading release 'bosh-vsphere-cpi'... Skipped [Found in local cache]
(00:00:00)
Validating release 'bosh-vsphere-cpi'... Finished (00:00:02)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:23)
Finished validating (00:00:32)
Started installing CPI
Compiling package
'vsphere_cpi_ruby/0c03029a8dc9a4ca54dd6176cac0889bc3b7164b'... Finished
(00:00:00)
Compiling package
'vsphere_cpi_mkisofs/119afa2c404bc138e81efd2518312e39b32d6860'... Finished
(00:00:00)
Compiling package
'vsphere_cpi/a53fb49b54fb20120e1b864d82904ced2f141dea'... Finished
(00:00:00)
Installing packages... Finished (00:00:01)
Rendering job templates... Failed (00:00:00)
[3]
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=158
sha1: a97811864b96bee096477961b5b4dadd449224b4
- name: bosh-vsphere-cpi
url:
https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release
?v=3
sha1: cf529297a72c8d0ec489b06632725f638108ed33
resource_pools:
- name: vms
network: private
stemcell:
# url:
https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent?v=2950
url:
http://localhost/bosh-stemcell-2950-vsphere-esxi-ubuntu-trusty-go_agent.tgz
sha1: bf2752e1be480d75a34e127a0989b3b16a7ee9aa
cloud_properties:
cpu: 2
ram: 4_096
disk: 20_000
env:
bosh:
# c1oudc0w is a default password for vcap user
password:
"$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf
3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
- name: disks
disk_size: 20_000
networks:
- name: private
type: manual
subnets:
- range: 10.0.0.0/24
gateway: 10.0.0.1
dns: [10.0.0.2]
cloud_properties: {name: VM Network} # <--- Replace with Network name
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: redis, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: cpi, release: bosh-vsphere-cpi}
resource_pool: vms
persistent_disk_pool: disks
networks:
- {name: private, static_ips: [10.0.0.6]}
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
redis:
listen_addresss: 127.0.0.1
address: 127.0.0.1
password: redis-password
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
blobstore:
address: 10.0.0.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: cpi
hm:
http: {user: hm, password: hm-password}
director_account: {user: admin, password: admin}
resurrector_enabled: true
vcenter: &vcenter # <--- Replace values below
address: 140.92.25.235
user: administrator(a)vsphere.local
password: !QAZ2wsx
datacenters:
- name: iSMB
vm_folder: my-bosh-vms
template_folder: my-bosh-templates
datastore_pattern: datastore_69
persistent_datastore_pattern: datastore_69
disk_path: my-bosh-disks
clusters: [iSMB IaaS]
agent: {mbus: "nats://nats:nats-password(a)10.0.0.6:4222"}
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password(a)10.0.0.6:6868"
properties:
vcenter: *vcenter
agent: {mbus: "https://mbus:mbus-password(a)0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
Jim
Software Engineer
jinsenglin(a)iii.org.tw
Data Analytics Technology & Applications Research Institute (DATA)
http://www.iii.org.tw/
I followed the instructions [1] to initialize BOSH environment on vSphere. I
failed and only got the message "Rendering job templates... Failed". Where
can I check more details about this failure? [2] is my console log and [3]
is the content of bosh-deployment.yml.
Thanks
[1] http://bosh.io/docs/init-vsphere.html
[2]
$ bosh-init deploy ./bosh-deployment.yml
Deployment manifest: '/root/bosh-deployment.yml'
Deployment state: '/root/bosh-deployment-state.json'
Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:06)
Downloading release 'bosh-vsphere-cpi'... Skipped [Found in local cache]
(00:00:00)
Validating release 'bosh-vsphere-cpi'... Finished (00:00:02)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:23)
Finished validating (00:00:32)
Started installing CPI
Compiling package
'vsphere_cpi_ruby/0c03029a8dc9a4ca54dd6176cac0889bc3b7164b'... Finished
(00:00:00)
Compiling package
'vsphere_cpi_mkisofs/119afa2c404bc138e81efd2518312e39b32d6860'... Finished
(00:00:00)
Compiling package
'vsphere_cpi/a53fb49b54fb20120e1b864d82904ced2f141dea'... Finished
(00:00:00)
Installing packages... Finished (00:00:01)
Rendering job templates... Failed (00:00:00)
[3]
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=158
sha1: a97811864b96bee096477961b5b4dadd449224b4
- name: bosh-vsphere-cpi
url:
https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release
?v=3
sha1: cf529297a72c8d0ec489b06632725f638108ed33
resource_pools:
- name: vms
network: private
stemcell:
# url:
https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent?v=2950
url:
http://localhost/bosh-stemcell-2950-vsphere-esxi-ubuntu-trusty-go_agent.tgz
sha1: bf2752e1be480d75a34e127a0989b3b16a7ee9aa
cloud_properties:
cpu: 2
ram: 4_096
disk: 20_000
env:
bosh:
# c1oudc0w is a default password for vcap user
password:
"$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf
3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
- name: disks
disk_size: 20_000
networks:
- name: private
type: manual
subnets:
- range: 10.0.0.0/24
gateway: 10.0.0.1
dns: [10.0.0.2]
cloud_properties: {name: VM Network} # <--- Replace with Network name
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: redis, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: cpi, release: bosh-vsphere-cpi}
resource_pool: vms
persistent_disk_pool: disks
networks:
- {name: private, static_ips: [10.0.0.6]}
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
redis:
listen_addresss: 127.0.0.1
address: 127.0.0.1
password: redis-password
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
blobstore:
address: 10.0.0.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: cpi
hm:
http: {user: hm, password: hm-password}
director_account: {user: admin, password: admin}
resurrector_enabled: true
vcenter: &vcenter # <--- Replace values below
address: 140.92.25.235
user: administrator(a)vsphere.local
password: !QAZ2wsx
datacenters:
- name: iSMB
vm_folder: my-bosh-vms
template_folder: my-bosh-templates
datastore_pattern: datastore_69
persistent_datastore_pattern: datastore_69
disk_path: my-bosh-disks
clusters: [iSMB IaaS]
agent: {mbus: "nats://nats:nats-password(a)10.0.0.6:4222"}
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password(a)10.0.0.6:6868"
properties:
vcenter: *vcenter
agent: {mbus: "https://mbus:mbus-password(a)0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
Jim
Software Engineer
jinsenglin(a)iii.org.tw
Data Analytics Technology & Applications Research Institute (DATA)
http://www.iii.org.tw/
Maria Shaldibina
You can enable debug logs via environment variable
`BOSH_INIT_LOG_LEVEL=debug`. See `bosh-init deploy --help` for more info.
Maria
toggle quoted message
Show quoted text
`BOSH_INIT_LOG_LEVEL=debug`. See `bosh-init deploy --help` for more info.
Maria
On Fri, Jun 26, 2015 at 1:16 AM, jinsenglin <jinsenglin(a)iii.org.tw> wrote:
Hi all
I followed the instructions [1] to initialize BOSH environment on vSphere.
I failed and only got the message “Rendering job templates... Failed”.
Where can I check more details about this failure? [2] is my console log
and [3] is the content of bosh-deployment.yml.
Thanks
[1] http://bosh.io/docs/init-vsphere.html
[2]
$ bosh-init deploy ./bosh-deployment.yml
Deployment manifest: '/root/bosh-deployment.yml'
Deployment state: '/root/bosh-deployment-state.json'
Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:06)
Downloading release 'bosh-vsphere-cpi'... Skipped [Found in local cache]
(00:00:00)
Validating release 'bosh-vsphere-cpi'... Finished (00:00:02)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:23)
Finished validating (00:00:32)
Started installing CPI
Compiling package
'vsphere_cpi_ruby/0c03029a8dc9a4ca54dd6176cac0889bc3b7164b'... Finished
(00:00:00)
Compiling package
'vsphere_cpi_mkisofs/119afa2c404bc138e81efd2518312e39b32d6860'... Finished
(00:00:00)
Compiling package
'vsphere_cpi/a53fb49b54fb20120e1b864d82904ced2f141dea'... Finished
(00:00:00)
Installing packages... Finished (00:00:01)
Rendering job templates... Failed (00:00:00)
[3]
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=158
sha1: a97811864b96bee096477961b5b4dadd449224b4
- name: bosh-vsphere-cpi
url:
https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=3
sha1: cf529297a72c8d0ec489b06632725f638108ed33
resource_pools:
- name: vms
network: private
stemcell:
# url:
https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent?v=2950
url:
http://localhost/bosh-stemcell-2950-vsphere-esxi-ubuntu-trusty-go_agent.tgz
sha1: bf2752e1be480d75a34e127a0989b3b16a7ee9aa
cloud_properties:
cpu: 2
ram: 4_096
disk: 20_000
env:
bosh:
# c1oudc0w is a default password for vcap user
password:
"$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
- name: disks
disk_size: 20_000
networks:
- name: private
type: manual
subnets:
- range: 10.0.0.0/24
gateway: 10.0.0.1
dns: [10.0.0.2]
cloud_properties: {name: VM Network} # <--- Replace with Network name
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: redis, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: cpi, release: bosh-vsphere-cpi}
resource_pool: vms
persistent_disk_pool: disks
networks:
- {name: private, static_ips: [10.0.0.6]}
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
redis:
listen_addresss: 127.0.0.1
address: 127.0.0.1
password: redis-password
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
blobstore:
address: 10.0.0.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: cpi
hm:
http: {user: hm, password: hm-password}
director_account: {user: admin, password: admin}
resurrector_enabled: true
vcenter: &vcenter # <--- Replace values below
address: 140.92.25.235
user: administrator(a)vsphere.local
password: !QAZ2wsx
datacenters:
- name: iSMB
vm_folder: my-bosh-vms
template_folder: my-bosh-templates
datastore_pattern: datastore_69
persistent_datastore_pattern: datastore_69
disk_path: my-bosh-disks
clusters: [iSMB IaaS]
agent: {mbus: "nats://nats:nats-password(a)10.0.0.6:4222"}
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password(a)10.0.0.6:6868"
properties:
vcenter: *vcenter
agent: {mbus: "https://mbus:mbus-password(a)0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
Jim
Software Engineer
jinsenglin(a)iii.org.tw
Data Analytics Technology & Applications Research Institute (DATA)
http://www.iii.org.tw/
_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh
Jim
Hi Maria
Thanks for the instruction. I found the debug message saying " Panic: runtime error: index out of range ". But I have no idea whether it is a bosh-init bug or my manifest mistake. The attached file is the full debug log and here is the error message:
[Cmd Runner] 2015/06/27 11:06:51 DEBUG - Running command: ruby /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427/erb-render.rb /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427/erb-context.json /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release636838357/extracted_jobs/cpi/templates/cpi.yml.erb /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/rendered-jobs197958500/config/cpi.yml
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/rendered-jobs197958500
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/stemcell-manager926199088
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release033779406
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release636838357
[Main] 2015/06/27 11:06:51 ERROR - Panic: runtime error: index out of range
Thanks
toggle quoted message
Show quoted text
Thanks for the instruction. I found the debug message saying " Panic: runtime error: index out of range ". But I have no idea whether it is a bosh-init bug or my manifest mistake. The attached file is the full debug log and here is the error message:
[Cmd Runner] 2015/06/27 11:06:51 DEBUG - Running command: ruby /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427/erb-render.rb /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427/erb-context.json /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release636838357/extracted_jobs/cpi/templates/cpi.yml.erb /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/rendered-jobs197958500/config/cpi.yml
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/erb-renderer498669427
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/rendered-jobs197958500
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/stemcell-manager926199088
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release033779406
[File System] 2015/06/27 11:06:51 DEBUG - Remove all /root/.bosh_init/installations/2fcbefad-5075-4a64-6482-5d20a6fafb24/tmp/bosh-init-release636838357
[Main] 2015/06/27 11:06:51 ERROR - Panic: runtime error: index out of range
Thanks
-----Original Message-----
From: cf-bosh-bounces(a)lists.cloudfoundry.org [mailto:cf-bosh-bounces(a)lists.cloudfoundry.org] On Behalf Of Maria Shaldibina
Sent: Friday, June 26, 2015 11:55 PM
To: Discussions about the Cloud Foundry BOSH project.
Subject: Re: [cf-bosh] Failed initializing BOSH environment on vSphere
You can enable debug logs via environment variable `BOSH_INIT_LOG_LEVEL=debug`. See `bosh-init deploy --help` for more info.
Maria
On Fri, Jun 26, 2015 at 1:16 AM, jinsenglin <jinsenglin(a)iii.org.tw> wrote:
Hi all
I followed the instructions [1] to initialize BOSH environment on vSphere. I failed and only got the message “Rendering job templates... Failed”. Where can I check more details about this failure? [2] is my console log and [3] is the content of bosh-deployment.yml.
Thanks
[1] http://bosh.io/docs/init-vsphere.html
[2]
$ bosh-init deploy ./bosh-deployment.yml
Deployment manifest: '/root/bosh-deployment.yml'
Deployment state: '/root/bosh-deployment-state.json'
Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:06)
Downloading release 'bosh-vsphere-cpi'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh-vsphere-cpi'... Finished (00:00:02)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:23)
Finished validating (00:00:32)
Started installing CPI
Compiling package 'vsphere_cpi_ruby/0c03029a8dc9a4ca54dd6176cac0889bc3b7164b'... Finished (00:00:00)
Compiling package 'vsphere_cpi_mkisofs/119afa2c404bc138e81efd2518312e39b32d6860'... Finished (00:00:00)
Compiling package 'vsphere_cpi/a53fb49b54fb20120e1b864d82904ced2f141dea'... Finished (00:00:00)
Installing packages... Finished (00:00:01)
Rendering job templates... Failed (00:00:00)
[3]
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=158
sha1: a97811864b96bee096477961b5b4dadd449224b4
- name: bosh-vsphere-cpi
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=3
sha1: cf529297a72c8d0ec489b06632725f638108ed33
resource_pools:
- name: vms
network: private
stemcell:
# url: https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent?v=2950
url: http://localhost/bosh-stemcell-2950-vsphere-esxi-ubuntu-trusty-go_agent.tgz
sha1: bf2752e1be480d75a34e127a0989b3b16a7ee9aa
cloud_properties:
cpu: 2
ram: 4_096
disk: 20_000
env:
bosh:
# c1oudc0w is a default password for vcap user
password: "$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
- name: disks
disk_size: 20_000
networks:
- name: private
type: manual
subnets:
- range: 10.0.0.0/24
gateway: 10.0.0.1
dns: [10.0.0.2]
cloud_properties: {name: VM Network} # <--- Replace with Network name
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: redis, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: cpi, release: bosh-vsphere-cpi}
resource_pool: vms
persistent_disk_pool: disks
networks:
- {name: private, static_ips: [10.0.0.6]}
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
redis:
listen_addresss: 127.0.0.1
address: 127.0.0.1
password: redis-password
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
blobstore:
address: 10.0.0.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: cpi
hm:
http: {user: hm, password: hm-password}
director_account: {user: admin, password: admin}
resurrector_enabled: true
vcenter: &vcenter # <--- Replace values below
address: 140.92.25.235
user: administrator(a)vsphere.local
password: !QAZ2wsx
datacenters:
- name: iSMB
vm_folder: my-bosh-vms
template_folder: my-bosh-templates
datastore_pattern: datastore_69
persistent_datastore_pattern: datastore_69
disk_path: my-bosh-disks
clusters: [iSMB IaaS]
agent: {mbus: "nats://nats:nats-password(a)10.0.0.6:4222"}
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password(a)10.0.0.6:6868"
properties:
vcenter: *vcenter
agent: {mbus: "https://mbus:mbus-password(a)0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
Jim
Software Engineer
jinsenglin(a)iii.org.tw
Data Analytics Technology & Applications Research Institute (DATA)
http://www.iii.org.tw/
_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh
From: cf-bosh-bounces(a)lists.cloudfoundry.org [mailto:cf-bosh-bounces(a)lists.cloudfoundry.org] On Behalf Of Maria Shaldibina
Sent: Friday, June 26, 2015 11:55 PM
To: Discussions about the Cloud Foundry BOSH project.
Subject: Re: [cf-bosh] Failed initializing BOSH environment on vSphere
You can enable debug logs via environment variable `BOSH_INIT_LOG_LEVEL=debug`. See `bosh-init deploy --help` for more info.
Maria
On Fri, Jun 26, 2015 at 1:16 AM, jinsenglin <jinsenglin(a)iii.org.tw> wrote:
Hi all
I followed the instructions [1] to initialize BOSH environment on vSphere. I failed and only got the message “Rendering job templates... Failed”. Where can I check more details about this failure? [2] is my console log and [3] is the content of bosh-deployment.yml.
Thanks
[1] http://bosh.io/docs/init-vsphere.html
[2]
$ bosh-init deploy ./bosh-deployment.yml
Deployment manifest: '/root/bosh-deployment.yml'
Deployment state: '/root/bosh-deployment-state.json'
Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:06)
Downloading release 'bosh-vsphere-cpi'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh-vsphere-cpi'... Finished (00:00:02)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:23)
Finished validating (00:00:32)
Started installing CPI
Compiling package 'vsphere_cpi_ruby/0c03029a8dc9a4ca54dd6176cac0889bc3b7164b'... Finished (00:00:00)
Compiling package 'vsphere_cpi_mkisofs/119afa2c404bc138e81efd2518312e39b32d6860'... Finished (00:00:00)
Compiling package 'vsphere_cpi/a53fb49b54fb20120e1b864d82904ced2f141dea'... Finished (00:00:00)
Installing packages... Finished (00:00:01)
Rendering job templates... Failed (00:00:00)
[3]
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=158
sha1: a97811864b96bee096477961b5b4dadd449224b4
- name: bosh-vsphere-cpi
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release?v=3
sha1: cf529297a72c8d0ec489b06632725f638108ed33
resource_pools:
- name: vms
network: private
stemcell:
# url: https://bosh.io/d/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent?v=2950
url: http://localhost/bosh-stemcell-2950-vsphere-esxi-ubuntu-trusty-go_agent.tgz
sha1: bf2752e1be480d75a34e127a0989b3b16a7ee9aa
cloud_properties:
cpu: 2
ram: 4_096
disk: 20_000
env:
bosh:
# c1oudc0w is a default password for vcap user
password: "$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
- name: disks
disk_size: 20_000
networks:
- name: private
type: manual
subnets:
- range: 10.0.0.0/24
gateway: 10.0.0.1
dns: [10.0.0.2]
cloud_properties: {name: VM Network} # <--- Replace with Network name
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: redis, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: cpi, release: bosh-vsphere-cpi}
resource_pool: vms
persistent_disk_pool: disks
networks:
- {name: private, static_ips: [10.0.0.6]}
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
redis:
listen_addresss: 127.0.0.1
address: 127.0.0.1
password: redis-password
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
blobstore:
address: 10.0.0.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: cpi
hm:
http: {user: hm, password: hm-password}
director_account: {user: admin, password: admin}
resurrector_enabled: true
vcenter: &vcenter # <--- Replace values below
address: 140.92.25.235
user: administrator(a)vsphere.local
password: !QAZ2wsx
datacenters:
- name: iSMB
vm_folder: my-bosh-vms
template_folder: my-bosh-templates
datastore_pattern: datastore_69
persistent_datastore_pattern: datastore_69
disk_path: my-bosh-disks
clusters: [iSMB IaaS]
agent: {mbus: "nats://nats:nats-password(a)10.0.0.6:4222"}
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password(a)10.0.0.6:6868"
properties:
vcenter: *vcenter
agent: {mbus: "https://mbus:mbus-password(a)0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
Jim
Software Engineer
jinsenglin(a)iii.org.tw
Data Analytics Technology & Applications Research Institute (DATA)
http://www.iii.org.tw/
_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh