Re: [python PATCHv2] examples: Add example to make guest agent lifecycle event useful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11.05.2015 10:46, Peter Krempa wrote:
> This example allows to use the guest agent event and metadata to track
> vCPU count set via the guest agent (agent-based onlining/offlining) and
> keep it persistent accross domain restarts.
> 
> The daemon listens for the agent lifecycle event, and if it's received
> it looks into doman's metadata to see whether a desired count was set
> and issues the guest agent command.
> ---
>  MANIFEST.in                               |   2 +
>  examples/README                           |   2 +
>  examples/guest-vcpus/guest-vcpu-daemon.py | 160 ++++++++++++++++++++++++++++++
>  examples/guest-vcpus/guest-vcpu.py        |  74 ++++++++++++++
>  4 files changed, 238 insertions(+)
>  create mode 100755 examples/guest-vcpus/guest-vcpu-daemon.py
>  create mode 100755 examples/guest-vcpus/guest-vcpu.py

I'm no pythonist, but the code works and it's just an example anyway, so
ACK.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]