Bug 859041 - libvirt-daemon has a postinstall check for a file in libvirt-daemon-driver-network
Summary: libvirt-daemon has a postinstall check for a file in libvirt-daemon-driver-ne...
Status: RESOLVED FIXED
: 859980 (view as bug list)
Alias: None
Product: openSUSE 13.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Deadline: 2014-02-11
Assignee: James Fehlig
QA Contact: E-mail List
URL:
Whiteboard: maint:running:56039:moderate
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 15:02 UTC by Tim Hardeck
Modified: 2015-02-19 05:02 UTC (History)
6 users (show)

See Also:
Found By: Development
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 Tim Hardeck 2014-01-16 15:02:45 UTC
libvirt-daemon has a postinstall check for a file in the package libvirt-daemon-driver-network which isn't a dependency.

So the file /etc/libvirt/qemu/networks/default.xml will only be created if libvirt-daemon is reinstalled after installing libvirt-daemon-driver-network.


This is the libvirt-daemon post install snippet:
# Install the default network if one doesn't exist
if test ! -f /etc/libvirt/qemu/networks/default.xml
then
    UUID=`/usr/bin/uuidgen`
    sed -e "s,</name>,</name>\n  <uuid>$UUID</uuid>," \
         < /usr/share/libvirt/networks/default.xml \
         > /etc/libvirt/qemu/networks/default.xml
fi


$ rpm -qf /usr/share/libvirt/networks/default.xml
libvirt-daemon-driver-network-1.1.2-2.14.2.x86_64
Comment 1 James Fehlig 2014-01-21 01:42:02 UTC
Thanks for the report.

Although I didn't realize this problem existed, I planned to fix the underlying issue after asking about the need for a libvirt-daemon-config-network subpackage (which the RH folks have)

https://www.redhat.com/archives/libvir-list/2013-December/msg00920.html

I've added the daemon-config-network subpackage to the libvirt Factory devel project [1] and the 13.1 maintenance project [2].  Can you test the latter, from the maintenance project repo [3]?

[1] https://build.opensuse.org/package/show/Virtualization/libvirt
[2] https://build.opensuse.org/package/show/Virtualization:openSUSE13.1/libvirt
[3] http://download.opensuse.org/repositories/Virtualization:/openSUSE13.1/openSUSE_13.1/
Comment 2 Tim Hardeck 2014-01-22 09:20:49 UTC
Thx for your quick response.

I have tested the Virtualization repository and with this the default.xml is available by default so this fixes our issue.

Is it possible to release this correction as a maintenance update for 13.1?
Comment 3 James Fehlig 2014-01-22 16:57:55 UTC
Thanks for testing.  I have the fix queued for a 13.1 update, and will push to Factory and SLE12 alpha3 as well.

Sebastian, Benjamin, should this be included in the running 13.1 maintenance incident for libvirt?  Should I resubmit or save this for a subsequent update?
Comment 4 Bernhard Wiedemann 2014-01-23 00:00:33 UTC
This is an autogenerated message for OBS integration:
This bug (859041) was mentioned in
https://build.opensuse.org/request/show/214742 Factory / libvirt
Comment 8 James Fehlig 2014-01-27 15:30:23 UTC
*** Bug 859980 has been marked as a duplicate of this bug. ***
Comment 9 James Fehlig 2014-01-27 19:22:33 UTC
I added this bug to a list of bugs to be fixed in the next update.  See

https://bugzilla.novell.com/show_bug.cgi?id=858817#c5
Comment 10 Swamp Workflow Management 2014-01-28 08:26:27 UTC
The SWAMPID for this issue is 56039.
This issue was rated as moderate.
Please submit fixed packages until 2014-02-11.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 12 Swamp Workflow Management 2014-02-21 17:05:47 UTC
openSUSE-SU-2014:0268-1: An update that solves four vulnerabilities and has three fixes is now available.

Category: security (moderate)
Bug References: 817407,857271,857492,858817,858824,859041,859051
CVE References: CVE-2013-6457,CVE-2013-6458,CVE-2014-0028,CVE-2014-1447
Sources used:
openSUSE 13.1 (src):    libvirt-1.1.2-2.18.3