Should ports created by ironic have PXE parameters after deployment?

Tyler Bishop tbishop at liquidweb.com
Wed Sep 16 18:23:04 UTC 2020


Normally yes but I am having the PXE added to NON provision ports as well.

I tore down the dnsmasq and inspector containers, rediscovered the hosts and it hasn’t came back.. but that still doesn’t answer how that could happen.
On Sep 16, 2020, 3:53 AM -0400, Mark Goddard <mark at stackhpc.com>, wrote:
> On Tue, 15 Sep 2020 at 20:13, Tyler Bishop <tbishop at liquidweb.com> wrote:
> >
> > Hi,
> >
> > My issue is i have a neutron network (not discovery or cleaning) that is adding the PXE entries for the ironic pxe server and my baremetal host are rebooting into discovery upon successful deployment.
> >
> > I am curious how the driver implementation works for adding the PXE options to neutron-dhcp-agent configuration and if that is being done to help non flat networks where no SDN is being used? I have several environments using Kolla-Ansible and this one seems to be the only behaving like this. My neutron-dhcp-agent dnsmasq opt file looks like this after a host is deployed.
> >
> > dhcp/7d0b7e78-6506-4f4a-b524-d5c03e4ca4a8/opts cat /var/lib/neutron/dhcp/ffdf5f9b-b4ad-4a53-b154-69eb3b4a81c5/opts
> > tag:subnet-57b772c1-7878-4458-8c60-cf21eac99ac2,option:dns-server,10.60.3.240,10.60.10.240,10.60.1.240
> > tag:subnet-57b772c1-7878-4458-8c60-cf21eac99ac2,option:classless-static-route,169.254.169.254/32,10.60.66.2,0.0.0.0/0,10.60.66.1
> > tag:subnet-57b772c1-7878-4458-8c60-cf21eac99ac2,249,169.254.169.254/32,10.60.66.2,0.0.0.0/0,10.60.66.1
> > tag:subnet-57b772c1-7878-4458-8c60-cf21eac99ac2,option:router,10.60.66.1
> > tag:port-08908db1-360b-4973-87c7-15049a484ac6,150,10.60.66.11
> > tag:port-08908db1-360b-4973-87c7-15049a484ac6,210,/tftpboot/
> > tag:port-08908db1-360b-4973-87c7-15049a484ac6,66,10.60.66.11
> > tag:port-08908db1-360b-4973-87c7-15049a484ac6,67,pxelinux.0
> > tag:port-08908db1-360b-4973-87c7-15049a484ac6,option:server-ip-address,10.60.66.11
>
> Hi Tyler, Ironic adds DHCP options to the neutron port on the
> provisioning network. Specifically, the boot interface in ironic is
> responsible for adding DHCP options. See the PXEBaseMixin class.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200916/da1815c4/attachment-0001.html>


More information about the openstack-discuss mailing list