vagrant-service-manager icon indicating copy to clipboard operation
vagrant-service-manager copied to clipboard

Unable to run Cucumber tests against ADB and CDK using libvirt

Open hferentschik opened this issue 9 years ago • 7 comments

Using something like

$ bundle exec rake features BOX=cdk,adb PROVIDER=libvirt 

fails, whereas

$ bundle exec rake features BOX=cdk,adb PROVIDER=virtualbox 

works.

The underlying problems is most likely somewhere in the underlying kvm/qemu which also caches virtual machines. The tests will alternate between adb and cdk boxes, but I think that on libvirt always the same box is used. We might need to clean kvm.qemu after each run.

hferentschik avatar Jul 08 '16 19:07 hferentschik

@hferentschik if these tests are running on the same setup then we have to clean vagrant box after each run.

praveenkumar avatar Jul 11 '16 06:07 praveenkumar

@praveenkumar We are doing "vagrant destroy" on every cucumber file (.feature). These are happening automatically along with execution of acceptance test. Also, there are CLI to clean the garbage.

brgnepal avatar Jul 11 '16 06:07 brgnepal

if these tests are running on the same setup then we have to clean vagrant box after each run.

I think it is more kvm/qemu. I ran into this before and I seem to recall that someone (Dusty!?) wrote an email about it as well once. I just cannot remember the right commands atm.

hferentschik avatar Jul 11 '16 09:07 hferentschik

See also https://github.com/vagrant-libvirt/vagrant-libvirt/issues/85

hferentschik avatar Jul 13 '16 21:07 hferentschik

@hferentschik So what I usually end up doing is execute below commands in case of libvirt provider to get clean environment for next test.

# vagrant destroy -f && rm -fr .vagrant
# rm -fr /var/lib/libvirt/images/*_0.img && systemctl restart libvirtd

praveenkumar avatar Jul 14 '16 09:07 praveenkumar

you need to have vagrant-libvirt in the plugins definition in the Gem file in order to load the libvirt plugin when running bundle exec vagrant.

see https://github.com/projectatomic/vagrant-service-manager/issues/335

dustymabe avatar Jul 15 '16 12:07 dustymabe

you need to have vagrant-libvirt in the plugins definition in the Gem file in order to load the libvirt plugin when running bundle exec vagrant.

vagrant-libvirt is already added and the CentOS CI environment already runs against the libvirt provider. The problems lies somewhere else.

hferentschik avatar Jul 25 '16 15:07 hferentschik