<div dir="ltr"><div>Greetintgs, replies inline!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 2, 2021 at 2:48 PM Ankele zhang <<a href="mailto:ankelezhang@gmail.com">ankelezhang@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I have included Ironic service into my rocky OpenStack platform. Using the IPMI driver. The cleaning network and the provisioning network are my provider network.</div><div>I have some questions about Ironic deleting and inspecting. </div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>1、every time I delete my baremetal nodes, I need to delete the associated servers first. the servers delete successfully, but the associated servers filed in nodes are still exist. So I need to set nodes to maintenance mode before I can delete bare metal nodes. what's more, the port list in 'openstack port list' which belong to the nodes can not be deleted automatically. How can I delete nodes correctly?</div><div><br></div></div></blockquote><div><br></div><div>Okay, are you trying `openstack baremetal node delete` before unprovisioning the instances?</div><div><br></div><div>Basically, if you're integrated with nova, the instance has to be unprovisioned. Even with ironic on it's own, `openstack baremetal node unprovision` is what you're looking for most likely. Since we're managing physical machines, we never really want people to delete baremetal nodes from ironic except as some sort of permanent last resort or removal from ironic. Any need to do so we consider to be a bug, if that makes sense. The nodes in ironic will change states upon unprovision to "available" instead of "active" which indicates that it is deployed. A little different, but it all comes down to management and tracking of distinct long living physical machines.</div><div><br></div><div>So Ironic does *not* delete the port if it is pre-created, because the port can realistically be moved elsewhere and the MAC address can be reset. In some cases nova doesn't delete a port upon un-provision, so it kind of depends how you reached that point if the services involved will remove the port. If you're doing it manually to provision a server, it will still need to be removed. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>2、If the new created baremetal nodes' system disks have exist OS data.I cannot inspect them, I need to clean them first, but the cleaning step need MAC address of the nodes and the MAC addresses are obtained by inspecting. So what should I do? I don't want to fill in the MAC addresses manually.</div><div>I have got the PXE boot but was immediately plugged into the existing system as:</div></div></blockquote><div><br></div><div>Inspection is optional, but a MAC address is functionally required to identify the machine since BMC identification by address is not reliable on all hardware vendors. This is even more so with the case that you have an existing operating system on the machine. Granted, you may want to check your inspection PXE configuration and PXE templates, since I guess your default falls back to the disk where instead you can have the configuration fall to inspection. Generally, most people tend to use iPXE because it is a bit more powerful for things such as this.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><img src="cid:ii_klroxpai0" alt="image.png" width="542" height="328"><br></div><div>0.1s later:</div><div><img src="cid:ii_klroycwr1" alt="image.png" width="542" height="334"><br></div><div><br></div><div>Looking forward to your help.</div><div><br></div><div>Ankele.</div><div><br></div><div><br></div></div>
</blockquote></div></div>