Closed Senthilannaswamy closed 7 years ago
Please take note of the "Uncomment & change" sections and make sure you have uncommented them and provided non-default passwords for them - they're required for deployment.
Also, please rotate your access key and secret access key ending in LIQA
- it should have been redacted and has now been emailed out to watchers of this repo.
dear all.
I got the same error and stuck there even I have uncomment and put a password.
Could you pls help. Thanks.
Command 'deploy' failed:
Installing CPI:
Rendering and uploading Jobs:
Rendering job templates for installation:
Rendering templates for job 'vsphere_cpi/677eb08a995a5bfde2ad0ed9c4ec8c0914272c47':
Rendering template src: cpi.json.erb, dst: config/cpi.json:
Rendering template src: /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/bosh-init-release722782197/extracted_jobs/vsphere_cpi/templates/cpi.json.erb, dst: /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/rendered-jobs717219588/config/cpi.json:
Running ruby to render templates:
Running command: 'ruby /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/erb-renderer631514685/erb-render.rb /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/erb-renderer631514685/erb-context.json /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/bosh-init-release722782197/extracted_jobs/vsphere_cpi/templates/cpi.json.erb /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/rendered-jobs717219588/config/cpi.json', stdout: '', stderr: '/root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/erb-renderer631514685/erb-render.rb:189:in rescue in render': Error filling in template '/root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/bosh-init-release722782197/extracted_jobs/vsphere_cpi/templates/cpi.json.erb' for vsphere_cpi/0 (line 112: #<TemplateEvaluationContext::UnknownProperty: Can't find property 'nats.password'>) (RuntimeError) from /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/erb-renderer631514685/erb-render.rb:175:in
render'
from /root/.bosh_init/installations/afc81326-c887-4809-5b11-dd90070b0422/tmp/erb-renderer631514685/erb-render.rb:200:in `
HI Jacko1118,
Can you share the bosh.yml
?
Regards Senthil.
name: bosh
releases:
resource_pools:
password: "$6$4gDD3aV0rdqlrKC$2axHCxGKIObs6tAmMTqYCspcdvQXh3JJcvWOY2WGb4SrdXtnCyNaWlrf3WEqvYR2MYizEGp3kMmbpwBC6jsHt0"
disk_pools:
networks:
jobs:
name: bosh instances: 1
templates:
resource_pool: vms persistent_disk_pool: disks
networks:
properties: nats: address: 10.1.1.141 user: nats password: "Test1111q" # <--- Uncomment & change
postgres: &db listen_address: 10.1.1.142 host: 127.0.0.1 user: PoStGrEs password: pOsTgReS # <--- Uncomment & change database: bosh adapter: postgres
blobstore: address: 10.1.1.145 port: 25250 provider: dav director: user: DiReCtOr password: dIrEcToR # <--- Uncomment & change agent: user: AgEnT password: aGeNt # <--- Uncomment & change
director: address: 10.1.1.144 name: my-bosh db: *db cpi_job: vsphere_cpi user_management: provider: local local: users:
hm: director_account: user: AdMiN password: pAsSwOrD # <--- Uncomment & change resurrector_enabled: true intervals: agent_timeout: 180
vcenter: &vcenter # <--- Replace values below address: 10.1.1.120 user: administrator@vsphere.local password: Hugo@8888 datacenters:
name: sodec_cf vm_folder: vm_folder template_folder: template_folder_bosh datastore_pattern: datastore1 persistent_datastore_pattern: datastore1 disk_path: my-bosh-disks clusters: [test_cluster]
agent: {mbus: "nats://nats:test11@10.0.0.6:4222"} # <--- Uncomment & change
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider: template: {name: vsphere_cpi, release: bosh-vsphere-cpi}
mbus: "https://mbus:mbus-password@10.0.0.6:6868" # <--- Uncomment & change
properties: vcenter: vcenter agent: {mbus: "https://mbus:mbus-password@0.0.0.0:6868"} # <--- Uncomment & change blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache} ntp: ntp
dear Senthil,
I got the same error if let the password field uncomment.
If I change the field , I got below error:
root@ubuntu6:~/my-bosh# bosh-init deploy ./bosh.yml Deployment manifest: '/root/my-bosh/bosh.yml' Deployment state: '/root/my-bosh/bosh-state.json'
Started validating Failed validating (00:00:00)
Command 'deploy' failed: Parsing release set manifest '/root/my-bosh/bosh.yml': Unmarshalling release set manifest: yaml: line 61: mapping values are not allowed in this context root@ubuntu6:~/my-bosh#
templates:
{name: vsphere_cpi, release: bosh-vsphere-cpi}
resource_pool: vms persistent_disk_pool: disks
networks:
{name: private, static_ips: [10.1.1.140]}
properties: nats: address: 10.1.1.141 user: natsjacko password: Test1111q # <--- Uncomment & change
61,1 35%
Command 'deploy' failed: Parsing release set manifest '/root/my-bosh/bosh.yml': Unmarshalling release set manifest: yaml: line 61: mapping values are not allowed in this context
you can see the log detect my error in line 61 which is the line for nats user. I am stucking here. could you pls help?
HI jacko1118,
Its looks like intent issue, can you attach bosh.yml as file (you need to change the extension of the file). -Senthil
hi Senthil, finally I success to deploy the bosh director with below bosh.yml. the format of the bosh.yml is very strictly to control, even more than one space I would get the error
thanks.
If it helps, here's a blog post on deploying bosh to AWS using bosh create-env
+ new bosh-deployment repo (which are replacing bosh-init
) https://www.starkandwayne.com/blog/bootstrap-bosh-2-0-on-aws/
Senthil, thanks for helping out others here! Were you able to resolve your original issue that this can be closed?
HI There,
Yes, you can consider as closed.
Senthil.
I'm trying to bosh-init, by following below reference.
While running "bosh-init deploy ./bosh.yml", getting error like, (please note, have tried Uncommenting "properties:nats:password", still same issue). Please suggest.
Deployment manifest file was changed only for following properties,