Hello community, here is the log from the commit of package perl-Sys-Virt for openSUSE:Factory checked in at 2019-04-17 10:07:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sys-Virt (Old) and /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new.17052 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Sys-Virt" Wed Apr 17 10:07:31 2019 rev:69 rq:693790 version:5.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sys-Virt/perl-Sys-Virt.changes 2019-03-13 09:11:56.199407131 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Sys-Virt.new.17052/perl-Sys-Virt.changes 2019-04-17 10:07:32.998723307 +0200 @@ -1,0 +2,6 @@ +Wed Apr 3 21:06:46 UTC 2019 - James Fehlig <jfehlig@suse.com> + +- Update to 5.2.0 + - Add all new APIs and constants in libvirt 5.2.0 + +------------------------------------------------------------------- Old: ---- Sys-Virt-v5.1.0.tar.gz New: ---- Sys-Virt-v5.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sys-Virt.spec ++++++ --- /var/tmp/diff_new_pack.3giib7/_old 2019-04-17 10:07:34.530725075 +0200 +++ /var/tmp/diff_new_pack.3giib7/_new 2019-04-17 10:07:34.530725075 +0200 @@ -17,7 +17,7 @@ Name: perl-Sys-Virt -Version: 5.1.0 +Version: 5.2.0 Release: 0 %define cpan_name Sys-Virt Summary: Represent and manage a libvirt hypervisor connection ++++++ Sys-Virt-v5.1.0.tar.gz -> Sys-Virt-v5.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/Build.PL new/Sys-Virt-v5.2.0/Build.PL --- old/Sys-Virt-v5.1.0/Build.PL 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/Build.PL 2019-04-03 18:44:19.000000000 +0200 @@ -17,7 +17,7 @@ use strict; use warnings; -my $libvirtver = "5.1.0"; +my $libvirtver = "5.2.0"; my $stat = system "pkg-config --atleast-version=$libvirtver libvirt"; die "cannot run pkg-config to check libvirt version" if $stat == -1; die "libvirt >= $libvirtver is required\n" unless $stat == 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/Changes new/Sys-Virt-v5.2.0/Changes --- old/Sys-Virt-v5.1.0/Changes 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/Changes 2019-04-03 18:44:19.000000000 +0200 @@ -1,5 +1,14 @@ Revision history for perl module Sys::Virt +5.2.0 2019-04-03 + + - Add VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL constant + - Add VIR_ERR_INVALID_DOMAIN_CHECKPOINT, VIR_ERR_NO_DOMAIN_BACKUP, + VIR_ERR_NO_DOMAIN_CHECKPOINT constants + - Add VIR_FROM_DOMAIN_CHECKPOINT constant + - Add VIR_MIGRATE_PARALLEL and VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS + constants + 5.1.0 2019-03-04 - Add VIR_FROM_FIREWALLD constant @@ -7,6 +16,7 @@ - Add VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY constant - Add VIR_DOMAIN_SAVE_IMAGE_XML_SECURE and VIR_DOMAIN_SNAPSHOT_XML_SECURE constants + - Add virConnectGetStoragePoolCapabilities binding 5.0.0 2019-01-21 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/META.json new/Sys-Virt-v5.2.0/META.json --- old/Sys-Virt-v5.1.0/META.json 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/META.json 2019-04-03 18:44:19.000000000 +0200 @@ -41,7 +41,7 @@ "provides" : { "Sys::Virt" : { "file" : "lib/Sys/Virt.pm", - "version" : "v5.1.0" + "version" : "v5.2.0" }, "Sys::Virt::Domain" : { "file" : "lib/Sys/Virt/Domain.pm" @@ -94,6 +94,6 @@ }, "x_MailingList" : "http://www.redhat.com/mailman/listinfo/libvir-list" }, - "version" : "v5.1.0", + "version" : "v5.2.0", "x_serialization_backend" : "JSON::PP version 2.97001" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/META.yml new/Sys-Virt-v5.2.0/META.yml --- old/Sys-Virt-v5.1.0/META.yml 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/META.yml 2019-04-03 18:44:19.000000000 +0200 @@ -24,7 +24,7 @@ provides: Sys::Virt: file: lib/Sys/Virt.pm - version: v5.1.0 + version: v5.2.0 Sys::Virt::Domain: file: lib/Sys/Virt/Domain.pm Sys::Virt::DomainSnapshot: @@ -58,5 +58,5 @@ homepage: http://libvirt.org/ license: http://www.gnu.org/licenses/gpl.html repository: https://libvirt.org/git/?p=libvirt-perl.git;a=summary -version: v5.1.0 +version: v5.2.0 x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/README new/Sys-Virt-v5.2.0/README --- old/Sys-Virt-v5.1.0/README 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/README 2019-04-03 18:44:19.000000000 +0200 @@ -8,6 +8,6 @@ Module::Build buld system. For installation instructions, consult the INSTALL file. -The current minimum required version of libvirt is 5.1.0 +The current minimum required version of libvirt is 5.2.0 -- End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/examples/node-info.pl new/Sys-Virt-v5.2.0/examples/node-info.pl --- old/Sys-Virt-v5.1.0/examples/node-info.pl 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/examples/node-info.pl 2019-04-03 18:44:19.000000000 +0200 @@ -4,6 +4,8 @@ use warnings; use Sys::Virt; +use XML::XPath; +use XML::XPath::XMLParser; my $addr = @ARGV ? shift @ARGV : ""; @@ -33,5 +35,16 @@ print "\n"; } +my $poolCaps = $hv->get_storage_pool_capabilities(); +my @poolTypes = (); + +my $xp = XML::XPath->new(xml => $poolCaps); +my $nodeset = $xp->find('/storagepoolCapabilities/pool[@supported="yes"]/@type'); +foreach my $node ($nodeset->get_nodelist) { + push (@poolTypes, $node->getNodeValue()); +} + +print "Supported pool types: @poolTypes\n"; + my $xml = $hv->get_domain_capabilities(undef, "x86_64", undef, "kvm"); print $xml; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/lib/Sys/Virt/Domain.pm new/Sys-Virt-v5.2.0/lib/Sys/Virt/Domain.pm --- old/Sys-Virt-v5.1.0/lib/Sys/Virt/Domain.pm 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/lib/Sys/Virt/Domain.pm 2019-04-03 18:44:19.000000000 +0200 @@ -1137,6 +1137,10 @@ The additional percentage step size to throttle guest vCPUs if progress is not made +=item CSys::Virt::Domain::MIGRATE_PARAM_PARALLEL_CONNECTIONS + +The number of connections used during parallel migration. + =back =item $ddom = $dom->migrate(destcon, flags=0, dname=undef, uri=undef, bandwidth=0) @@ -2540,6 +2544,12 @@ the migration. If incorrectly configured on either source or destination, the migration will fail. +=item Sys::Virt::Domain::MIGRATE_PARALLEL + +Send memory pages to the destination host through several network +connections. See CSys::Virt::Domain::MIGRATE_PARAM_PARALLEL_* +parameters for configuring the parallel migration. + =back =head2 UNDEFINE CONSTANTS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/lib/Sys/Virt/DomainSnapshot.pm new/Sys-Virt-v5.2.0/lib/Sys/Virt/DomainSnapshot.pm --- old/Sys-Virt-v5.1.0/lib/Sys/Virt/DomainSnapshot.pm 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/lib/Sys/Virt/DomainSnapshot.pm 2019-04-03 18:44:19.000000000 +0200 @@ -268,6 +268,11 @@ Only list snapshots taken while the guest was running, which did not include memory state. +=item Sys::Virt::DomainSnapshot::LIST_TOPOLOGICAL + +Sort list in topological order wrt to parent/child +relationships. + =back diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/lib/Sys/Virt/Error.pm new/Sys-Virt-v5.2.0/lib/Sys/Virt/Error.pm --- old/Sys-Virt-v5.1.0/lib/Sys/Virt/Error.pm 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/lib/Sys/Virt/Error.pm 2019-04-03 18:44:19.000000000 +0200 @@ -410,6 +410,10 @@ The firewalld service +=item Sys::Virt::Error::FROM_DOMAIN_CHECKPOINT + +The domain checkpoint + =back =head2 ERROR CODE CONSTANTS @@ -828,6 +832,18 @@ No nwfilter binding +=item Sys::Virt::Error::ERR_INVALID_DOMAIN_CHECKPOINT + +Invalid domain checkpoint + +=item Sys::Virt::Error::ERR_NO_DOMAIN_BACKUP + +Domain checkpoint not found + +=item Sys::Virt::Error::ERR_NO_DOMAIN_CHECKPOINT + +Domain backup job id not found + =back =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/lib/Sys/Virt.pm new/Sys-Virt-v5.2.0/lib/Sys/Virt.pm --- old/Sys-Virt-v5.1.0/lib/Sys/Virt.pm 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/lib/Sys/Virt.pm 2019-04-03 18:44:19.000000000 +0200 @@ -79,7 +79,7 @@ use Sys::Virt::DomainSnapshot; use Sys::Virt::Stream; -our $VERSION = '5.1.0'; +our $VERSION = '5.2.0'; require XSLoader; XSLoader::load('Sys::Virt', $VERSION); @@ -1869,6 +1869,12 @@ optional name of the virtualization type. C<$flags> is unused and defaults to zero. +=item my $xml = $con->get_storage_pool_capabilities($flags=0); + +Returns an XML document describing the storage pool driver +capabilities (e.g. which storage pool types are supported and so +on). C<$flags> is currently unused and defaults to zero. + =item my $result = $con->compare_cpu($xml, $flags=0); Checks whether the CPU definition in C<$xml> is compatible with the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/lib/Sys/Virt.xs new/Sys-Virt-v5.2.0/lib/Sys/Virt.xs --- old/Sys-Virt-v5.1.0/lib/Sys/Virt.xs 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/lib/Sys/Virt.xs 2019-04-03 18:44:19.000000000 +0200 @@ -2775,6 +2775,22 @@ SV * +get_storage_pool_capabilities(con, flags=0) + virConnectPtr con; + unsigned int flags; +PREINIT: + char *xml; + CODE: + if (!(xml = virConnectGetStoragePoolCapabilities(con, flags))) + _croak_error(); + + RETVAL = newSVpv(xml, 0); + free(xml); + OUTPUT: + RETVAL + + +SV * compare_cpu(con, xml, flags=0) virConnectPtr con; char *xml; @@ -8815,6 +8831,7 @@ REGISTER_CONSTANT(VIR_MIGRATE_RDMA_PIN_ALL, MIGRATE_RDMA_PIN_ALL); REGISTER_CONSTANT(VIR_MIGRATE_POSTCOPY, MIGRATE_POSTCOPY); REGISTER_CONSTANT(VIR_MIGRATE_TLS, MIGRATE_TLS); + REGISTER_CONSTANT(VIR_MIGRATE_PARALLEL, MIGRATE_PARALLEL); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH, MIGRATE_PARAM_BANDWIDTH); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_DEST_NAME, MIGRATE_PARAM_DEST_NAME); @@ -8833,6 +8850,7 @@ REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL, MIGRATE_PARAM_AUTO_CONVERGE_INITIAL); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT, MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY, MIGRATE_PARAM_BANDWIDTH_POSTCOPY); + REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS, MIGRATE_PARAM_PARALLEL_CONNECTIONS); REGISTER_CONSTANT(VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY, MIGRATE_MAX_SPEED_POSTCOPY); @@ -9442,6 +9460,7 @@ REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL, LIST_EXTERNAL); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL, LIST_INTERNAL); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY, LIST_DISK_ONLY); + REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL, LIST_TOPOLOGICAL); REGISTER_CONSTANT(VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING, REVERT_RUNNING); @@ -9726,6 +9745,7 @@ REGISTER_CONSTANT(VIR_FROM_LIBSSH, FROM_LIBSSH); REGISTER_CONSTANT(VIR_FROM_RESCTRL, FROM_RESCTRL); REGISTER_CONSTANT(VIR_FROM_FIREWALLD, FROM_FIREWALLD); + REGISTER_CONSTANT(VIR_FROM_DOMAIN_CHECKPOINT, FROM_DOMAIN_CHECKPOINT); REGISTER_CONSTANT(VIR_ERR_OK, ERR_OK); @@ -9830,4 +9850,7 @@ REGISTER_CONSTANT(VIR_ERR_DEVICE_MISSING, ERR_DEVICE_MISSING); REGISTER_CONSTANT(VIR_ERR_INVALID_NWFILTER_BINDING, ERR_INVALID_NWFILTER_BINDING); REGISTER_CONSTANT(VIR_ERR_NO_NWFILTER_BINDING, ERR_NO_NWFILTER_BINDING); + REGISTER_CONSTANT(VIR_ERR_INVALID_DOMAIN_CHECKPOINT, ERR_INVALID_DOMAIN_CHECKPOINT); + REGISTER_CONSTANT(VIR_ERR_NO_DOMAIN_BACKUP, ERR_NO_DOMAIN_BACKUP); + REGISTER_CONSTANT(VIR_ERR_NO_DOMAIN_CHECKPOINT, ERR_NO_DOMAIN_CHECKPOINT); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/perl-Sys-Virt.spec new/Sys-Virt-v5.2.0/perl-Sys-Virt.spec --- old/Sys-Virt-v5.1.0/perl-Sys-Virt.spec 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/perl-Sys-Virt.spec 2019-04-03 18:44:19.000000000 +0200 @@ -1,13 +1,12 @@ # Automatically generated by perl-Sys-Virt.spec.PL Name: perl-Sys-Virt -Version: 5.1.0 +Version: 5.2.0 Release: 1%{?dist} Summary: Represent and manage a libvirt hypervisor connection License: GPLv2+ or Artistic URL: https://metacpan.org/release/Sys-Virt Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Build BuildRequires: coreutils BuildRequires: findutils diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sys-Virt-v5.1.0/perl-Sys-Virt.spec.PL new/Sys-Virt-v5.2.0/perl-Sys-Virt.spec.PL --- old/Sys-Virt-v5.1.0/perl-Sys-Virt.spec.PL 2019-03-04 18:46:21.000000000 +0100 +++ new/Sys-Virt-v5.2.0/perl-Sys-Virt.spec.PL 2019-04-03 18:44:19.000000000 +0200 @@ -33,7 +33,6 @@ License: GPLv2+ or Artistic URL: https://metacpan.org/release/Sys-Virt Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Build BuildRequires: coreutils BuildRequires: findutils ++++++ suse-set-migration-constraints.patch ++++++ --- /var/tmp/diff_new_pack.3giib7/_old 2019-04-17 10:07:34.634725196 +0200 +++ /var/tmp/diff_new_pack.3giib7/_new 2019-04-17 10:07:34.634725196 +0200 @@ -2,13 +2,13 @@ References: fate#316614, bsc#859868 -Index: Sys-Virt-v5.1.0/lib/Sys/Virt/Domain.pm +Index: Sys-Virt-v5.2.0/lib/Sys/Virt/Domain.pm =================================================================== ---- Sys-Virt-v5.1.0.orig/lib/Sys/Virt/Domain.pm -+++ Sys-Virt-v5.1.0/lib/Sys/Virt/Domain.pm -@@ -1137,6 +1137,22 @@ The initial percentage to throttle guest - The additional percentage step size to throttle guest vCPUs if - progress is not made +--- Sys-Virt-v5.2.0.orig/lib/Sys/Virt/Domain.pm ++++ Sys-Virt-v5.2.0/lib/Sys/Virt/Domain.pm +@@ -1141,6 +1141,22 @@ progress is not made + + The number of connections used during parallel migration. +=item CSys::Virt::Domain::MIGRATE_PARAM_SUSE_MAX_ITERS + @@ -29,11 +29,11 @@ =back =item $ddom = $dom->migrate(destcon, flags=0, dname=undef, uri=undef, bandwidth=0) -Index: Sys-Virt-v5.1.0/lib/Sys/Virt.xs +Index: Sys-Virt-v5.2.0/lib/Sys/Virt.xs =================================================================== ---- Sys-Virt-v5.1.0.orig/lib/Sys/Virt.xs -+++ Sys-Virt-v5.1.0/lib/Sys/Virt.xs -@@ -5321,7 +5321,7 @@ _migrate(dom, destcon, newparams, flags= +--- Sys-Virt-v5.2.0.orig/lib/Sys/Virt.xs ++++ Sys-Virt-v5.2.0/lib/Sys/Virt.xs +@@ -5337,7 +5337,7 @@ _migrate(dom, destcon, newparams, flags= virTypedParameterPtr params; int nparams; CODE: @@ -42,7 +42,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5388,6 +5388,22 @@ _migrate(dom, destcon, newparams, flags= +@@ -5404,6 +5404,22 @@ _migrate(dom, destcon, newparams, flags= VIR_TYPED_PARAM_FIELD_LENGTH); params[15].type = VIR_TYPED_PARAM_ULLONG; @@ -65,7 +65,7 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -5416,7 +5432,7 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5432,7 +5448,7 @@ _migrate_to_uri(dom, desturi, newparams, virTypedParameterPtr params; int nparams; PPCODE: @@ -74,7 +74,7 @@ Newx(params, nparams, virTypedParameter); strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, -@@ -5479,10 +5495,26 @@ _migrate_to_uri(dom, desturi, newparams, +@@ -5495,10 +5511,26 @@ _migrate_to_uri(dom, desturi, newparams, VIR_TYPED_PARAM_FIELD_LENGTH); params[14].type = VIR_TYPED_PARAM_INT; @@ -102,8 +102,8 @@ nparams = vir_typed_param_from_hv(newparams, params, nparams); vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, -@@ -8835,6 +8867,10 @@ BOOT: - REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY, MIGRATE_PARAM_BANDWIDTH_POSTCOPY); +@@ -8853,6 +8885,10 @@ BOOT: + REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS, MIGRATE_PARAM_PARALLEL_CONNECTIONS); REGISTER_CONSTANT(VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY, MIGRATE_MAX_SPEED_POSTCOPY); + REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_SUSE_MAX_ITERS, MIGRATE_PARAM_SUSE_MAX_ITERS);