Bug 974014

Summary: date +%s output reverse
Product: Red Hat Enterprise Linux 7 Reporter: Jian Li <jiali>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jiali, nmurray
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-03 07:04:03 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:

Description Jian Li 2013-06-13 09:37:47 UTC
Description of problem:
In my cases, i use 'data +%s' to check test process..  Auto test alway time out, for 'date +%s' output revers result..

https://beaker.engineering.redhat.com/jobs/434294
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2013/06/4342/434294/913149/13121326/TESTOUT.log

output skip from '1371129194' to '1371129205', about 4 hours.


Version-Release number of selected component (if applicable):
RHEL-7.0-20130606.0
RHEL-7.0-20130522.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jian Li 2013-06-13 10:02:11 UTC
skip: 1371129205 => 1371114815

Comment 3 Ondrej Vasik 2013-06-13 20:11:08 UTC
Could you please better explain what's the issue you are experiencing? I don't see anything wrong there.

Comment 4 Jian Li 2013-07-03 07:04:03 UTC
/mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
++ date +%s
++ expr 1371129024 + 300
+ '[' 1371129205 -lt 1371129324 ']'   <====  date return 1371129205
+ pushd /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com
/mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com /mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
+ /mnt/tests/kernel/filesystems/nfs/pNFS/bz218777/crash
+ stat /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs
  File: ‘/mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs’
  Size: 0         	Blocks: 0          IO Block: 65536  regular empty file
Device: 23h/35d	Inode: 79363       Links: 1
Access: (2644/-rw-r-Sr--)  Uid: (   99/  nobody)   Gid: (   99/  nobody)
Context: system_u:object_r:nfs_t:s0
Access: 2013-06-13 05:11:32.169989000 -0400
Modify: 2013-06-13 05:11:32.169989000 -0400
Change: 2013-06-13 05:11:32.171990000 -0400
 Birth: -
+ log 'Test ran sucessfully.'
+ tee -a /tmp/tmp.pdjERc
+ echo -e 'Test ran sucessfully.'
Test ran sucessfully.
+ rm -f /mnt/bz218777/bz218777/hp-dl380pgen8-02-vm-13.lab.bos.redhat.com/file_on_nfs
+ sleep 10
+ popd
/mnt/tests/kernel/filesystems/nfs/pNFS/bz218777
++ date +%s
++ expr 1371129024 + 300
+ '[' 1371114815 -lt 1371129324 ']'   <==== date return 1371114815

date output reverse.  

But in my later testing, there is no problem, close this bug.