<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 8:39 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 Kaifeng:<div>Before receiving your reply, I have downloaded the ronic-python-agent-builder-2.3.0, but I don't know how to build it and how to use it, I can't find the direction for use.</div><div>And I try 'python setup.py install' to install it. and the following is my execution.</div><div><br></div><div>I don't know the optional values of 'distribution', 'release', 'element', I hope you can help me.</div><div><br></div></div></blockquote><div><br></div><div>distribution refers to the base image that the ramdisk will be built on, release is used to specify the distribution variant.</div><div>element is a concept of diskimage-builder, each element is handling part of the building process,</div><div>you can take a look at the diskimage-builder documentation for a complete list [1].</div><div>In case further customization on the ramdisk is required, elements can be included by the argument.</div><div>We have some examples on how to use the IPA-B at [2].<br></div><div> </div><div>[1] <a href="https://docs.openstack.org/diskimage-builder/latest/elements.html">https://docs.openstack.org/diskimage-builder/latest/elements.html</a><br></div><div>[2] <a href="https://docs.openstack.org/ironic-python-agent-builder/latest/admin/dib.html">https://docs.openstack.org/ironic-python-agent-builder/latest/admin/dib.html</a><br></div><div><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></div><div>Ankele</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Kaifeng Wang <<a href="mailto:kaifeng.w@gmail.com" target="_blank">kaifeng.w@gmail.com</a>> 于2020年12月27日周日 下午2:04写道:<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 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" target="_blank">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>
</blockquote></div>
</blockquote></div></div>