Bug 742320 - repo create error. File name too long
Summary: repo create error. File name too long
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-29 16:57 UTC by Preethi Thomas
Modified: 2013-09-09 16:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:11:20 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-09-29 16:57:42 UTC
Description of problem:
repo create error


<jmatthews> preethi_lt, '/var/lib/pulp//repos/released/F-14/GOLD/Fedora/x86_64/os/repodata/1d46a2073097bdb6b7b6f6fba60e4525ca0bf2d1165026a3e1c87b0b2abaf07f-1d46a2073097bdb
<jmatthews> 6b7b6f6fba60e4525ca0bf2d1165026a3e1c87b0b2abaf07f-1d46a2073097bdb6b7b6f6fba60e4525ca0bf2d1165026a3e1c87b0b2abaf07f-Fedora-14-comps.xml'
<jmatthews> preethi, that long string is what createrepo tried to use
<jmatthews> I think it got it because /var/lib/pulp/repos/released...... had repodata for that repo previously
<jmatthews> when you created the new repo pulp used the existing directory and ran a createrepo on what we thought would be empty
* lzap-afk is now known as lzap
<jmatthews> I'm not 100% sure how the rest of this error manifested
* tstrachota has quit (Quit: Leaving)
<jmatthews> preethi_lt, would you file a bug on this, and include all of the pulp.log around this error in the bz?
* jrist-afk is now known as jrist
<jmatthews> preethi_lt, the short term fix was to delete the repo and re-create it


from pulp.log

2011-09-29 12:35:48,963 2213:140068874348288: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 248, in POST
    content_types=repo_data.get('content_types', 'yum'))
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 264, in create
    pulp.server.util.create_repo(repo_path, checksum_type=r['checksum_type'])
  File "/usr/lib/python2.7/site-packages/pulp/server/util.py", line 494, in create_repo
    raise CreateRepoError(err_msg)
CreateRepoError: Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 278, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 256, in main
    mdgen.doRepoMetadata()
  File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 1025, in doRepoMetadata
    mdcontent = self._createRepoDataObject(self.conf.groupfile, 'group_gz')
  File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 853, in _createRepoDataObject
    (csum, outfn) = checksum_and_rename(outfn, self.conf.sumtype)
  File "/usr/lib/python2.7/site-packages/createrepo/utils.py", line 111, in checksum_and_rename
    os.rename(fn_path, csum_path)
OSError: [Errno 36] File name too long

Comment 1 Pradeep Kilambi 2011-12-08 15:00:00 UTC
Please provide steps to reproduce or if you can point me to a box where you're seeing this that would work too.

Comment 2 Pradeep Kilambi 2011-12-08 20:17:58 UTC
commit bc418df6bb97aefe78e2c592a609276919b2a49e

Comment 3 Jeff Ortel 2011-12-15 20:18:12 UTC
build: 0.255

Comment 4 Preethi Thomas 2012-01-06 20:00:07 UTC
verified with dropping db and creating repos with the same names as before
[root@katello-test ~]# rpm -q pulp
pulp-0.0.256-1.el6.noarch
[root@katello-test ~]# 



[root@katello-test ~]# pulp-admin -u admin -p admin repo create --id=pulp --feed=http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64/
Successfully created repository [ pulp ]

Comment 5 Preethi Thomas 2012-02-24 20:11:20 UTC
Pulp v1.0 is released
Closed Current Release.


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