[Avocado-devel] Avocado 0.31.0 multi user problems

Cleber Rosa crosa at redhat.com
Thu Jan 7 20:58:04 UTC 2016



----- Original Message -----
> From: "Olav Philipp Henschel" <olavph at linux.vnet.ibm.com>
> To: avocado-devel at redhat.com
> Sent: Thursday, January 7, 2016 5:53:06 PM
> Subject: Re: [Avocado-devel] Avocado 0.31.0 multi user problems
> 
> 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
>      ...
> 

Since you're using sudo, can you try with absolute paths for the config
files? That way we may eliminate or confirm that sudo and its cwd are
playing a role here.

> $ 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
> >
> 
> _______________________________________________
> 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