Description of problem:
Createrepo in RHEL 6.4 RC1 is removing the group file
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux mgmt002st001 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
rpm -qa | grep createrepo
Createrepo with group file
Steps to Reproduce:
Have group file in this case comps.xml
]# ls /test/test/repodata/
Run createrepo with -g option and xml group file
/usr/bin/createrepo -v -g /test/test/repodata/comps.xml /test/test/
Spawning worker 0 with 102 pkgs
The comps.xml file now does not exist.
# ls /test/test/repodata/
repo is updated but group file is removed. Later if rpms are updated the same command will fail because group file no longer exists
yum repo is updated and group file still exists. This was the behavior in pre-RHEL 6.4 version
Made the comps.xml immutable and received the following error which should help track it down
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Starting other db creation: Mon Jun 3 22:34:46 2013
Ending other db creation: Mon Jun 3 22:34:46 2013
Starting filelists db creation: Mon Jun 3 22:34:47 2013
Ending filelists db creation: Mon Jun 3 22:34:47 2013
Starting primary db creation: Mon Jun 3 22:34:47 2013
Ending primary db creation: Mon Jun 3 22:34:47 2013
Sqlite DBs complete
Could not remove old metadata file: /test/test/.olddata/comps.xml: [Errno 1] Operation not permitted: '/test/test/.olddata/comps.xml'
No idea how .olddata is being used which must be part of how it is implemented.
Also note the page will not allow me to move this issue to RHEL 6.4
Additional issue seen
/usr/bin/createrepo -v -g /test/test/repodata/*comps-rhel6-Server.xml /test/test/
File "/usr/share/createrepo/genpkgmetadata.py", line 291, in <module>
File "/usr/share/createrepo/genpkgmetadata.py", line 269, in main
File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 1073, in doRepoMetadata
mdcontent = self._createRepoDataObject(self.conf.groupfile, 'group_gz')
File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 884, in _createRepoDataObject
(csum, outfn) = checksum_and_rename(outfn, self.conf.sumtype)
File "/usr/lib/python2.6/site-packages/createrepo/utils.py", line 170, in checksum_and_rename
OSError: [Errno 36] File name too long
Backleveled from createrepo-0.9.9-17.el6.noarch.rpm to createrepo-0.9.8-5.el6.noarch.rpm
Old version works as expected.
This option seems to fix both issues --simple-md-filenames
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.
More information and reason for this action is here:
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 20 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.