Bug 867546

Summary: fresh install of libvirt-daemon-config-network requires libvirtd restart to define+start default network
Product: [Fedora] Fedora Reporter: Eric Paris <eparis>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: berrange, bugzilla, clalancette, crobinso, dyuan, itamar, jforbes, laine, libvirt-maint, mprivozn, mzhan, reklov, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: libvirt- Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-09 00:03:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Paris 2012-10-17 16:43:43 UTC
Install F18

yum install -y virt-manager

This picks up libvirt including libvirt-daemon-config-network-0.10.2-3.fc18.x86_64

run virt-manager and find there is no network available. 
 virsh net-list --all    is blank

systemctl restart libvirtd.service

the default NAT network will be available.

Comment 1 Laine Stump 2012-10-17 17:27:57 UTC
So it seems that the problem is that the libvirt-daemon package is installed and started before the %post script for libvirt-deamon-config-network is run.

Perhaps that script should check for libvirtd already running and, if so, use virsh define instead of directly placing the file in /etc/libvirt?

Comment 2 Cole Robinson 2013-12-16 19:51:38 UTC
Still relevant on F20

Comment 3 Michal Privoznik 2015-04-21 13:53:05 UTC
Patch was proposed on the upstream list:


Comment 4 Cole Robinson 2015-05-25 21:19:46 UTC
*** Bug 1224398 has been marked as a duplicate of this bug. ***

Comment 5 Cole Robinson 2016-04-25 21:14:03 UTC
Round #2: http://www.redhat.com/archives/libvir-list/2016-April/msg01680.html

Comment 6 Fedora Update System 2016-05-05 12:52:42 UTC
libvirt- has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f5b59b4ca5

Comment 7 Fedora Update System 2016-05-06 11:27:40 UTC
libvirt- has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f5b59b4ca5

Comment 8 Fedora Update System 2016-05-09 00:03:19 UTC
libvirt- has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.