Hello community, here is the log from the commit of package libvirt for openSUSE:Factory checked in at Mon May 16 11:13:57 CEST 2011.
-------- --- libvirt/libvirt.changes 2011-03-24 11:33:36.000000000 +0100 +++ /mounts/work_src_done/STABLE/libvirt/libvirt.changes 2011-05-06 16:29:16.000000000 +0200 @@ -1,0 +2,47 @@ +Thu May 5 19:01:54 MDT 2011 - [email protected] + +- Update to libvirt 0.9.1 + - support various persistent domain updates + - improvements on memory APIs + - Add virDomainEventRebootNew + - various improvements to libxl drive + - Spice: support audio, images and stream compression + +------------------------------------------------------------------- +Tue Apr 12 15:26:02 MDT 2011 - [email protected] + +- Move libvirt-iohelper from client to base package + +------------------------------------------------------------------- +Tue Apr 12 05:11:22 UTC 2011 - [email protected] + +- fix baselibs.conf not to requires source 32bit + +------------------------------------------------------------------- +Mon Apr 11 16:48:48 MDT 2011 - [email protected] + +- Install log dir for libxl + f7e9b448-libxl-build.patch + +------------------------------------------------------------------- +Mon Apr 4 16:02:23 MDT 2011 - [email protected] + +- Update to libvirt 0.9.0 final + - Support cpu usage tuning + - Add public APIs for storage volume upload/download + - Add public API for setting migration speed on the fly + - Add libxenlight driver + - qemu: support migration to fd + - add virDomain{Get,Set}BlkioParameters + - introduce a new libvirt API (virDomainSetMemoryFlags) + - Expose event loop implementation as a public API + - Dump the debug buffer to libvirtd.log on fatal signal + - Audit support + - Numerous enhancements and bug fixes + +------------------------------------------------------------------- +Thu Mar 31 14:16:17 MST 2011 - [email protected] + +- Update to libvirt 0.9.0 RC3 + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- 71753cb7-CVE-2011-1146.patch efc2594b-boot-param.patch libvirt-0.8.8.tar.bz2 use-libvirt-guests-on-suse.patch xen-domctl-ver7.patch New: ---- libvirt-0.9.1.tar.bz2 use-init-script-redhat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libvirt.spec ++++++ ++++ 768 lines (skipped) ++++ between libvirt/libvirt.spec ++++ and /mounts/work_src_done/STABLE/libvirt/libvirt.spec ++++++ baselibs.conf ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -1,2 +1,4 @@ libvirt-client + requires -libvirt-<targettype> libvirt-devel + requires -libvirt-<targettype> ++++++ clone.patch ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -2,7 +2,7 @@ =================================================================== --- src/lxc/lxc_container.c.orig +++ src/lxc/lxc_container.c -@@ -845,6 +845,9 @@ int lxcContainerStart(virDomainDefPtr de +@@ -883,6 +883,9 @@ int lxcContainerStart(virDomainDefPtr de lxc_child_argv_t args = { def, nveths, veths, control, ttyPath }; /* allocate a stack for the container */ @@ -12,7 +12,7 @@ if (VIR_ALLOC_N(stack, stacksize) < 0) { virReportOOMError(); return -1; -@@ -863,7 +866,11 @@ int lxcContainerStart(virDomainDefPtr de +@@ -901,7 +904,11 @@ int lxcContainerStart(virDomainDefPtr de flags |= CLONE_NEWNET; } @@ -22,9 +22,9 @@ pid = clone(lxcContainerChild, stacktop, flags, &args); +#endif VIR_FREE(stack); - DEBUG("clone() completed, new container PID is %d", pid); + VIR_DEBUG("clone() completed, new container PID is %d", pid); -@@ -889,6 +896,7 @@ int lxcContainerAvailable(int features) +@@ -928,6 +935,7 @@ int lxcContainerAvailable(int features) char *childStack; char *stack; int childStatus; @@ -32,7 +32,7 @@ if (features & LXC_CONTAINER_FEATURE_USER) flags |= CLONE_NEWUSER; -@@ -896,14 +904,21 @@ int lxcContainerAvailable(int features) +@@ -935,14 +943,21 @@ int lxcContainerAvailable(int features) if (features & LXC_CONTAINER_FEATURE_NET) flags |= CLONE_NEWNET; @@ -41,7 +41,7 @@ + stacksize *= 2; +#endif + if (VIR_ALLOC_N(stack, stacksize) < 0) { - DEBUG0("Unable to allocate stack"); + VIR_DEBUG0("Unable to allocate stack"); return -1; } ++++++ libvirt-0.8.8.tar.bz2 -> libvirt-0.9.1.tar.bz2 ++++++ libvirt/libvirt-0.8.8.tar.bz2 /mounts/work_src_done/STABLE/libvirt/libvirt-0.9.1.tar.bz2 differ: char 11, line 1 ++++++ libvirtd-defaults.patch ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -1,7 +1,7 @@ -Index: libvirt-0.8.6/daemon/libvirtd.conf +Index: libvirt-0.9.0/daemon/libvirtd.conf =================================================================== ---- libvirt-0.8.6.orig/daemon/libvirtd.conf -+++ libvirt-0.8.6/daemon/libvirtd.conf +--- libvirt-0.9.0.orig/daemon/libvirtd.conf ++++ libvirt-0.9.0/daemon/libvirtd.conf @@ -18,8 +18,8 @@ # It is necessary to setup a CA and issue server certificates before # using this capability. @@ -28,11 +28,11 @@ # Override the default mDNS advertizement name. This must be # unique on the immediate broadcast network. -Index: libvirt-0.8.6/daemon/libvirtd.c +Index: libvirt-0.9.0/daemon/libvirtd.c =================================================================== ---- libvirt-0.8.6.orig/daemon/libvirtd.c -+++ libvirt-0.8.6/daemon/libvirtd.c -@@ -147,7 +147,7 @@ static int sigwrite = -1; /* Signa +--- libvirt-0.9.0.orig/daemon/libvirtd.c ++++ libvirt-0.9.0/daemon/libvirtd.c +@@ -148,7 +148,7 @@ static int sigwrite = -1; /* Signa static int ipsock = 0; /* -l Listen for TCP/IP */ /* Defaults for configuration file elements */ @@ -41,7 +41,7 @@ static int listen_tcp = 0; static char *listen_addr = (char *) LIBVIRTD_LISTEN_ADDR; static char *tls_port = (char *) LIBVIRTD_TLS_PORT; -@@ -169,7 +169,7 @@ static int auth_tcp = REMOTE_AUTH_NONE; +@@ -170,7 +170,7 @@ static int auth_tcp = REMOTE_AUTH_NONE; #endif static int auth_tls = REMOTE_AUTH_NONE; ++++++ use-init-script-redhat.patch ++++++ Index: libvirt-0.9.1/tools/Makefile.am =================================================================== --- libvirt-0.9.1.orig/tools/Makefile.am +++ libvirt-0.9.1/tools/Makefile.am @@ -131,16 +131,17 @@ uninstall-local: uninstall-init if LIBVIRT_INIT_SCRIPT_RED_HAT install-init: libvirt-guests.init - mkdir -p $(DESTDIR)$(sysconfdir)/rc.d/init.d + mkdir -p $(DESTDIR)$(sysconfdir)/init.d $(INSTALL_SCRIPT) libvirt-guests.init \ - $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirt-guests - mkdir -p $(DESTDIR)$(sysconfdir)/sysconfig + $(DESTDIR)$(sysconfdir)/init.d/libvirt-guests + mkdir -p $(DESTDIR)$(localstatedir)/adm/fillup-templates $(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \ - $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests + $(DESTDIR)$(localstatedir)/adm/fillup-templates/sysconfig.libvirt-guests uninstall-init: - rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirt-guests \ - $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests + rm -f $(DESTDIR)$(sysconfdir)/init.d/libvirt-guests \ + $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests \ + $(DESTDIR)$(localstatedir)/adm/fillup-templates/sysconfig.libvirt-guests BUILT_SOURCES += libvirt-guests.init Index: libvirt-0.9.1/tools/libvirt-guests.sysconf =================================================================== --- libvirt-0.9.1.orig/tools/libvirt-guests.sysconf +++ libvirt-0.9.1/tools/libvirt-guests.sysconf @@ -1,18 +1,28 @@ +## Path: System/Virtualization/libvirt + +## Type: string +## Default: default # URIs to check for running guests # example: URIS='default xen:/// vbox+tcp://host/system lxc:///' -#URIS=default +URIS=default +## Type: string +## Default: start # action taken on host boot # - start all guests which were running on shutdown are started on boot # regardless on their autostart settings # - ignore libvirt-guests init script won't start any guest on boot, however, # guests marked as autostart will still be automatically started by # libvirtd -#ON_BOOT=start +ON_BOOT=start +## Type: integer +## Default: 0 # number of seconds to wait between each guest start -#START_DELAY=0 +START_DELAY=0 +## Type: string +## Default: suspend # action taken on host shutdown # - suspend all running guests are suspended using virsh managedsave # - shutdown all running guests are asked to shutdown. Please be careful with @@ -21,7 +31,9 @@ # which just needs a long time to shutdown. When setting # ON_SHUTDOWN=shutdown, you must also set SHUTDOWN_TIMEOUT to a # value suitable for your guests. -#ON_SHUTDOWN=suspend +ON_SHUTDOWN=suspend +## Type: integer +## Default: 120 # number of seconds we're willing to wait for a guest to shut down -#SHUTDOWN_TIMEOUT=0 +SHUTDOWN_TIMEOUT=120 Index: libvirt-0.9.1/tools/libvirt-guests.init.sh =================================================================== --- libvirt-0.9.1.orig/tools/libvirt-guests.init.sh +++ libvirt-0.9.1/tools/libvirt-guests.init.sh @@ -4,10 +4,10 @@ # ### BEGIN INIT INFO # Provides: libvirt-guests -# Required-Start: libvirtd -# Required-Stop: libvirtd -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 +# Required-Start: $network $remote_fs libvirtd +# Required-Stop: $network $remote_fs libvirtd +# Default-Start: 3 5 +# Default-Stop: 0 1 2 4 6 # Short-Description: suspend/resume libvirt guests on shutdown/boot # Description: This is a script for suspending active libvirt guests # on shutdown and resuming them on next boot @@ -24,14 +24,13 @@ # See http://libvirt.org # +. /etc/rc.status +rc_reset + sysconfdir="@sysconfdir@" localstatedir="@localstatedir@" libvirtd="@sbindir@"/libvirtd -# Source function library. -test ! -r "$sysconfdir"/rc.d/init.d/functions || - . "$sysconfdir"/rc.d/init.d/functions - # Source gettext library. # Make sure this file is recognized as having translations: _("dummy") . "@bindir@"/gettext.sh @@ -50,12 +49,10 @@ test -f "$sysconfdir"/sysconfig/libvirt- LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests -RETVAL=0 - retval() { "$@" if [ $? -ne 0 ]; then - RETVAL=1 + rc_failed 1 return 1 else return 0 @@ -77,12 +74,31 @@ run_virsh_c() { ( export LC_ALL=C; run_virsh "$@" ) } +await_daemon_up() +{ + uri=$1 + i=1 + rets=10 + run_virsh $uri list > /dev/null 2>&1 + while [ $? -ne 0 -a $i -lt $rets ]; do + sleep 1 + echo -n . + i=$(($i + 1)) + run_virsh $uri list > /dev/null 2>&1 + done + if [ $i -eq $rets ]; then + echo $"libvirt-guests unable to connect to URI: $uri" + return 1 + fi + return 0 +} + list_guests() { uri=$1 list=$(run_virsh_c "$uri" list) if [ $? -ne 0 ]; then - RETVAL=1 + rc_failed 1 return 1 fi @@ -90,7 +106,7 @@ list_guests() { for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do uuid=$(run_virsh_c "$uri" dominfo "$id" | awk '/^UUID:/{print $2}') if [ -z "$uuid" ]; then - RETVAL=1 + rc_failed 1 return 1 fi uuids="$uuids $uuid" @@ -117,7 +133,7 @@ guest_is_on() { guest_running=false info=$(run_virsh_c "$uri" dominfo "$uuid") if [ $? -ne 0 ]; then - RETVAL=1 + rc_failed 1 return 1 fi @@ -159,6 +175,12 @@ start() { continue fi + await_daemon_up $uri + if [ $? -ne 0 ]; then + echo $"Ignoring guests on $uri URI, can't connect" + continue + fi + eval_gettext "Resuming guests on \$uri URI..."; echo for guest in $list; do name=$(guest_name "$uri" "$guest") @@ -245,7 +267,7 @@ stop() { if [ $SHUTDOWN_TIMEOUT -le 0 ]; then gettext "Shutdown action requested but SHUTDOWN_TIMEOUT was not set" echo - RETVAL=6 + rc_failed 6 return fi fi @@ -315,14 +337,13 @@ gueststatus() { rh_status() { if [ -f "$LISTFILE" ]; then gettext "stopped, with saved guests"; echo - RETVAL=3 + rc_failed 3 else if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then gettext "started"; echo else gettext "stopped, with no saved guests"; echo fi - RETVAL=0 fi } @@ -366,4 +387,4 @@ case "$1" in usage ;; esac -exit $RETVAL +rc_exit Index: libvirt-0.9.1/daemon/Makefile.am =================================================================== --- libvirt-0.9.1.orig/daemon/Makefile.am +++ libvirt-0.9.1/daemon/Makefile.am @@ -281,16 +281,12 @@ install-logrotate: $(LOGROTATE_CONFS) if LIBVIRT_INIT_SCRIPT_RED_HAT install-init: libvirtd.init - mkdir -p $(DESTDIR)$(sysconfdir)/rc.d/init.d - $(INSTALL_SCRIPT) libvirtd.init \ - $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirtd - mkdir -p $(DESTDIR)$(sysconfdir)/sysconfig + mkdir -p $(DESTDIR)$(localstatedir)/adm/fillup-templates $(INSTALL_DATA) $(srcdir)/libvirtd.sysconf \ - $(DESTDIR)$(sysconfdir)/sysconfig/libvirtd + $(DESTDIR)$(localstatedir)/adm/fillup-templates/sysconfig.libvirtd uninstall-init: - rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/libvirtd \ - $(DESTDIR)$(sysconfdir)/sysconfig/libvirtd + rm -f $(DESTDIR)$(localstatedir)/adm/fillup-templates/sysconfig.libvirtd BUILT_SOURCES += libvirtd.init ++++++ xen-name-for-devid.patch ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -13,11 +13,11 @@ This approach allows removing a disk when domain is inactive. We obviously can't search xenstore when the domain is inactive. -Index: libvirt-0.8.8/src/xen/xend_internal.c +Index: libvirt-0.9.1/src/xen/xend_internal.c =================================================================== ---- libvirt-0.8.8.orig/src/xen/xend_internal.c -+++ libvirt-0.8.8/src/xen/xend_internal.c -@@ -89,6 +89,7 @@ xenDaemonFormatSxprOnePCI(virDomainHostd +--- libvirt-0.9.1.orig/src/xen/xend_internal.c ++++ libvirt-0.9.1/src/xen/xend_internal.c +@@ -62,6 +62,7 @@ static int virDomainXMLDevID(virDomainPtr domain, @@ -25,7 +25,7 @@ virDomainDeviceDefPtr dev, char *class, char *ref, -@@ -4088,7 +4089,7 @@ xenDaemonAttachDeviceFlags(virDomainPtr +@@ -2731,7 +2732,7 @@ xenDaemonAttachDeviceFlags(virDomainPtr sexpr = virBufferContentAndReset(&buf); @@ -34,7 +34,7 @@ /* device doesn't exist, define it */ ret = xend_op(domain->conn, domain->name, "op", "device_create", "config", sexpr, NULL); -@@ -4211,7 +4212,7 @@ xenDaemonUpdateDeviceFlags(virDomainPtr +@@ -2854,7 +2855,7 @@ xenDaemonUpdateDeviceFlags(virDomainPtr sexpr = virBufferContentAndReset(&buf); @@ -43,7 +43,7 @@ virXendError(VIR_ERR_OPERATION_INVALID, "%s", _("requested device does not exist")); goto cleanup; -@@ -4304,7 +4305,7 @@ xenDaemonDetachDeviceFlags(virDomainPtr +@@ -2947,7 +2948,7 @@ xenDaemonDetachDeviceFlags(virDomainPtr def, xml, VIR_DOMAIN_XML_INACTIVE))) goto cleanup; @@ -52,7 +52,7 @@ goto cleanup; if (dev->type == VIR_DOMAIN_DEVICE_HOSTDEV) { -@@ -6085,6 +6086,7 @@ error: +@@ -3900,6 +3901,7 @@ struct xenUnifiedDriver xenDaemonDriver */ static int virDomainXMLDevID(virDomainPtr domain, @@ -60,7 +60,7 @@ virDomainDeviceDefPtr dev, char *class, char *ref, -@@ -6093,8 +6095,12 @@ virDomainXMLDevID(virDomainPtr domain, +@@ -3908,8 +3910,12 @@ virDomainXMLDevID(virDomainPtr domain, xenUnifiedPrivatePtr priv = domain->conn->privateData; char *xref; char *tmp; @@ -73,7 +73,7 @@ if (dev->data.disk->driverName && STREQ(dev->data.disk->driverName, "tap")) strcpy(class, "tap"); -@@ -6104,19 +6110,21 @@ virDomainXMLDevID(virDomainPtr domain, +@@ -3919,19 +3925,21 @@ virDomainXMLDevID(virDomainPtr domain, else strcpy(class, "vbd"); ++++++ xen-pv-cdrom.patch ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -1,21 +1,21 @@ -Index: libvirt-0.8.8/src/xen/xend_internal.c +Index: libvirt-0.9.1/src/xenxs/xen_sxpr.c =================================================================== ---- libvirt-0.8.8.orig/src/xen/xend_internal.c -+++ libvirt-0.8.8/src/xen/xend_internal.c -@@ -1365,7 +1365,7 @@ error: +--- libvirt-0.9.1.orig/src/xenxs/xen_sxpr.c ++++ libvirt-0.9.1/src/xenxs/xen_sxpr.c +@@ -324,7 +324,7 @@ error: static int - xenDaemonParseSxprDisks(virDomainDefPtr def, - const struct sexpr *root, -- int hvm, -+ int hvm ATTRIBUTE_UNUSED, - int xendConfigVersion) + xenParseSxprDisks(virDomainDefPtr def, + const struct sexpr *root, +- int hvm, ++ int hvm ATTRIBUTE_UNUSED, + int xendConfigVersion) { const struct sexpr *cur, *node; -@@ -1412,7 +1412,6 @@ xenDaemonParseSxprDisks(virDomainDefPtr +@@ -371,7 +371,6 @@ xenParseSxprDisks(virDomainDefPtr def, /* There is a case without the uname to the CD-ROM device */ offset = strchr(dst, ':'); if (!offset || - !hvm || STRNEQ(offset, ":cdrom")) { - virXendError(VIR_ERR_INTERNAL_ERROR, + XENXS_ERROR(VIR_ERR_INTERNAL_ERROR, "%s", _("domain information incomplete, vbd has no src")); ++++++ xend-disk-order.patch ++++++ --- /var/tmp/diff_new_pack.OBchRs/_old 2011-05-16 11:03:40.000000000 +0200 +++ /var/tmp/diff_new_pack.OBchRs/_new 2011-05-16 11:03:40.000000000 +0200 @@ -1,8 +1,8 @@ -Index: libvirt-0.8.8/src/xen/xend_internal.c +Index: libvirt-0.9.1/src/xenxs/xen_sxpr.c =================================================================== ---- libvirt-0.8.8.orig/src/xen/xend_internal.c -+++ libvirt-0.8.8/src/xen/xend_internal.c -@@ -1383,20 +1383,24 @@ xenDaemonParseSxprDisks(virDomainDefPtr +--- libvirt-0.9.1.orig/src/xenxs/xen_sxpr.c ++++ libvirt-0.9.1/src/xenxs/xen_sxpr.c +@@ -342,20 +342,24 @@ xenParseSxprDisks(virDomainDefPtr def, const char *src = NULL; const char *dst = NULL; const char *mode = NULL; @@ -27,7 +27,7 @@ } if (VIR_ALLOC(disk) < 0) -@@ -1521,7 +1525,12 @@ xenDaemonParseSxprDisks(virDomainDefPtr +@@ -480,7 +484,13 @@ xenParseSxprDisks(virDomainDefPtr def, if (VIR_REALLOC_N(def->disks, def->ndisks+1) < 0) goto no_memory; @@ -38,6 +38,7 @@ + def->ndisks++; + } else + def->disks[def->ndisks++] = disk; ++ disk = NULL; } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
