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 1156597 - Pcs should not generate tarballs that "tar" complains about when unpacking
Summary: Pcs should not generate tarballs that "tar" complains about when unpacking
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: michal novacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-24 17:46 UTC by Jan Pokorný [poki]
Modified: 2015-03-05 09:20 UTC (History)
5 users (show)

Fixed In Version: pcs-0.9.136-1.el7
Doc Type: Bug Fix
Doc Text:
Cause: User unpacks tarball created by the 'pcs config backup' or 'pcs config import-cman' command. Consequence: Tar prints a warning that version.txt file has implausibly old time stamp. Fix: Set valid time stamp for version.txt file when creating the tarball. Result: No warnings when unpacking the tarball.
Clone Of:
Environment:
Last Closed: 2015-03-05 09:20:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (1.07 KB, patch)
2014-10-30 13:57 UTC, Tomas Jelinek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0415 0 normal SHIPPED_LIVE pcs bug fix and enhancement update 2015-03-05 14:16:41 UTC

Description Jan Pokorný [poki] 2014-10-24 17:46:39 UTC
# pcs config import-cman output=foo.tar input=cluster-test01.conf
# tar xf foo.tar.bz2 
> tar: version.txt: implausibly old time stamp 1970-01-01 01:00:00

Comment 2 Tomas Jelinek 2014-10-30 13:57:47 UTC
Created attachment 952139 [details]
proposed fix

Before fix:
[root@rh70-node1:~/devel/pcs/pcs]# ./pcs config import-cman output=import.tar.bz2 input=cluster.conf
[root@rh70-node1:~/devel/pcs/pcs]# tar xf import.tar.bz2
tar: version.txt: implausibly old time stamp 1970-01-01 01:00:00
[root@rh70-node1:~/devel/pcs/pcs]# ./pcs config backup backup.tar.bz2
[root@rh70-node1:~/devel/pcs/pcs]# tar xf backup.tar.bz2
tar: version.txt: implausibly old time stamp 1970-01-01 01:00:00

After fix:
[root@rh70-node1:~/devel/pcs/pcs]# ./pcs config import-cman output=import.tar.bz2 input=cluster.conf
[root@rh70-node1:~/devel/pcs/pcs]# tar xf import.tar.bz2
[root@rh70-node1:~/devel/pcs/pcs]# ./pcs config backup backup.tar.bz2
[root@rh70-node1:~/devel/pcs/pcs]# tar xf backup.tar.bz2

Comment 5 michal novacek 2015-01-16 13:17:49 UTC
I have verified that 'pcs cluster' command now creates tar archives with
correct timestamps with pcs-0.9.137-11.el7.x86_64.

-----

[root@duck-01 ~]# rpm -q pcs 
pcs-0.9.137-11.el7.x86_64

[root@duck-01 ~]# pcs config backup /tmp/backup

[root@duck-01 ~]# file /tmp/backup.tar.bz2 
/tmp/backup.tar.bz2: bzip2 compressed data, block size = 900k

[root@duck-01 ~]# tar tvf /tmp/backup.tar.bz2 
-rw-r--r-- 0/0               1 2015-01-16 14:05 version.txt
drwxr-xr-x root/root         0 2014-10-13 16:59 uidgid.d/
-rw-r--r-- root/root       346 2015-01-15 17:32 corosync.conf
-rw------- hacluster/haclient 7762 2015-01-16 12:18 cib.xml

[root@duck-01 ~]# tar xf /tmp/backup.tar.bz2 

[root@duck-01 ~]# echo $?
0

Comment 7 errata-xmlrpc 2015-03-05 09:20:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0415.html


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