[libvirt] [libvirt-perl PATCH 0/2] Updates to support recent upstream changes

Couple of patches to allow build/test to work with upstream top John Ferlan (2): Add support for VIR_SECRET_USAGE_TYPE_TLS Add support for ERR_AGENT_UNSYNCED Changes | 2 ++ Virt.xs | 2 ++ lib/Sys/Virt/Error.pm | 4 ++++ lib/Sys/Virt/Secret.pm | 7 +++++++ 4 files changed, 15 insertions(+) -- 2.7.4

Allows libvirt-perl to build with upstream libvirt. Signed-off-by: John Ferlan <jferlan@redhat.com> --- Changes | 1 + Virt.xs | 1 + lib/Sys/Virt/Secret.pm | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/Changes b/Changes index 650b40c..8eb298a 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ Revision history for perl module Sys::Virt - Add PERF_PARAM_CACHE_MISSES, PERF_PARAM_CACHE_REFERENCES, PERF_PARAM_CPU_CYCLES, PERF_PARAM_INSTRUCTIONS constants + - Add USAGE_TYPE_TLS 2.2.0 2016-09-05 diff --git a/Virt.xs b/Virt.xs index ac337ad..2206e40 100644 --- a/Virt.xs +++ b/Virt.xs @@ -8685,6 +8685,7 @@ BOOT: REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_VOLUME, USAGE_TYPE_VOLUME); REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_CEPH, USAGE_TYPE_CEPH); REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_ISCSI, USAGE_TYPE_ISCSI); + REGISTER_CONSTANT(VIR_SECRET_USAGE_TYPE_TLS, USAGE_TYPE_TLS); REGISTER_CONSTANT(VIR_CONNECT_LIST_SECRETS_EPHEMERAL, LIST_EPHEMERAL); diff --git a/lib/Sys/Virt/Secret.pm b/lib/Sys/Virt/Secret.pm index b871190..1f2defc 100644 --- a/lib/Sys/Virt/Secret.pm +++ b/lib/Sys/Virt/Secret.pm @@ -149,6 +149,13 @@ The constant for secrets which are to be used for authenticating to iSCSI storage volumes. The usage ID for secrets will refer to the server name. +=item Sys::Virt::Secret::USAGE_TYPE_TLS + +The constant for secrets which are to be used for authenticating +for the TLS environment. The usage ID for the secret can be any +name. The UUID for the secret will be used by the hypervisor to +fetch the secret value. + =back =head2 LIST FILTERING -- 2.7.4

On Fri, Sep 09, 2016 at 01:12:00PM -0400, John Ferlan wrote:
Allows libvirt-perl to build with upstream libvirt.
Signed-off-by: John Ferlan <jferlan@redhat.com> --- Changes | 1 + Virt.xs | 1 + lib/Sys/Virt/Secret.pm | 7 +++++++ 3 files changed, 9 insertions(+)
ACK Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

Allows libvirt-perl to build with upstream libvirt. Signed-off-by: John Ferlan <jferlan@redhat.com> --- Changes | 1 + Virt.xs | 1 + lib/Sys/Virt/Error.pm | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Changes b/Changes index 8eb298a..c346ad1 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,7 @@ Revision history for perl module Sys::Virt - Add PERF_PARAM_CACHE_MISSES, PERF_PARAM_CACHE_REFERENCES, PERF_PARAM_CPU_CYCLES, PERF_PARAM_INSTRUCTIONS constants - Add USAGE_TYPE_TLS + - Add ERR_AGENT_UNSYNCED 2.2.0 2016-09-05 diff --git a/Virt.xs b/Virt.xs index 2206e40..85ee4f9 100644 --- a/Virt.xs +++ b/Virt.xs @@ -8875,4 +8875,5 @@ BOOT: REGISTER_CONSTANT(VIR_ERR_AUTH_UNAVAILABLE, ERR_AUTH_UNAVAILABLE); REGISTER_CONSTANT(VIR_ERR_NO_SERVER, ERR_NO_SERVER); REGISTER_CONSTANT(VIR_ERR_NO_CLIENT, ERR_NO_CLIENT); + REGISTER_CONSTANT(VIR_ERR_AGENT_UNSYNCED, ERR_AGENT_UNSYNCED); } diff --git a/lib/Sys/Virt/Error.pm b/lib/Sys/Virt/Error.pm index db23f1e..39d3caf 100644 --- a/lib/Sys/Virt/Error.pm +++ b/lib/Sys/Virt/Error.pm @@ -796,6 +796,10 @@ Libvirt server was not found Libvirt client was not found +=item Sys::Virt::Error::ERR_AGENT_UNSYNCED + +Libvirt guest agent replies with wrong id to guest-sync command + =back =head1 AUTHORS -- 2.7.4

On Fri, Sep 09, 2016 at 01:12:01PM -0400, John Ferlan wrote:
Allows libvirt-perl to build with upstream libvirt.
Signed-off-by: John Ferlan <jferlan@redhat.com> --- Changes | 1 + Virt.xs | 1 + lib/Sys/Virt/Error.pm | 4 ++++ 3 files changed, 6 insertions(+)
ACK Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
participants (2)
-
Daniel P. Berrange
-
John Ferlan