DHCP agent: Set an "ipxe" tag to work with Ironic
Ironic expects neutron to have an "ipxe" tag for the option 175 which is sent by iPXE/gPXE when booting a node. The problem is that up to now this tag was not created by Neutron, causing the nodes deployed with Ironic + iPXE to fail to boot. This patch is creating this tag when launching the dnsmasq process. DocImpact Change-Id: I45a0f51365b37e7d85848fcdcbcf7aa6a1dddfed Closes-Bug: #1442123
This commit is contained in:
parent
345ffb99ef
commit
6669ee9af6
|
@ -315,6 +315,7 @@ class Dnsmasq(DhcpLocalProcess):
|
|||
'--addn-hosts=%s' % self.get_conf_file_name('addn_hosts'),
|
||||
'--dhcp-optsfile=%s' % self.get_conf_file_name('opts'),
|
||||
'--dhcp-leasefile=%s' % self.get_conf_file_name('leases'),
|
||||
'--dhcp-match=set:ipxe,175',
|
||||
]
|
||||
|
||||
possible_leases = 0
|
||||
|
|
|
@ -873,7 +873,8 @@ class TestDnsmasq(TestBase):
|
|||
'--dhcp-hostsfile=/dhcp/%s/host' % network.id,
|
||||
'--addn-hosts=/dhcp/%s/addn_hosts' % network.id,
|
||||
'--dhcp-optsfile=/dhcp/%s/opts' % network.id,
|
||||
'--dhcp-leasefile=/dhcp/%s/leases' % network.id]
|
||||
'--dhcp-leasefile=/dhcp/%s/leases' % network.id,
|
||||
'--dhcp-match=set:ipxe,175']
|
||||
|
||||
seconds = ''
|
||||
if lease_duration == -1:
|
||||
|
|
Loading…
Reference in New Issue