[Avocado-devel] Avocado 0.31.0 multi user problems

Olav Philipp Henschel olavph at linux.vnet.ibm.com
Thu Jan 7 19:53:06 UTC 2016


Some extra info that might be useful.
I've tried setting the config file explicitly, and it looks like the 
--config parameter is not having any effect on vt-bootstrap:

$ sudo ./avocado/scripts/avocado --config 
avocado/etc/avocado/conf.d/pkvm.conf config
Config files read (in order):
     /home/powerkvm/ibm-kvm-tests/avocado/etc/avocado/avocado.conf
     /home/powerkvm/ibm-kvm-tests/avocado/etc/avocado/conf.d/gdb.conf
/home/powerkvm/ibm-kvm-tests/avocado/etc/avocado/conf.d/pkvm.conf
     avocado/etc/avocado/conf.d/pkvm.conf

     Section.Key                             Value
     datadir.paths.base_dir                  /home/olavph/avocado
     datadir.paths.test_dir /home/olavph/avocado/tests
     datadir.paths.data_dir /home/olavph/avocado/data
     datadir.paths.logs_dir /home/olavph/avocado/job-results
     ...

$ sudo ./avocado/scripts/avocado --config 
avocado/etc/avocado/conf.d/pkvm.conf vt-bootstrap --vt-type libvirt 
--vt-guest-os PowerKVM --yes-to-all
...
14:36:32 INFO | 4 - Verifying directories
14:36:32 DEBUG| Dir /var/avocado/data/avocado-vt/images exists, not creating
14:36:32 DEBUG| Dir /var/avocado/data/avocado-vt/isos exists, not creating
14:36:32 DEBUG| Dir /var/avocado/data/avocado-vt/steps_data exists, not 
creating
14:36:32 DEBUG| Dir /var/avocado/data/avocado-vt/gpg exists, not creating
14:36:32 INFO | Syncing backend dirs 
/home/olavph/ibm-kvm-tests/avocado-vt/backends -> 
/var/avocado/data/avocado-vt/backends
...

I have to run with sudo because I use the libvirt backend.


Olav

On 07-01-2016 16:43, Olav Philipp Henschel wrote:
> Hi,
>
> I've updated avocado to version 0.31.0 and got it to work using 
> "python setup.py develop". Everything worked fine until I tried to run 
> it from another user (with another local git clone).
> I've ran "python setup.py develop" from that user too to try to 
> overwrite whatever configurations were made. It keeps using the files 
> from the first user avocado-vt plugin folder however, getting its 
> tests provider and custom .cfgs.
> At some point I've ran "python setup.py install", so I'm not sure 
> which command made this mess.
> I've also tried using "python setup.py install" and "python setup.py 
> develop --user" from the second user.
>
> Is there any way I can make a clean install? Which folders does the 
> setup.py write to?
>
>
> Regards,
> Olav P. Henschel
>
> _______________________________________________
> Avocado-devel mailing list
> Avocado-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/avocado-devel
>




More information about the Avocado-devel mailing list