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 1229160 - implausibly old time stamp 1970-01-01 00:00:00 on Atomic files
Summary: implausibly old time stamp 1970-01-01 00:00:00 on Atomic files
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rhel-server-atomic
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
: 1186411 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-08 08:23 UTC by Jan Pazdziora (Red Hat)
Modified: 2017-07-07 12:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-07 12:56:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 750565 0 Normal RESOLVED set timestamps on /etc to be current 2020-11-05 19:03:21 UTC

Description Jan Pazdziora (Red Hat) 2015-06-08 08:23:52 UTC
Description of problem:

When I install Atomic Host, some files have mtime set to 1970-01-01 UTC, for example /etc/ssh/ssh_config or /etc/pam.d/sshd.

Full list can be found using

find / ! -mnewer /etc/ssh/ssh_config

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

# cat /etc/redhat-release 
Red Hat Enterprise Linux Atomic Host release 7.1
# rpm-ostree status
  TIMESTAMP (UTC)         VERSION     ID             OSNAME          REFSPEC                                            
* 2015-06-06 12:53:05     7.1.574     d1c0d69c20     atomic-host     atomic-host:rhel-atomic-host/7/x86_64/standard     

How reproducible:

Deterministic.

Steps to Reproduce:
1. Run # export TZ=UTC ; tar cf - /etc/ssh/ssh_config /etc/pam.d/sshd | ( cd /tmp && tar xvf - )

Actual results:

tar: Removing leading `/' from member names
etc/ssh/ssh_config
tar: etc/ssh/ssh_config: implausibly old time stamp 1970-01-01 00:00:00
etc/pam.d/sshd
tar: etc/pam.d/sshd: implausibly old time stamp 1970-01-01 00:00:00

Expected results:

No warnings, mtime not set to epoch.

Additional info:

Comment 2 Colin Walters 2015-06-08 13:20:43 UTC
That's expected, OSTree intentionally does not carry file timestamps.

https://mail.gnome.org/archives/ostree-list/2015-February/msg00008.html
https://git.gnome.org/browse/ostree/commit/?id=fe5ed36461a52b38cb366162bfd222ad3b326bf2

It's unfortunate that tar complains, but we'll just have to live with it.

Although we *could* set file timestamps to be newer for the copies of files in /etc...I'll file a bug to look at that.

Comment 3 Colin Walters 2016-06-22 13:49:43 UTC
*** Bug 1186411 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2016-10-18 16:55:45 UTC
Should this bug be closed?

Comment 5 Colin Walters 2017-07-06 21:21:51 UTC
This was incidentally fixed a while ago for files, and tar no longer warns.  But directories still have 0 timestamps.

Comment 6 Colin Walters 2017-07-06 21:24:39 UTC
Filed that here https://github.com/ostreedev/ostree/issues/995

Comment 7 Colin Walters 2017-07-07 12:56:54 UTC
There's a PR for this upstream; I don't think it's worth tracking this here too.  The fix will make its way downstream soon enough.


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