Bosh

 View Only

 Issue with rendering the templates during the initial deployment of the Bosh Director from Ops Mgr.

Doug Young's profile image
Doug Young posted Apr 26, 2019 11:38 PM

I seem to be having an issue with rendering the templates during the initial deployment of the Bosh Director from Ops Mgr. Anyone else have this issue and know what to do to resolve it?

 

Here's the logs:

===== 2019-04-26 17:36:35 UTC Running "/usr/local/bin/bosh --no-color --non-interactive --tty create-env /var/tempest/workspaces/default/deployments/bosh.yml --recreate-persistent-disks"

Deployment manifest: '/var/tempest/workspaces/default/deployments/bosh.yml'

Deployment state: '/var/tempest/workspaces/default/deployments/bosh-state.json'

 

Started validating

Validating release 'bosh'... Finished (00:00:02)

Validating release 'bosh-vsphere-cpi'... Finished (00:00:01)

Validating release 'uaa'... Finished (00:00:04)

Validating release 'credhub'... Finished (00:00:03)

Validating release 'bosh-system-metrics-server'... Finished (00:00:04)

Validating release 'os-conf'... Finished (00:00:00)

Validating release 'backup-and-restore-sdk'... Finished (00:00:12)

Validating release 'bpm'... Finished (00:00:06)

Validating cpi release... Finished (00:00:00)

Validating deployment manifest... Finished (00:00:00)

Validating stemcell... Finished (00:00:18)

Finished validating (00:00:55)

 

Started installing CPI

Compiling package 'ruby-2.4-r4/0cdc60ed7fdb326e605479e9275346200af30a25'... Finished (00:03:39)

Compiling package 'vsphere_cpi/7556c6c966f3efcd1660cf2dc010e6c28a58182d'... Finished (00:01:33)

Compiling package 'iso9660wrap/2e7db549be4f20243d9e3b835df265e1a23d0ebb'... Finished (00:00:00)

Installing packages... Finished (00:00:02)

Rendering job templates... Finished (00:00:04)

Installing job 'vsphere_cpi'... Finished (00:00:00)

Finished installing CPI (00:05:20)

 

Starting registry... Finished (00:00:00)

Uploading stemcell 'bosh-vsphere-esxi-ubuntu-xenial-go_agent/250.17'... Finished (00:01:26)

 

Started deploying

Creating VM for instance 'bosh/0' from stemcell 'sc-5a99a417-0440-4b7f-a7de-046cdd531dd9'... Finished (00:01:11)

Waiting for the agent on VM 'vm-d2672b08-d2b8-435a-b420-a2762dee4f62' to be ready... Finished (00:03:21)

Creating disk... Finished (00:00:22)

Attaching disk 'disk-a5c82740-5dda-4cbe-b092-342c4af9772a' to VM 'vm-d2672b08-d2b8-435a-b420-a2762dee4f62'... Finished (00:03:57)

Rendering job templates... Failed (00:00:46)

Failed deploying (00:09:41)

 

Stopping registry... Finished (00:00:00)

Cleaning up rendered CPI jobs... Finished (00:00:00)

 

Deploying:

Building state for instance 'bosh/0':

Rendering job templates for instance 'bosh/0':

Rendering templates for job 'uaa/4509939141f1a3148af72704e125f1c04d35277f':

Rendering template src: config/uaa.yml.erb, dst: config/uaa.yml:

Rendering template src: /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/bosh-release-job293165284/templates/config/uaa.yml.erb, dst: /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/rendered-jobs446683093/config/uaa.yml:

Running ruby to render templates:

Running command: 'ruby /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/erb-renderer067335838/erb-render.rb /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/erb-renderer067335838/erb-context.json /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/bosh-release-job293165284/templates/config/uaa.yml.erb /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/rendered-jobs446683093/config/uaa.yml', stdout: '', stderr: 'fatal: Not a git repository (or any of the parent directories): .git

/home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/erb-renderer067335838/erb-render.rb:189:in `rescue in render': Error filling in template '/home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/bosh-release-job293165284/templates/config/uaa.yml.erb' for uaa/0 (line 59: #<ArgumentError: (RuntimeError)

Client redirect-uri is invalid: uaa.clients.login.redirect-uri

Client redirect-uri is invalid: uaa.clients.ops_manager.redirect-uri>)

from /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/erb-renderer067335838/erb-render.rb:174:in `render'

from /home/tempest-web/.bosh/installations/b0dbc5fa-feac-43b1-5a39-03fc05d8849e/tmp/erb-renderer067335838/erb-render.rb:200:in `<main>'

':

exit status 1

 

Exit code 1

===== 2019-04-26 17:54:10 UTC Finished "/usr/local/bin/bosh --no-color --non-interactive --tty create-env /var/tempest/workspaces/default/deployments/bosh.yml --recreate-persistent-disks"; Duration: 1054s; Exit Status: 1

Exited with 1.

Exited with 1.

 

 

Daniel Mikusa's profile image
Daniel Mikusa

I haven't seen that specific error, but take a look at your authentication configuration for Ops Manager, especially if you're using SAML.

 

https://docs.pivotal.io/pivotalcf/2-5/om/vsphere/config.html#set-up

 

It looks like it doesn't like something about the redirect URL that's being generated.

 

You could also go to `https://your-ops-man-fqdn/debug/files`, and look at the manifest that's being generated for deploying the director. You might be able to spot those properties and see what's wrong.