From 7552c489e331f5e989352138d603946db31521a7 Mon Sep 17 00:00:00 2001 From: Vanou Ishii Date: Wed, 17 Mar 2021 13:41:27 +0900 Subject: [PATCH] Add iRMC Driver Support to DevStack Code This commit adds logic * to determine whether irmc hardware type is enabled * (if enabled) to install python package python-scciclient & snmp into DevStack code to support construction of Ironic environment with iRMC supported Fujitsu server through DevStack. Story: 2008722 Task: 42066 Change-Id: Ie50d8e4b43cdbfd8cd46333a75de20015e67829e --- devstack/lib/ironic | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 8399aa9afd..e6aa8d8651 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -814,6 +814,11 @@ function is_ibmc_enabled { return 1 } +function is_irmc_enabled { + [[ -z "${IRONIC_ENABLED_HARDWARE_TYPES%%*irmc*}" ]] && return 0 + return 1 +} + function is_ansible_deploy_enabled { [[ -z "${IRONIC_ENABLED_DEPLOY_INTERFACES%%*ansible*}" ]] && return 0 return 1 @@ -1137,6 +1142,10 @@ function install_ironic { pip_install python-ibmcclient fi + if is_irmc_enabled; then + pip_install python-scciclient pysnmp + fi + if is_ansible_deploy_enabled; then pip_install "$(grep '^ansible' $IRONIC_DIR/driver-requirements.txt | awk '{print $1}')" fi