<div dir="ltr"><div>Hello, Lukas, Cleber,<br></div><div><br></div><div>Thanks for the answers. As far as I understand correctly Cleber uses CentOS</div><div>and I'm agree that everything works fine there, I checked it too.</div><div>But I uses Ubuntu (18.04) and latest Avocado-VT plugin (63.0) is broken there.</div><div>The problem is in latest changes for temporary directory hardcoded in virttest/data_dir.py - "/var/lib/libvirt/images". This directory is absent on my computer and on attempt to load avocado-vt plugin it failed on cleanup temp dir. It was a reason why option vt-bootstrap option was missed in output of command 'avocado plugins'. Don't know how to fix it properly but changing value "/tmp" resolves the problem.<br></div><div><br></div><div>Bug was introduced by commit:</div><div><br></div><div>commit 6a78795ddb63a7c39262188893a5b2223edf46dd<br>Author: Balamuruhan S <<a href="mailto:bala24@linux.vnet.ibm.com">bala24@linux.vnet.ibm.com</a>><br>Date:   Fri Mar 9 16:23:41 2018 +0530<br><br>    data_dir: handle get_tmp_dir for Ubuntu to avoid apparmor denial<br>    <br>    In ubuntu, apparmor deny libvirt operations from /tmp/* and /var/tmp/*<br>    and causes the tests to error/fail, suggested path is to use<br>    /var/lib/libvirt/images which is open by default.<br>    <br>    Signed-off-by: Satheesh Rajendran <<a href="mailto:sathnaga@linux.vnet.ibm.com">sathnaga@linux.vnet.ibm.com</a>><br>    Signed-off-by: Balamuruhan S <<a href="mailto:bala24@linux.vnet.ibm.com">bala24@linux.vnet.ibm.com</a>><br></div><div><br></div><div>P.S. also I have submitted a bug on GH - <a href="https://github.com/avocado-framework/avocado-vt/issues/1681">https://github.com/avocado-framework/avocado-vt/issues/1681</a><br></div><div><br></div><div>Sergey<br></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">чт, 26 июл. 2018 г. в 17:48, Lukáš Doktor <<a href="mailto:ldoktor@redhat.com">ldoktor@redhat.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dne 24.7.2018 v 20:04 Sergey Bronnikov napsal(a):<br>
> Hello!<br>
> <br>
> Avocado documentation describes installation from source code<br>
> to the whole system. I don't want to pollute system and use<br>
> separate virtual environment. In that case everything works fine<br>
> except tests discovering - command 'avocado list' reports nothing.<br>
> <br>
> My actions step by step:<br>
> (note: I am using vanilla avocado and customized avocado-vt, so avocado-vt<br>
> is<br>
> installed from source code not via pip)<br>
> <br>
> - virtualenv venv<br>
> - source<br>
> venv/bin/activate<br>
> - pip install -r requirements.txt<br>
> - git clone <a href="https://github.com/avocado-framework/avocado-vt" rel="noreferrer" target="_blank">https://github.com/avocado-framework/avocado-vt</a><br>
> - reset to 59.0 release: git reset --hard<br>
> fc84a49f20698126a4f283e89cff227a84abeb71<br>
> - sed -i -e 's/DESTDIR=/DESTDIR?=/g' avocado-vt/Makefile<br>
> - DESTDIR=venv make -C avocado-vt install link<br>
> - avocado vt-bootstrap<br>
> - avocado list<br>
> <br>
> where requirements.txt is:<br>
> $ cat requirements.txt<br>
> aexpect==1.5.1<br>
> autotest==0.16.4<br>
> avocado-framework==63.0<br>
> avocado-framework-plugin-varianter-yaml-to-mux==63.0<br>
> enum34==1.1.6<br>
> netaddr==0.7.19<br>
> netifaces==0.10.7<br>
> pbr==4.2.0<br>
> pkg-resources==0.0.0<br>
> PyYAML==3.13<br>
> six==1.11.0<br>
> stevedore==1.29.0<br>
> subprocess32==3.5.2<br>
> <br>
> <br>
> As I understand correctly installation to a separate virtualenv is not<br>
> popular<br>
> usecase but perhaps someone can help me.<br>
> <br>
<br>
Dear Sergey,<br>
<br>
it is popular and widely used, but unfortunately still a bit hackish in terms of configuration files. You don't need to change the DESTDIR as setuptools detect you're in virtualenv and put the files into the right location. The only missing piece here is hardcoded `/etc` configuration which I'm working on now (and neglecting for a while already).<br>
<br>
So as Cleber wrote, just install avocado, then `pip install .` and if you need to adjust `vt.conf` please copy `avocado-vt/etc/avocado/conf.d` files it into `/etc/avocado/conf.d/` until we resolve the <a href="https://trello.com/c/NxqPTjh2/1118-avocadovt-add-avocado-and-other-requirements" rel="noreferrer" target="_blank">https://trello.com/c/NxqPTjh2/1118-avocadovt-add-avocado-and-other-requirements</a><br>
<br>
Lukáš<br>
<br>
PS: When <a href="https://trello.com/c/NxqPTjh2/1118-avocadovt-add-avocado-and-other-requirements" rel="noreferrer" target="_blank">https://trello.com/c/NxqPTjh2/1118-avocadovt-add-avocado-and-other-requirements</a> is resolved the only step should be `pip install git+<a href="http://github.com/avocado-framework/avocado-vt@master" rel="noreferrer" target="_blank">http://github.com/avocado-framework/avocado-vt@master`</a> which will take care of all the deps. But there is still the `etc` config to take care of...<br>
<br>
> Sergey<br>
> <br>
<br>
<br>
</blockquote></div></div></div>