Fix installation of proliant tools

Use the actual virtualenv to install proliant tools, and make sure the
dependencies needed for sum firmware upgrade are included.

Change-Id: Ie1dbb868450918567b2903cdeccda35af1904417
Closes-Bug: #1916346
This commit is contained in:
Francois RIGAULT 2021-03-03 18:59:01 +01:00
parent 5c1f9a3238
commit 5efb11de0d
2 changed files with 6 additions and 2 deletions

View File

@ -34,6 +34,7 @@ if [[ $DISTRO_NAME = "ubuntu" || $DISTRO_NAME = "debian" ]]; then
alien -i /tmp/ssacli.rpm
else
rpm -iv /tmp/ssacli.rpm
rpm --import https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub
fi
rm -f /tmp/ssacli.rpm
@ -41,8 +42,8 @@ rm -f /tmp/ssacli.rpm
# Install proliantutils python module in the
# virtual environment of ironic-python-agent.
# This is pre-installed by
# ironic-agent/install.d/ironic-agent-source-install/60-ironic-agent-install.
IPA_VENV=/usr/share/ironic-python-agent/venv
# ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install.
IPA_VENV=/opt/ironic-python-agent
if [[ -d "$IPA_VENV" ]]; then
$IPA_VENV/bin/pip install proliantutils
else

View File

@ -3,3 +3,6 @@ gcc:
python-dev:
unzip:
net-tools:
binutils:
pciutils:
tar: