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 1316146 - p-a: Bad timestamps after installation on .pyc and .pyo files
Summary: p-a: Bad timestamps after installation on .pyc and .pyo files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: preupgrade-assistant
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Petr Hracek
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-09 14:16 UTC by Alois Mahdal
Modified: 2016-03-10 18:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-10 13:57:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alois Mahdal 2016-03-09 14:16:06 UTC
Description of problem
======================

According to `rpm -V` check, mtime differs on lot of files:

    :: [  BEGIN   ] :: do rpm --verify on preupgrade-assistant :: actually running 'rpm -V preupgrade-assistant'
    .......T.    /usr/lib/python2.6/site-packages/preup/__init__.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/__init__.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/application.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/application.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/cli.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/cli.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/common.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/common.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/conf.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/conf.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/constants.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/constants.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/exception.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/exception.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart_packages.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart_packages.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart_partitioning.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/kickstart_partitioning.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/logger.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/logger.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/remediate.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/remediate.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/report_parser.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/report_parser.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/scanning.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/scanning.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/script_api.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/script_api.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/settings.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/settings.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/utils.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/utils.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/version.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/version.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/xccdf.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/xccdf.pyo
    .......T.    /usr/lib/python2.6/site-packages/preup/xml_manager.pyc
    .......T.    /usr/lib/python2.6/site-packages/preup/xml_manager.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/__init__.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/__init__.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/compose.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/oscap_group_xml.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/oscap_group_xml.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/script_utils.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/script_utils.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/variables.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/variables.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/version.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/version.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/xml_tags.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/xml_tags.pyo
    .......T.    /usr/lib/python2.6/site-packages/preuputils/xml_utils.pyc
    .......T.    /usr/lib/python2.6/site-packages/preuputils/xml_utils.pyo
    :: [   FAIL   ] :: do rpm --verify on preupgrade-assistant (Expected 0, got 1)


Version-Release number of selected component
============================================

preupgrade-assistant-2.1.5-3.el6.noarch


How reproducible
================

Always


Steps to Reproduce
==================

 1. Install preupgrade-assistant
 2. run `rpm -V preupgrade-assistant`


Actual results
==============

55 errors


Expected results
================

No errors (no output)


Additional info
===============

Same is for preupgrade-assistant-el6toel7--will post as separate report.

Comment 2 Alois Mahdal 2016-03-09 15:16:27 UTC
Notes for testing
=================

All that is needed to check is run

  TC#494890 /CoreOS/preupgrade-assistant/6to7/installation/static-check

and check these errors in "verify consistency" phase.

Comment 3 Petr Hracek 2016-03-10 13:57:21 UTC
This is not related to preupgrade-assistant.

It seems like python was changed after preupgrade-assistant installation.
After an installation of preupgrade-assistant execute `rpm -V preupgrade-assistant`
It should be clear.

I am going to close it. Feel free to reopen it.

Comment 4 Alois Mahdal 2016-03-10 18:13:40 UTC
OK, I've found out the cause.

I'm using py_compile to check syntax of all Python files.  As side-effect, it also re-creates the .pyc and .pyo files.   The rpm -V check is sooner in the test, so this does not happen for the first time, but re-running the test (in 1mt) exposed this problem.

I've found another way (`compile()`) that does not have this side effect and have updated the test.  Sorry for the false alarm.


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