Skip to content
This repository has been archived by the owner on Jul 29, 2018. It is now read-only.

Unable to run Cucumber tests against ADB and CDK using libvirt #309

Open
hferentschik opened this issue Jul 8, 2016 · 7 comments
Open
Assignees

Comments

@hferentschik
Copy link
Contributor

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 hferentschik added this to the v1.2.0 milestone Jul 8, 2016
@praveenkumar
Copy link

praveenkumar commented Jul 11, 2016

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

@coolbrg
Copy link
Contributor

coolbrg commented Jul 11, 2016

@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.

@hferentschik
Copy link
Contributor Author

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 hferentschik modified the milestones: v1.3.0, v1.2.0 Jul 11, 2016
@hferentschik
Copy link
Contributor Author

See also vagrant-libvirt/vagrant-libvirt#85

@praveenkumar
Copy link

@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

@hferentschik hferentschik modified the milestones: v1.3.0, v1.2.0 Jul 14, 2016
@dustymabe
Copy link

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 #335

@hferentschik
Copy link
Contributor Author

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 hferentschik modified the milestones: v1.4.0, v1.3.0 Jul 28, 2016
@hferentschik hferentschik removed this from the v1.4.0 milestone Oct 13, 2016
@coolbrg coolbrg changed the title Unable to run Cucumber tests against ADB and CDK using libvirt Unable to run Cucumber tests against ADB and CDK using libvirt alongwith virtualbox Oct 19, 2016
@coolbrg coolbrg changed the title Unable to run Cucumber tests against ADB and CDK using libvirt alongwith virtualbox Unable to run Cucumber tests against ADB and CDK using libvirt Oct 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants