Use _uri which is wrapped if IPv6 for ironic tftp

Use $NETWORK_uri for ironic::pxe::tftp_bind_host so that
the wrapped ip address is picked up from hieradata when
IPv6 is used.

Closes-Bug: #1844713
Change-Id: I874d5eb401113fb9a1664be0b3cd29e76756d970
This commit is contained in:
Harald Jensås 2019-09-19 20:22:38 +02:00
parent a187c5eab9
commit d2b607c976
2 changed files with 9 additions and 1 deletions

View File

@ -331,7 +331,7 @@ outputs:
ironic::pxe::tftp_bind_host:
str_replace:
template:
"%{hiera('$NETWORK')}"
"%{hiera('$NETWORK_uri')}"
params:
$NETWORK: {get_param: [ServiceNetMap, IronicNetwork]}
# NOTE(dtantsur): UEFI only works with iPXE currently for us

View File

@ -0,0 +1,8 @@
---
fixes:
- |
When using IPv6 provisioning network the tftp server used by the
Baremetal service did not start. The address passed as bind host
to the tftp server is now wrapped in `[]` to fix the issue. Bug:
`1844713 <https://bugs.launchpad.net/tripleo/+bug/1844713>`_.