bosh-init icon indicating copy to clipboard operation
bosh-init copied to clipboard

job template spec.networks not returning an IP

Open drnic opened this issue 9 years ago • 1 comments

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

drnic avatar Apr 18 '15 18:04 drnic

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

cppforlife avatar Apr 20 '15 01:04 cppforlife