cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

job template spec.networks not returning an IP #18

Open drnic opened 9 years ago

drnic commented 9 years ago

Hopefully I'm describing the issue correctly.

I discovered that this template when deployed by bosh-init was converting:

-forwardHost=<%= my_ip %>

into

-forwardHost=

see - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L66

https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L15-L34 in discover_external_ip it finds the first spec.networks and returns network.ip as ""

Notable it doesn't raise an error - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L27

cppforlife commented 9 years ago

Yup, currently bosh-init does not properly populate network info before rendering templates.