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 1263978 - qmp don't support {"execute":"qom-get","arguments":{"path":"/machine","property":"rtc-time"}}
Summary: qmp don't support {"execute":"qom-get","arguments":{"path":"/machine","proper...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.2
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Markus Armbruster
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-17 08:55 UTC by mazhang
Modified: 2016-09-20 04:41 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-08 02:37:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mazhang 2015-09-17 08:55:05 UTC
Description of problem:
qmp don't support {"execute":"qom-get","arguments":{"path":"/machine","property":"rtc-time"}}

Version-Release number of selected component (if applicable):

Host:
3.10.0-315.el7.x86_64
qemu-kvm-1.5.3-103.el7


How reproducible:
100%

Steps to Reproduce:
1.Start qemu-kvm process, execute qom-get.
# /usr/libexec/qemu-kvm -qmp tcp:0:6773,server,nowait

{"QMP": {"version": {"qemu": {"micro": 3, "minor": 5, "major": 1}, "package": " (qemu-kvm-1.5.3-103.el7)"}, "capabilities": []}}
{ "execute": "qmp_capabilities" }
{"return": {}}
{"execute":"qom-get","arguments":{"path":"/machine","property":"rtc-time"} }
{"error": {"class": "GenericError", "desc": "Property '.rtc-time' not found"}}

2.
3.

Actual results:
Not found rtc-time.

Expected results:
qemu-kvm also support rtc-time.

Additional info:
qemu-kvm-rhev-2.3.0-23.el7 works well.
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 3, "major": 2}, "package": " (qemu-kvm-rhev-2.3.0-23.el7)"}, "capabilities": []}}
{ "execute": "qmp_capabilities" }
{"return": {}}
{"execute":"qom-get","arguments":{"path":"/machine","property":"rtc-time"} }
{"return": {"tm_year": 115, "tm_sec": 48, "tm_hour": 8, "tm_min": 50, "tm_mon": 8, "tm_mday": 17}}

Comment 2 Markus Armbruster 2015-09-18 17:32:53 UTC
"/machine/rtc-time" is an alias to the property of the actual RTC
device.  Added upstream in commit 654a36d, v2.1.0.  Not in RHEL-7
qemu-kvm.

For PC machines, the RTC device is "mc146818rtc", and
"/machine/rtc-time" is an alias for
"/machine/unattached/device[X]/date", where X can vary between
versions.  In my build of RHEL-6's qemu-kvm, it's 7.

To find the "mc146818rtc" device, search for the device with type
"mc146818rtc", like this:

QMP> { "execute": "qom-get", "arguments": { "path": "/machine/unattached/device[1]", "property": "type" } }
{"return": "kvmvapic"}

Not the right one, try next

QMP> { "execute": "qom-get", "arguments": { "path": "/machine/unattached/device[2]", "property": "type" } }
{"return": "kvmclock"}

and so forth until

QMP> { "execute": "qom-get", "arguments": { "path": "/machine/unattached/device[7]", "property": "type" } }
{"return": "mc146818rtc"}

QMP> { "execute": "qom-get", "arguments": { "path": "/machine/unattached/device[7]", "property": "date" } }
{"return": {"tm_year": 115, "tm_sec": 31, "tm_hour": 17, "tm_min": 27, "tm_mon": 8, "tm_mday": 18}}

The stable alias saves you from having to know the machine's RTC
device and the name of its property (neither is going to change in
RHEL-7 qemu-kvm), and saves you the search for it.

If you think we should backport the "/machine/rtc-time" alias to
RHEL-7 qemu-kvm, please state your business case.

If not, let us know so we can close out this bug.

Comment 3 mazhang 2015-09-21 02:58:54 UTC
This bug is according to qe's test case, I'll talk with the feature owner if close it. 
Since he is on pto, I'll update this bug when he back.

Thanks,
Mazhang.

Comment 4 mazhang 2015-10-08 02:37:13 UTC
Just talk to scui, not need backport to qemu-kvm, so close this bug.

Thanks,
Mazhang.


Note You need to log in before you can comment on or make changes to this bug.