Files
sos_testing/lxd_profile_rh.yaml
T
2025-04-15 11:50:23 +01:00

79 lines
1.8 KiB
YAML

devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: virtual
type: disk
config:
user.user-data: |
#cloud-config
packages:
- tar
- git
- python3-pip
- ethtool
- dnf-plugins-core
write_files:
- path: /root/setup.sh
permissions: '0755'
owner: root:root
content: |
#!bin/bash
dnf remove sos
pip3 install tox==2.5.0
- path: /root/run_avocado.sh
permissions: '0755'
owner: root:root
content: |
#!bin/bash
mkdir -p /root/sos
cd /root/sos
tar xfz ../sos.tgz
git config --global --add safe.directory /root/sos
mkdir -p /etc/sos
cp sos.conf /etc/sos/sos.conf
echo "Cleaning up any old .tox environments ..."
rm -rf .tox
echo "Running Unit Tests ..."
#tox -e unit_tests
echo "Running Stage One Tests ..."
#tox -e stageone_tests
echo "Running Stage Two Tests ..."
tox -e stagetwo_tests -- tests/report_tests/plugin_tests/logs.py
- path: /root/run_sos.sh
permissions: '0755'
owner: root:root
content: |
#!bin/bash
sos report -a --all-logs --batch
echo "Check list of files ..."
ls -l /var/tmp/sos*
echo "Check sha256sum ..."
sha256sum /var/tmp/sos*.tar.xz
cat /var/tmp/sos*.sha256
echo "Extracting the sos eport ..."
tar xf /var/tmp/sos*.tar.xz
echo "Check any file size that is 0 ..."
find sosreport*/ -type f -size 0
echo "Check any non INFO messages in sos.log ..."
grep -v "INFO:" sosreport*/sos_logs/sos.log
runcmd:
- [ /root/setup.sh ]