From 23c1766cdc12b1d6df0aa21a2f3ab4c551aae3ac Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 31 Aug 2015 10:45:46 -0400 Subject: [PATCH 1/2] [packaging] Lock vagrant to virtualbox Virtualbox is the default virtualization provier for vagrant but folks override that from time to time. If they do then the build will fail because the boxes used by the build don't usually support non-virtualbox providers. Closes #13217 --- qa/vagrant/src/dev/ant/vagrant-integration-tests.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/vagrant/src/dev/ant/vagrant-integration-tests.xml b/qa/vagrant/src/dev/ant/vagrant-integration-tests.xml index efed4960b5e..67b208803b9 100644 --- a/qa/vagrant/src/dev/ant/vagrant-integration-tests.xml +++ b/qa/vagrant/src/dev/ant/vagrant-integration-tests.xml @@ -68,6 +68,13 @@ That isn't to say that the updates will always be compatible. Its ok to just destroy the boxes if they get busted. --> + + + From fb561ce2286950cdd510de1977c9eb1cb6aaf738 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 31 Aug 2015 10:50:50 -0400 Subject: [PATCH 2/2] [docs] Lock vagrant to virtualbox --- TESTING.asciidoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/TESTING.asciidoc b/TESTING.asciidoc index 13ceef4bdd7..4329c88b59e 100644 --- a/TESTING.asciidoc +++ b/TESTING.asciidoc @@ -338,8 +338,8 @@ time to setup all the VMs one at a time. Run this to download and setup the VMs we use for testing by default: -------------------------------------------------------- -vagrant up --provision trusty && vagrant halt trusty -vagrant up --provision centos-7 && vagrant halt centos-7 +vagrant up --provision trusty --provider virtualbox && vagrant halt trusty +vagrant up --provision centos-7 --provider virtualbox && vagrant halt centos-7 -------------------------------------------------------- or run this to download and setup all the VMs: @@ -347,7 +347,7 @@ or run this to download and setup all the VMs: ------------------------------------------------------------------------------- vagrant halt for box in $(vagrant status | grep 'poweroff\|not created' | cut -f1 -d' '); do - vagrant up --provision $box + vagrant up --provision $box --provider virtualbox vagrant halt $box done ------------------------------------------------------------------------------- @@ -420,13 +420,13 @@ This is just regular vagrant so you can run normal multi box vagrant commands to test things manually. Just run: --------------------------------------- -vagrant up trusty && vagrant ssh trusty +vagrant up trusty --provider virtualbox && vagrant ssh trusty --------------------------------------- to get an Ubuntu or ------------------------------------------- -vagrant up centos-7 && vagrant ssh centos-7 +vagrant up centos-7 --provider virtualbox && vagrant ssh centos-7 ------------------------------------------- to get a CentOS. Once you are done with them you should halt them: @@ -469,7 +469,7 @@ vagrant ssh precise -c 'sudo rm -rf /bin'; echo oops All you've got to do to get another one is ---------------------------------------------- -vagrant destroy -f trusty && vagrant up trusty +vagrant destroy -f trusty && vagrant up trusty --provider virtualbox ---------------------------------------------- The whole process takes a minute and a half on a modern laptop, two and a half @@ -508,7 +508,7 @@ mvn -pl distribution/rpm package and in another window: ---------------------------------------------------- -vagrant up centos-7 && vagrant ssh centos-7 +vagrant up centos-7 --provider virtualbox && vagrant ssh centos-7 cd $RPM sudo bats $BATS/*rpm*.bats ---------------------------------------------------- @@ -520,7 +520,7 @@ If you wanted to retest all the release artifacts on a single VM you could: mvn -amd -pl distribution install -DskipTests # Copy them all the testroot mvn -Dtests.vagrant -pl qa/vagrant pre-integration-test -vagrant up trusty && vagrant ssh trusty +vagrant up trusty --provider virtualbox && vagrant ssh trusty cd $TESTROOT sudo bats $BATS/*.bats -------------------------------------------------