Bug 662046

Summary: clock offset='variable' not working correctly
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: acathrow, dallan, danken, eblake, gren, jdenemar, plyons, pm-eus, veillard, xen-maint, yimwang
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.8.1-27.el6_0.2 Doc Type: Bug Fix
Doc Text:
An off-by-one error in a clock variable caused a virtual guest to show incorrect date and time information. This update addresses this error. Date and time information is now correctly displayed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-14 16:19:28 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: 660194    
Bug Blocks:    

Description RHEL Program Management 2010-12-10 12:27:29 UTC
This bug has been copied from bug #660194 and has been proposed
to be backported to 6.0 z-stream (EUS).

Comment 3 Jiri Denemark 2010-12-10 13:53:05 UTC
Fixed in libvirt-0.8.1-27.el6_0.2

Comment 7 wangyimiao 2011-02-09 03:51:43 UTC
verified it PASSED on build :
libvirt-0.8.1-27.el6_0.3.x86_64
qemu-img-0.12.1.2-2.113.el6_0.6.x86_64
qemu-kvm-0.12.1.2-2.113.el6_0.6.x86_64
kernel-2.6.32-71.18.1.el6.x86_64

Steps:
1.#define a domain xml include that XML.
.............................
  <clock offset='variable' adjustment='0'/>
...............................

2.start that domain
# virsh start pxe1
Domain pxe1 started

3.check host time
# date
Wed Feb  9 03:50:16 EST 2011

# clock
Wed 09 Feb 2011 03:49:20 AM EST  -0.687726 seconds


4.Log in guest domain
# date
Wed Feb  9 03:50:11 EST 2011

# clock
Wed 09 Feb 2011 03:49:16 AM EST  -0.718811 seconds

5.
Looking at KVM command line I see 
-rtc base=2011-02-09T08:41:26

Comment 8 errata-xmlrpc 2011-04-14 16:19:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0446.html

Comment 9 Martin Prpič 2011-04-15 14:22:27 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
An off-by-one error in a clock variable caused a virtual guest to show incorrect date and time information. This update addresses this error. Date and time information is now correctly displayed.