avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
84 stars 242 forks source link

Can't launch io-github-autotest-libvirt tests #3288

Open SvetaO opened 2 years ago

SvetaO commented 2 years ago

Hello! I've tried to run avocado-vt with libvirt backend but can't figure out how to do it properly using official documentation. I get such error: avocado run --vt-type libvirt io-github-autotest-libvirt Could not resolve references: io-github-autotest-libvirt

Moreover, avocado shows no tests. avocado list -> empty

Maybe I'm doing something totally wrong, but according to https://avocado-vt.readthedocs.io/en/latest/WritingTests/TestProviders.html tp-libvirt test provider is on its place with proper configs.

tree -L 3 /root/avocado/data/avocado-vt/virttest/ /root/avocado/data/avocado-vt/virttest/ └── test-providers.d ├── downloads │   ├── io-github-autotest-libvirt │   ├── io-github-autotest-qemu │   └── io-github-spiceqa-spice ├── io-github-autotest-libvirt.ini ├── io-github-autotest-qemu.ini ├── io-github-spiceqa-spice.ini ├── myprovider.ini └── README

Bootstrap has also finished without errors.

Installation steps: yum install python3-pip python3 -m pip install --upgrade pip python3 -m pip install --upgrade Pillow python3 -m pip install avocado-framework yum install python3-devel dnf install xz tcpdump iproute iputils gcc glibc-headers nc git python3-netaddr python3-devel pip3 install git+https://github.com/avocado-framework/avocado-vt

yum install @virt yum install libvirt-devel virt-top libguestfs-tools systemctl enable libvirtd systemctl start libvirtd avocado vt-bootstrap --vt-type libvirt

Environment: uname -a Linux hci-0716.qa.sw.ru 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/os-release NAME="CentOS Linux" VERSION="8" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-8" CENTOS_MANTISBT_PROJECT_VERSION="8"

avocado -v Avocado 93.0

python3 -V Python 3.9.6

clebergnu commented 2 years ago

Hi @SvetaO,

Before I go into the documentation or try to reproduce your environment, I'd like to point you out to CI jobs such as:

https://cirrus-ci.com/task/5442522968227840

Which is bootstrapping Avocado-VT with the libvirt backend, and showing tests just fine. The "test reference" used for those CI jobs is "boot". Could you try using the same reference (that is, avocado list --vt-type=libvirt boot) just to make sure we're more or less on the same page?

Thanks.