Bug 1551350

Summary: [RFE] Add support for querying information from QEMU Guest Agent
Product: [oVirt] vdsm Reporter: Tomáš Golembiovský <tgolembi>
Component: CoreAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: high    
Version: 4.20.8CC: bugs, lsvaty, lveyde, michal.skrivanek, tgolembi
Target Milestone: ovirt-4.2.3Keywords: FutureFeature
Target Release: ---Flags: rule-engine: ovirt-4.2?
pmatyas: testing_plan_complete+
rule-engine: planning_ack?
rule-engine: devel_ack+
lsvaty: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm v4.20.27.1 Doc Type: Enhancement
Doc Text:
It is now possible to obtain infomation like hostname, OS info, time zone and active users on VMs where ovirt-guest-agent is not installed and only QEMU Guest Agent is present.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:30:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1566059, 1569013    
Bug Blocks:    

Description Tomáš Golembiovský 2018-03-05 00:17:35 UTC
Add support for querying the following information from QEMU Guest Agent:

- host name
- operating system
- time zone
- active users

Comment 1 Petr Matyáš 2018-03-19 10:06:39 UTC
Can you please provide feature page or proper description of this feature so I can consider making a test plan.

Comment 2 Michal Skrivanek 2018-03-19 19:24:25 UTC
(In reply to Petr Matyáš from comment #1)
> Can you please provide feature page or proper description of this feature so
> I can consider making a test plan.

guest-agent communication is described here:
https://github.com/oVirt/vdsm/blob/master/doc/guest-agent.md

The test should focus on the new information being reported when ovirt-ga is NOT running anymore, and those are provided by the qemu-ga instead

Comment 3 Tomáš Golembiovský 2018-04-03 15:09:32 UTC
adding NIC address reporting

Comment 4 Petr Matyáš 2018-04-16 11:43:34 UTC
Using vdsm-4.20.25-1.el7ev (and qemu-guest-agent-2.8.0-2.el7.x86_64)

The only thing that is reported to webadmin (and visible in RESTAPI) is the NIC, neither hostname nor TZ, OS, active user info is reported.

Comment 6 Petr Matyáš 2018-04-16 11:47:44 UTC
Maybe also reporting local IPv4 and v6 addresses is not the best idea. At least I don't think I can connect to that particular machine with IP 127.0.0.1.

Comment 7 Tomáš Golembiovský 2018-04-16 12:52:44 UTC
From vdsm.log it seems you have older version of QEMU-GA. You need at least 2.10 or newer.

Comment 10 Petr Matyáš 2018-04-17 14:39:09 UTC
Moving back to MODIFIED as we don't have qemu-guest-agent-2.10 on RHEL yet.

Comment 11 Petr Matyáš 2018-05-04 13:39:12 UTC
Verified on vdsm-4.20.27.1-1.el7ev.x86_64 using RHEL7 with qemu-guest-agent-2.12.0-1.el7.x86_64

IP, FQDN, OS, TZ and active user is reported

Comment 12 Sandro Bonazzola 2018-05-10 06:30:37 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.