element proliant-tools会在ipa ramdisk中安装一个rpm包hpssacli(HP的RAID管理工具),和一个python module proliantutils(里面ProliantHardwareManager继承了ironic_python_agent.hardware:GenericHardwareManager,实现了get_clean_steps/create_configuration/delete_configuration)。
export DIB_DEV_USER_USERNAME=devuser export DIB_DEV_USER_PASSWORD=devuser export DIB_DEV_USER_PWDLESS_SUDO=yes disk-image-create centos7 ironic-agent devuser proliant-tools -o ironic-deploy
在/diskimage-builder/diskimage_builder/elements/proliant-tools找到了proliant-tools文件夹,查看README
This element can be used when building ironic-agent ramdisk. It enables ironic-agent ramdisk to do in-band cleaning operations specific to HPE ProLiant hardware. * Works with ubuntu and fedora distributions (on which ironic-agent element is supported). * Currently the following utilities are installed: + `proliantutils`_ - This module registers an ironic-python-agent hardware manager for HPE ProLiant hardware, which implements in-band cleaning steps. The latest version of ``proliantutils`` available is installed. This python module is released with Apache license. + `HPE Smart Storage Administrator (HPE SSA) CLI for Linux 64-bit`_ - This utility is used by ``proliantutils`` library above for doing in-band RAID configuration on HPE ProLiant hardware. Currently installed version is 2.60. Newer version of ``ssacli`` when available, may be installed to the ramdisk by using the environment variable ``DIB_SSACLI_URL``. ``DIB_SSACLI_URL`` should contain the HTTP(S) URL for downloading the RPM package for ``ssacli`` utility. The old environmental variable ``DIB_HPSSACLI_URL``,a HTTP(S) URL for downloading the RPM package for ``hpssacli`` utility, is deprecated. The ``hpssacli`` utility is not supported anymore, use ``ssacli`` instead for the same functionality. Availability of newer versions can be in the Revision History in the above link. This utility is closed source and is released with `HPE End User License Agreement – Enterprise Version`_
明确表示此版本支持fedora和ubuntu,于是重新做fedora系列
disk-image-create fedora ironic-agent devuser proliant-tools -o ironic-deploy-proliant
但谈何容易。