Bug 1143550 - libvirt: Error starting domain: Requested operation is not valid: network 'default' is not active every time workstation is rebooted
Summary: libvirt: Error starting domain: Requested operation is not valid: network 'de...
Status: RESOLVED DUPLICATE of bug 1123699
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Leap 15.1
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Charles Arnold
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-31 07:29 UTC by Paolo Stivanin
Modified: 2019-08-05 13:49 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Stivanin 2019-07-31 07:29:40 UTC
Since the upgrade from Leap 15.0 to Leap 15.1, I get the following error when spawning a VM from virt-manager:

Error starting domain: Requested operation is not valid: network 'default' is not active
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 66, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1422, in startup
    self._backend.create()
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 1089, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active

How to reproduce (not sure if it's really reproducible, I don't have a spare bare metal host to try it):
* install leap 15.0
* set up some vms using virt-manager
* update to leap 15.1
* shutdown workstation and turn it on again
* open virt-manager, right click on a vm and then "run"
* the popup error appears

Workaround:
sudo virsh net-start default

As you can see the network should start on boot:
$ sudo virsh net-info default
Name:           default
UUID:           4d29642d-c3bf-4e69-98a3-2edcf4f66aed
Active:         no
Persistent:     yes
Autostart:      yes
Bridge:         virbr0
Comment 1 Paolo Stivanin 2019-07-31 07:33:54 UTC
# ls -l /etc/libvirt/qemu/networks/autostart/default.xml
lrwxrwxrwx 1 root root 38 Dec 14  2018 /etc/libvirt/qemu/networks/autostart/default.xml -> /etc/libvirt/qemu/networks/default.xml
Comment 2 Charles Arnold 2019-08-05 13:49:30 UTC
This bug seems to be the problem described in 1123699

*** This bug has been marked as a duplicate of bug 1123699 ***