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:
Lucas Alvares Gomes 2015-04-09 14:02:36 +01:00
parent 345ffb99ef
commit 6669ee9af6
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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: