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 1759026

Summary: The primary distro-level SWID tag com.redhat.RHEL-8-x86_64.swidtag changed timestamp even if the content did not change
Product: Red Hat Enterprise Linux 8 Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: redhat-releaseAssignee: Rashmi <rnargund>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: jpazdziora, jwboyer, lisas, pkotvan, rnargund
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-07 07:31:34 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 Jan Pazdziora (Red Hat) 2019-10-07 08:42:34 UTC
Description of problem:

When RHEL 8.0 is installed with redhat-release-8.0-0.44.el8.x86_64, stat /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag shows the Modify time to be march 2019, likely when the package was built:

  File: /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 33569157    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:lib_t:s0
Access: 2019-03-05 21:14:11.000000000 +0530
Modify: 2019-03-05 21:14:11.000000000 +0530
Change: 2019-10-07 13:51:20.924195381 +0530
 Birth: -

Checking the content of that file, it is

# sha256sum /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag 
207449b5476b2966d92fc1fd9bffe7a0e1f56d2b076104ce2ccf3995a910549c  /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag

When redhat-release gets upgraded to redhat-release-8.1-3.3.el8.x86_64, the timestamp of the com.redhat.RHEL-8-x86_64.swidtag file changes, even if the content is exactly the same.

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

redhat-release-8.1-3.3.el8.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. Have RHEL 8.0.
2. stat /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
3. sha256sum /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
4. upgrade to latest redhat-release package (8.1)
5. stat /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
6. sha256sum /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag

Actual results:

# stat /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
  File: /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 33569153    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:lib_t:s0
Access: 2019-09-25 23:47:47.000000000 +0530
Modify: 2019-09-25 23:47:47.000000000 +0530
Change: 2019-10-07 14:10:09.632001183 +0530
 Birth: -

# sha256sum /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
207449b5476b2966d92fc1fd9bffe7a0e1f56d2b076104ce2ccf3995a910549c  /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag

Expected results:

# stat /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
  File: /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd00h/64768d	Inode: 33569157    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:lib_t:s0
Access: 2019-03-05 21:14:11.000000000 +0530
Modify: 2019-03-05 21:14:11.000000000 +0530
Change: 2019-10-07 14:10:09.632001183 +0530
Change: 2019-10-07 13:51:20.924195381 +0530
 Birth: -

# sha256sum /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag
207449b5476b2966d92fc1fd9bffe7a0e1f56d2b076104ce2ccf3995a910549c  /usr/lib/swidtag/redhat.com/com.redhat.RHEL-8-x86_64.swidtag

Additional info:

When file as shipped by the rpm did not change from previous version, its timestamp should reflect that it's still the old version of the file.

Comment 4 Rashmi 2020-02-24 14:27:30 UTC
Thanks Jan for the ping. Moving to QA.

Comment 5 Peter Kotvan 2020-03-12 10:49:14 UTC
To verify this on  RHEL-8.2.0-Snapshot-3.0 -> RHEL-8.2.0-20200310.0:

$ find 8.* -type f -name 'com.redhat.RHEL-8-x86_64.swidtag' -exec stat {} \;
  File: 8.0/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd03h/64771d	Inode: 551976      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ pkotvan)   Gid: ( 1000/ pkotvan)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2020-03-12 11:44:47.774294494 +0100
Modify: 2019-03-05 16:44:11.000000000 +0100
Change: 2020-03-09 12:59:44.052604094 +0100
 Birth: 2020-03-09 12:59:44.051604083 +0100
  File: 8.1/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd03h/64771d	Inode: 551994      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ pkotvan)   Gid: ( 1000/ pkotvan)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2020-03-12 11:44:52.112359122 +0100
Modify: 2019-09-25 20:17:47.000000000 +0200
Change: 2020-03-09 13:00:12.968922900 +0100
 Birth: 2020-03-09 13:00:12.968922900 +0100
  File: 8.2/com.redhat.RHEL-8-x86_64.swidtag
  Size: 6796      	Blocks: 16         IO Block: 4096   regular file
Device: fd03h/64771d	Inode: 543568      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ pkotvan)   Gid: ( 1000/ pkotvan)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2018-12-11 23:43:45.000000000 +0100
Modify: 2018-12-11 23:43:45.000000000 +0100
Change: 2020-03-12 11:44:43.292227720 +0100
 Birth: 2020-03-12 11:44:43.292227720 +0100

As you can see "Modify" times are different every mino version of RHEL-8. Interestingly, RHEL-8.2.0-Snapshot-3.0 Modify time is even before the times for RHEL-8.1.0 and RHEL-8.0.0 (Modify: 2018-12-11 23:43:45.000000000 +0100).

The expected modify time on RHEL-8.2.0 is Modify: 2019-03-05 21:14:11.000000000 +0530, as specified in the bug description.

Moving back to ASSIGNED.

Comment 6 Jan Pazdziora (Red Hat) 2020-03-12 11:32:50 UTC
The Modify: 2018-12-11 23:43:45.000000000 +0100 is the correct value that we tried to achieve with this bugzilla. So the output of comment 5 seems like justification for VERIFIED (especially if also seen on installed system). Why aren't you happy with it?

Comment 7 Jan Pazdziora (Red Hat) 2020-03-12 11:44:22 UTC
The old (2018-12-11) timestamp would be seen on RHEL 8.0 Beta, I believe. In the fix and tests we went with that timestamp, instead of the one in RHEL 8.0 GA -- that's why the date went backwards. So the intent of the Expected results is not to be read too literally, but rather "in the long run, the date should stay stable".

Comment 8 Peter Kotvan 2020-03-12 12:37:12 UTC
(In reply to Jan Pazdziora from comment #7)
> The old (2018-12-11) timestamp would be seen on RHEL 8.0 Beta, I believe. In
> the fix and tests we went with that timestamp, instead of the one in RHEL
> 8.0 GA -- that's why the date went backwards. So the intent of the Expected
> results is not to be read too literally, but rather "in the long run, the
> date should stay stable".

I'm sorry I just checked the expected result in the bug description and it was different from what I actually saw. Thank you for the explanation. Moving to VERIFIED.

Comment 11 RHEL Program Management 2021-04-07 07:31:34 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.