gluster / gluster-block

A framework for gluster block storage
GNU General Public License v2.0
74 stars 32 forks source link

vagrant: disable QEMU session support #278

Closed pkalever closed 4 years ago

pkalever commented 4 years ago

What does this PR achieve? Why do we need it?

vagrant-libvirt supports using QEMU user sessions to maintain Vagrant VMs, and some distros turn it ON by default.

After upgrading to Fedora32 I have noticed vagrant up fails with a huge call trace and disabling QEMU session worked.

More read: https://github.com/vagrant-libvirt/vagrant-libvirt#qemu-session-support https://fedoraproject.org/wiki/Changes/Vagrant_2.2_with_QEMU_Session

Signed-off-by: Prasanna Kumar Kalever \prasanna.kalever@redhat.com\

pkalever commented 4 years ago

Errors look like:

[0] 😎 04:53:06📂gluster-block✨ vagrant up                                                                            
Bringing machine 'initiator' up with 'libvirt' provider...                                                             
Bringing machine 'server1' up with 'libvirt' provider...
Bringing machine 'server2' up with 'libvirt' provider...                                                               
Bringing machine 'server3' up with 'libvirt' provider...                                                               
==> initiator: Checking if box 'centos/7' version '2004.01' is up to date...                                           
==> server3: Checking if box 'centos/7' version '2004.01' is up to date...                                             
==> server2: Checking if box 'centos/7' version '2004.01' is up to date...
==> server1: Checking if box 'centos/7' version '2004.01' is up to date...
==> server3: Starting domain.                  
==> server1: Starting domain.                                                                                          
==> server2: Starting domain.                              
==> server3: An error occurred. The error will be shown after all tasks complete.
==> server1: An error occurred. The error will be shown after all tasks complete.
==> server2: An error occurred. The error will be shown after all tasks complete.
==> initiator: Starting domain.                                                                                        
==> initiator: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.                              
Any errors that occurred are shown below.                                                                              

An error occurred while executing the action on the 'initiator'
machine. Please handle this error then try again:

There was an error talking to Libvirt. The error message is shown
below:                                                 

Call to virDomainCreateWithFlags failed: Requested operation is not valid: network 'vagrant-libvirt' is not active

An error occurred while executing the action on the 'server1'
machine. Please handle this error then try again:  

There was an error talking to Libvirt. The error message is shown
below:                                                                                                                 

Call to virDomainCreateWithFlags failed: Requested operation is not valid: network 'vagrant-libvirt' is not active

An error occurred while executing the action on the 'server2'                                                          
machine. Please handle this error then try again:          

There was an error talking to Libvirt. The error message is shown                                                      
below:                                                     

Call to virDomainCreateWithFlags failed: Requested operation is not valid: network 'vagrant-libvirt' is not active     

An error occurred while executing the action on the 'server3'
machine. Please handle this error then try again:

There was an error talking to Libvirt. The error message is shown
below:

Call to virDomainCreateWithFlags failed: Requested operation is not valid: network 'vagrant-libvirt' is not active
mykaul commented 4 years ago

Had a similar experience, and disabled it as well in my Vagrantfile (https://github.com/mykaul/vg/blob/b15aee6d437ed7ca7b8bf16a5425d89e35624118/Vagrantfile#L41 )

pkalever commented 4 years ago

@mykaul that helps, thanks!