Bug 2052376 - Vagrant up complains about "call to virConnectListAllNetworks failed" and doesn't spin the VM
Summary: Vagrant up complains about "call to virConnectListAllNetworks failed" and doe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: vagrant
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-09 06:53 UTC by Ludovic Hirlimann [:Paul-muadib]
Modified: 2022-02-10 06:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-10 06:39:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Vagrant file in my test directory (2.95 KB, text/plain)
2022-02-09 06:53 UTC, Ludovic Hirlimann [:Paul-muadib]
no flags Details

Description Ludovic Hirlimann [:Paul-muadib] 2022-02-09 06:53:02 UTC
Created attachment 1859986 [details]
Vagrant file in my test directory

Description of problem:

Vagrant doesn't spin up VM on a newly fresh Fedora35 install

Version-Release number of selected component (if applicable):

vagrant-libvirt-0.4.1-3.fc35.noarch
vagrant-2.2.16-2.fc35.noarch
libvirt-gconfig-4.0.0-3.fc35.x86_64
libvirt-glib-4.0.0-3.fc35.x86_64
libvirt-gobject-4.0.0-3.fc35.x86_64
libvirt-libs-7.6.0-5.fc35.x86_64
libvirt-daemon-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-core-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-disk-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-iscsi-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-iscsi-direct-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-logical-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-mpath-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-rbd-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-scsi-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-sheepdog-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-zfs-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-network-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-interface-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-nodedev-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-nwfilter-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-secret-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-gluster-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-storage-7.6.0-5.fc35.x86_64
libvirt-daemon-driver-qemu-7.6.0-5.fc35.x86_64
libvirt-daemon-kvm-7.6.0-5.fc35.x86_64
rubygem-ruby-libvirt-0.7.1-13.fc35.x86_64
rubygem-fog-libvirt-0.8.0-2.fc35.noarch
libvirt-daemon-config-network-7.6.0-5.fc35.x86_64
vagrant-libvirt-0.4.1-3.fc35.noarch
libvirt-client-7.6.0-5.fc35.x86_64
python3-libvirt-7.6.0-1.fc35.x86_64

How reproducible:

All the time (It's the second machine I'm having an issue with vagrant on a fresh install)

Steps to Reproduce:
Follow https://developer.fedoraproject.org/tools/vagrant/vagrant-libvirt.html to install vagrant

vagrant init generic/freebsd13

vagrant up

Actual results:
Bringing machine 'default' up with 'libvirt' provider...
==> default: Checking if box 'generic/freebsd13' version '3.6.8' is up to date...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Halting domain...
/usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/driver.rb:137:in `list_all_networks': Call to virConnectListAllNetworks failed: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock-ro': No such file or directory (Libvirt::RetrieveError)
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/driver.rb:137:in `get_ipaddress_from_system'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/driver.rb:97:in `get_domain_ipaddress'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/wait_till_up.rb:43:in `block (2 levels) in call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/util/retryable.rb:17:in `retryable'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/wait_till_up.rb:38:in `block in call'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/util/timer.rb:9:in `time'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/wait_till_up.rb:37:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/start_domain.rb:359:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/synced_folders.rb:87:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/delayed.rb:19:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/plugins/synced_folders/nfs/action_cleanup.rb:25:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb:12:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/set_boot_order.rb:78:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-libvirt-0.4.1/lib/vagrant-libvirt/action/create_networks.rb:31:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/provision.rb:80:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builder.rb:149:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `block in run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/util/busy.rb:19:in `busy'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/call.rb:53:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builder.rb:149:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `block in run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/util/busy.rb:19:in `busy'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/call.rb:53:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builder.rb:149:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `block in run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/util/busy.rb:19:in `busy'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/call.rb:53:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/box_check_outdated.rb:93:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/warden.rb:48:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/builder.rb:149:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `block in run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/util/busy.rb:19:in `busy'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/action/runner.rb:89:in `run'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/machine.rb:246:in `action_raw'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/machine.rb:215:in `block in action'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/environment.rb:614:in `lock'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/machine.rb:201:in `call'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/machine.rb:201:in `action'
	from /usr/share/vagrant/gems/gems/vagrant-2.2.16/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'




Expected results:

I can vagrant ssh to said box.

Additional info:

spotted these in the journal :
Feb 08 13:35:12 tenger virtqemud[3830]: libvirt version: 7.6.0, package: 5.fc35 (Fedora Project, 2021-12-16-17:57:31, )
Feb 08 13:35:12 tenger virtqemud[3830]: hostname: tenger
Feb 08 13:35:12 tenger virtqemud[3830]: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock-ro': No such file or directory
Feb 08 13:35:12 tenger virtqemud[3830]: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock-ro': No such file or directory
Feb 08 13:35:14 tenger avahi-daemon[1184]: Joining mDNS multicast group on interface tap0.IPv6 with address fe80::fc5a:87ff:fe80:d12c.
Feb 08 13:35:14 tenger avahi-daemon[1184]: New relevant interface tap0.IPv6 for mDNS.
Feb 08 13:35:14 tenger avahi-daemon[1184]: Registering new address record for fe80::fc5a:87ff:fe80:d12c on tap0.*.
Feb 08 13:35:14 tenger kernel: virbr0: port 1(tap0) entered learning state
Feb 08 13:35:16 tenger kernel: virbr0: port 1(tap0) entered forwarding state
Feb 08 13:35:16 tenger kernel: virbr0: topology change detected, propagating


[ludovic@tenger test]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 84:a9:38:6e:38:65 brd ff:ff:ff:ff:ff:ff
3: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 10:3d:1c:96:d5:43 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.38/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp0s20f3
       valid_lft 42235sec preferred_lft 42235sec
    inet6 2a01:e0a:abd:8a90:38e5:6eb5:4000:ffd3/64 scope global dynamic noprefixroute 
       valid_lft 86284sec preferred_lft 86284sec
    inet6 fe80::c169:d3fe:8352:f85a/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:17:15:21 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever

Comment 1 Ludovic Hirlimann [:Paul-muadib] 2022-02-10 06:39:28 UTC
so i ended up removing vagrant and libvirt an dfolllowing https://fedoramagazine.org/vagrant-qemukvm-fedora-devops-sysadmin/ that worked.


Note You need to log in before you can comment on or make changes to this bug.