Add start/stop command for ironic-inspector-dnsmasq

When the PXE filter's dhcp-hostsdir is purged on start/stop
of the ironic-inspector service inspectors dnsmasq service
must also be restarted to ensure that the dhcp server config
is updated as well.

Partial-bug: #1780421
Depends-On: Ie961ec4d3b6b65a462e2d2493f5b9240c2bfa7a6
Change-Id: I22c7be368b62ef93efabcbd2c13599625ea45548
This commit is contained in:
Harald Jensås 2018-08-16 16:27:42 +02:00
parent ed96987af5
commit 7bcdb7f7de
2 changed files with 8 additions and 0 deletions

View File

@ -584,6 +584,8 @@ ironic::inspector::dnsmasq_local_ip: {{LOCAL_IP}}
ironic::inspector::dnsmasq_interface: {{INSPECTION_INTERFACE}}
ironic::inspector::dnsmasq_ip_subnets: {{{INSPECTION_SUBNETS}}}
ironic::inspector::pxe_filter::driver: dnsmasq
ironic::inspector::pxe_filter::dnsmasq::dnsmasq_start_command: 'systemctl start openstack-ironic-inspector-dnsmasq.service'
ironic::inspector::pxe_filter::dnsmasq::dnsmasq_stop_command: 'systemctl stop openstack-ironic-inspector-dnsmasq.service'
ironic::inspector::dnsmasq_dhcp_hostsdir: '/var/lib/ironic-inspector/dhcp-hostsdir'
ironic::inspector::ramdisk_collectors: {{INSPECTION_COLLECTORS}}
ironic::inspector::additional_processing_hooks: 'extra_hardware,lldp_basic,local_link_connection'

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes and issue where the PXE filter in ironic-inspectors DHCP server may
become out of sync with the ironic-inspector service. `Bug 1780421
<https://bugs.launchpad.net/tripleo/+bug/1780421>`_.