Bug 1369853

Summary: RFE: retrieve OS uptime via qemu guest-agent (libvirt)
Product: Red Hat Enterprise Linux 7 Reporter: Ademar Reis <areis>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: berrange, jdenemar, marcandre.lureau, pkrempa, rbalakri, virt-bugs, virt-maint
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1369850 Environment:
Last Closed: 2016-09-13 08:57:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1369850    
Bug Blocks:    

Description Ademar Reis 2016-08-24 14:34:30 UTC
+++ This bug was initially created as a clone of Bug #1369850 +++

The idea is simple: request the OS uptime via qemu-guest agent.

Some patches were submitted to upstream QEMU back in 2015, but never merged (nor reviewed, apparently):

https://lists.nongnu.org/archive/html/qemu-devel/2015-03/msg06125.html

Comment 1 Daniel Berrangé 2016-08-24 15:10:48 UTC
IMHO this should really be out of scope for QEMU guest agent / libvirt. The guest agent scope is really aimed at providing functions necessary for managing the operation of virtual machine. This is things like CPU hotplug, disk quiesce for snapshotting, and similar things.   Reporting guest OS uptime is getting into the area of managing the guest operating system. That area is absolutely enormous in scope and there are countless existing tools that fill that can role. As such IMHO it doesn't make sense to add uptime reporting into QEMU guest agent, nor libvirt.

Comment 2 Peter Krempa 2016-09-13 08:57:52 UTC
I agree with Comment 1. This is really getting into OS management scope.