Ironic should advertise TFTP server on api_interface

Bug #1808347 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard

Bug Description

The ironic TFTP server should be accessed via the internal API network. For ironic inspector, dnsmasq.conf advertises this correctly:

dhcp-option=option:tftp-server,{{ api_interface_address }}
dhcp-option=option:server-ip-address,{{ api_interface_address }}

However, ironic conductor does not set the [pxe] tftp_server variable. This means the TFTP server advertised gets the default value of $my_ip, which is set by https://docs.openstack.org/oslo.utils/latest/reference/netutils.html#oslo_utils.netutils.get_my_ipv4, typically the source IP for the default route.

Kolla Ansible should set [pxe] tftp_server to {{ api_interface_address }}.

Mark Goddard (mgoddard)
Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/625006

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/625006
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=4d6464669976012a6db976cf908dad6af48d7073
Submitter: Zuul
Branch: master

commit 4d6464669976012a6db976cf908dad6af48d7073
Author: Mark Goddard <email address hidden>
Date: Thu Dec 13 14:07:41 2018 +0000

    Set [pxe] tftp_server in ironic.conf

    The ironic TFTP server should be accessed via the internal API network.
    For ironic inspector, dnsmasq.conf advertises this correctly:

    dhcp-option=option:tftp-server,'api_interface_address'
    dhcp-option=option:server-ip-address,'api_interface_address'

    However, ironic conductor does not set the [pxe] tftp_server variable.
    This means the TFTP server advertised gets the default value of $my_ip,
    which is set by
    https://docs.openstack.org/oslo.utils/latest/reference/netutils.html#oslo_utils.netutils.get_my_ipv4,
    typically the source IP for the default route.

    This change sets [pxe] tftp_server to 'api_interface_address'.

    Change-Id: Ic3e688b3f2b92ad9515322f49cd5f4f29d763e49
    Closes-Bug: #1808347

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.