zoukankan      html  css  js  c++  java
  • 使用dib element proliant-tools制作deploy image

    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

  • 相关阅读:
    简化异步操作(上):使用CCR和AsyncEnumerator简化异步操作
    CentOS 6.3(x32)下安装Oracle 10g R2
    Linux Oracle服务启动&停止脚本与开机自启动
    简化异步操作(上):使用CCR和AsyncEnumerator简化异步操作
    日记 20130202 阴
    2020年8月16日
    2020年8月18日
    2020年8月15日
    2020年8月22日
    2020年8月19日
  • 原文地址:https://www.cnblogs.com/gushiren/p/9511165.html
Copyright © 2011-2022 走看看