inspector: dnsmasq dhcp hostsdir is not configured consistently by default

Bug #2042731 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-ironic
Fix Released
Undecided
Unassigned

Bug Description

Currently the ironic::inspector::dnsmasq_dhcp_hostsdir defaults to undef, but this results in the inconsistent configuration by default

 - ironic-inspector-dnsmasq has no dhcp-hostsdir set
 - [dnsmasq_pxe_filter] dhcp_hostsdir is not set, and ironic-inspector expects the default path (/var/lib/ironic-inspector/dhcp-hostsdir)

We have to ensure these two are configured consistently by default.

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

Reviewed: https://review.opendev.org/c/openstack/puppet-ironic/+/900098
Committed: https://opendev.org/openstack/puppet-ironic/commit/247d4ac3d383c135d94d0d17de87da8040136b8c
Submitter: "Zuul (22348)"
Branch: master

commit 247d4ac3d383c135d94d0d17de87da8040136b8c
Author: Takashi Kajinami <email address hidden>
Date: Sun Nov 5 01:15:56 2023 +0900

    inspector: Show warning when dhcp hostsdir is not configured

    The dnsmasq_dhcp_hostsdir should be set to a specific path when dnsmasq
    PXE filter is used. This adds a warning message to inform possible
    mis-configuration.

    Note that dhcp hostsdir is not needed when the other PXE filter such
    as iptables PXE filter is used, thus we avoid updating the default
    value.

    Closes-Bug: #2042731
    Change-Id: If127bd4661709835ab0d9d39e0341367fdef51b7

Changed in puppet-ironic:
status: In Progress → Fix Released
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.