[Bugs] [Bug 1428839] New: run-tests-in-vagrant.sh does not work on Ubuntu

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 3 13:21:03 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1428839

            Bug ID: 1428839
           Summary: run-tests-in-vagrant.sh does not work on Ubuntu
           Product: GlusterFS
           Version: 3.10
         Component: tests
          Assignee: bugs at gluster.org
          Reporter: nh2-redhatbugzilla at deditus.de
                CC: bugs at gluster.org



The Fedora box used in run-tests-in-vagrant.sh only supports libvirt as
virtualisation provider, but for some reason vagrant on Ubuntu 16.04 (and
potentially other OSs or versions of vagrant) picks Virtualbox as provider even
if the box does not support it.

We can fix that with the following patch, speciftying `--provier libvirt`
explicitly:

diff --git a/run-tests-in-vagrant.sh b/run-tests-in-vagrant.sh
index 162b689..f5053a2 100755
--- a/run-tests-in-vagrant.sh
+++ b/run-tests-in-vagrant.sh
@@ -137,7 +137,7 @@ function start_vm()
 {
     echo "Doing vagrant up...."
     pushd "tests/vagrant/${BRANCHNAME}"
-    eval vagrant up $redirect
+    eval vagrant up --provider libvirt $redirect
     if [ $? -eq 0 ]
     then
             popd

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list