Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1598210

Summary: Backport some features to 2.8 in RHEL 7.5 [rhel-7.5.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: qemu-guest-agentAssignee: Wainer dos Santos Moschetta <wainersm>
Status: CLOSED ERRATA QA Contact: FuXiangChun <xfu>
Severity: high Docs Contact:
Priority: high    
Version: 7.5CC: chayang, jen, jherrman, juzhang, knoel, micai, michal.skrivanek, michen, mrezanin, mtessun, qzhang, salmy, tgolembi, toneata
Target Milestone: rcKeywords: FutureFeature, Rebase, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.8.0-2.el7_5.1 Doc Type: Enhancement
Doc Text:
To maintain qemu-guest-agents compatibility with the latest version of VDSM, a number of features have been backported from the most recent upstream version. These include the addition of qemu-get-host-name, qemu-get-users, qemu-get-osinfo, and qemu-get-timezone commands.
Story Points: ---
Clone Of: 1569013 Environment:
Last Closed: 2018-08-16 14:20:44 UTC Type: ---
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: 1569013    
Bug Blocks:    
Attachments:
Description Flags
automation result none

Description Oneata Mircea Teodor 2018-07-04 16:37:44 UTC
This bug has been copied from bug #1569013 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 3 Wainer dos Santos Moschetta 2018-07-13 19:08:04 UTC
This bug has been addressed by Miroslav Rezanina <mrezanin>, with the following series:
[RHEL-7.5.z qemu-guest-agent PATCH 0/7] Add querry commands necessary for vdsm

Comment 4 Wainer dos Santos Moschetta 2018-07-17 20:58:35 UTC
Fix in qemu-guest-agent-2.8.0-2.el7_5.1

Comment 6 Tomáš Golembiovský 2018-07-26 07:33:43 UTC
I suggest you remove the mention of utmpx.h from the doc_text.

Comment 7 FuXiangChun 2018-07-27 07:56:13 UTC
Verified bug with qemu-guest-agent-2.8.0-2.el7_5.1.

1)qemu-guest-agent test run
https://polarion.engineering.redhat.com/polarion/#/project/RedHatEnterpriseLinux7/testrun?id=virtqe-qemu-guest-agent-RHEL7-5-z%20-%20qemu-guest-agent-RHEL7-5-z%20guest

no found regression and blocker bug.

2) new agent command work.

{"execute": "guest-get-osinfo"}
{"return": {"name": "Red Hat Enterprise Linux Server", "kernel-release": "3.10.0-862.el7.x86_64", "version": "7.5 (Maipo)", "variant": "Server", "pretty-name": "Red Hat Enterprise Linux Server 7.5 (Maipo)", "version-id": "7.5", "variant-id": "server", "kernel-version": "#1 SMP Wed Mar 21 18:14:51 EDT 2018", "machine": "x86_64", "id": "rhel"}}

{"execute": "guest-get-host-name"}
{"return": {"host-name": "vm-74-10.lab.eng.pek2.redhat.com"}}

{"execute": "guest-get-users"}
{"return": []}

{"execute": "guest-get-timezone"}
{"return": {"zone": "CST", "offset": 28800}}

3. automation test pass.  Result is in attachment.

Comment 8 FuXiangChun 2018-07-27 07:57:02 UTC
Created attachment 1471006 [details]
automation result

Comment 9 FuXiangChun 2018-07-27 07:57:55 UTC
Base on comment7 and comment8, set this bug as verified.

Comment 11 errata-xmlrpc 2018-08-16 14:20:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHEA-2018:2460