Skip to content

Commit a839e25

Browse files
authored
Fix OOB test failures in ci.yml github actions (#11887)
1 parent a6068a8 commit a839e25

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,24 @@ jobs:
234234
sudo apt-get update
235235
sudo apt-get install -y git uuid-runtime genisoimage netcat-openbsd ipmitool build-essential libgcrypt20 libgpg-error-dev libgpg-error0 libopenipmi0 ipmitool libpython3-dev libssl-dev libffi-dev python3-openssl python3-dev python3-setuptools
236236
237+
- name: Setup IPMI Tool for CloudStack
238+
run: |
239+
# Create cloudstack-common directory if it doesn't exist
240+
sudo mkdir -p /usr/share/cloudstack-common
241+
242+
# Copy ipmitool to cloudstack-common directory if it doesn't exist
243+
if [ ! -f /usr/share/cloudstack-common/ipmitool ]; then
244+
sudo cp /usr/bin/ipmitool /usr/share/cloudstack-common/ipmitool
245+
sudo chmod 755 /usr/share/cloudstack-common/ipmitool
246+
fi
247+
248+
# Create ipmitool-C3 wrapper script
249+
sudo tee /usr/bin/ipmitool > /dev/null << 'EOF'
250+
#!/bin/bash
251+
/usr/share/cloudstack-common/ipmitool -C3 $@
252+
EOF
253+
sudo chmod 755 /usr/bin/ipmitool
254+
237255
- name: Install Python dependencies
238256
run: |
239257
python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycryptodome mock flask netaddr pylint pycodestyle six astroid pynose

0 commit comments

Comments
 (0)