<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 12:12 AM 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"><div>Hi ~</div><div>I have deployed OpenStack platform in  Rocky version and integreted Ironic(Rocky) into it according to the official documents. I download the coreOS vmlinuz and ramdisk images from <a href="https://tarballs.opendev.org/openstack/ironic-python-agent/coreos/files/" target="_blank">https://tarballs.opendev.org/openstack/ironic-python-agent/coreos/files/</a>. and if I don't clean my devices I can deploy baremetal node server currently. When I cleaning my disk using "openstack baremetal node clean --clean-steps '[{"interface": "deploy", "step": "erase_devices"}]' my_bm", I got an error message "Clean step failed: Error performing clean_step erase_devices: No HardwareManager found to handle method: Could not find method: erase_block_device" from ironic-conductor.log and I got the same error in coreOS by "sudo journalctl -u ironic-python-agent -f". I download the Rocky ironic-python-agent source code from github and I search 'erase_block_devices' ,it returned from hardware.py +781. So, the first problem , I don't know why I got this error message.</div></div></blockquote><div><br></div><div>CoreOS based ramdisk was not maintained for a while, you could try a rocky release at <a href="https://tarballs.opendev.org/openstack/ironic-python-agent/dib/" target="_blank">https://tarballs.opendev.org/openstack/ironic-python-agent/dib/</a></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>I downloaded the source code of the ironic-python-agent and tried to build the coreOS image by 'Makefile', but I always got error as following, this is my second problem.</div><div><br></div></div></blockquote><div><br></div><div>Building an IPA ramdisk is moved from diskimage-builder to ironic-python-agent-builder, you can find the document here: <a href="https://docs.openstack.org/ironic-python-agent-builder/latest/" target="_blank">https://docs.openstack.org/ironic-python-agent-builder/latest/</a></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><br></div><div>Finally, I want to code my own 'custom HardwareManager' to support 'raid config' for the ironic-python-agent, but I don't know how to get started.</div><div><br></div></div></blockquote><div><br></div><div><div>For an in-band RAID support, you'll need to create a new hardware manager and implement some deploy steps to support RAID configuration, specifically, the create_configuration and delete_configuration steps.</div><div>The following links may provide some starting points for you.</div><div><a href="https://docs.openstack.org/ironic/latest/contributor/deploy-steps.html" target="_blank">https://docs.openstack.org/ironic/latest/contributor/deploy-steps.html</a></div><div><a href="https://docs.openstack.org/ironic/latest/admin/cleaning.html#raid-interface" target="_blank">https://docs.openstack.org/ironic/latest/admin/cleaning.html#raid-interface</a></div><div><br></div><div>Hope this helps.</div></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>Looking forward to your help. Thank you.</div><div><br></div><div>Ankele</div></div>
</blockquote></div></div>