Setting ipxe_enabled un undercloud.conf doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Tony Breeds |
Bug Description
In trying to disable iPXE boot (for development of the multiarch blueprint) It seems that ipxe is still enabled:
[stack@director ~]$ grep ipxe_enabled undercloud.conf
#ipxe_enabled = true
ipxe_enabled = false
[stack@director ~]$ sudo grep -E '(pxe_transfer|
ironic:
ironic:
[stack@director ~]$ grep -i1 ipxe_enabled /usr/share/
ironic:
{{#IPXE_ENABLED}}
ironic:
{{/IPXE_ENABLED}}
ironic:
--
# Ironic pxe
ironic:
# NOTE(dtantsur): UEFI only works with iPXE currently for us
This seems to be because pystache treats the string 'False' as a true value[1]. This isn't a bug in pystache as such.
See:
>>> import pystache
>>> template="""
... {{#IPXE_ENABLED}}
... ironic:
... {{/IPXE_ENABLED}}
... """
>>> print pystache.
ironic:
>>> print pystache.
>>> print pystache.
>>>
Changed in tripleo: | |
assignee: | nobody → Tony Breeds (o-tony) |
status: | New → In Progress |
Changed in tripleo: | |
milestone: | none → queens-3 |
importance: | Undecided → High |
Changed in tripleo: | |
milestone: | queens-3 → queens-rc1 |
Fix proposed to branch: master /review. openstack. org/534604
Review: https:/