Bug 887027
| Summary: | Provider sync failed with: can't convert nil into String | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | James Laska <jlaska> | ||||
| Component: | Hammer | Assignee: | Justin Sherrill <jsherril> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.0.1 | CC: | aweiteka, cpelland, ehelms, jsherril, jturner, mmccune | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged, ZStream | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 896216 (view as bug list) | Environment: | |||||
| Last Closed: | 2014-03-11 16:43:35 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 896216 | ||||||
| Attachments: |
|
||||||
|
Description
James Laska
2012-12-13 21:29:12 UTC
After encountering the error, I attempted to re-initiate the sync, but it appears the previous sync is still active. Perhaps a case where the CLI returned, but pulp/grinder is still busy?
> # katello -u admin -p admin provider synchronize --name "Red Hat"
> Sync already in process for repo [redhat-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_5_Server_RPMs_i386_5_7]
I've tried to reproduce this several times but am unable to. I've tried in master as well as against a CFSE 1.1.1 box. Is this reproducible always? Looks like aweiteka is ran into this issue last week. Test output available - http://lab-02.rhts.eng.bos.redhat.com/beaker/logs/tasks/10536127/TESTOUT.log Tarball containing katello logs available - http://lab-02.rhts.eng.bos.redhat.com/beaker/logs/tasks/10536127/tmp-katello-logs.374783_787794_10536127.tar.gz I'm thinking this might be a race condition, as multiple repos are syncing at the same time. Relevant tracebacks:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 418, in run
result = self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 283, in _sync
progress_callback, synchronizer, max_speed, threads)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 379, in fetch_content
synchronizer.add_distribution_from_dir(repo_dir, repo_id, skip_dict)
File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 347, in add_distribution_from_dir
self._process_repo_images(dir, repo)
File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 484, in _process_repo_images
os.mkdir(distro_path)
OSError: [Errno 17] File exists: '/var/lib/pulp/published/ks'
upon trying to re-sync:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 418, in run
result = self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 283, in _sync
progress_callback, synchronizer, max_speed, threads)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 372, in fetch_content
progress_callback, max_speed, threads)
File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 164, in sync
max_speed=max_speed, threads=threads)
File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 811, in remote
verify_options=verify_options)
File "/usr/lib/python2.6/site-packages/grinder/RepoFetch.py", line 204, in fetchYumRepo
self.setupDistroInfo()
File "/usr/lib/python2.6/site-packages/grinder/RepoFetch.py", line 154, in setupDistroInfo
distro_items = info.prepareTrees(self.repoFetch)
File "/usr/lib/python2.6/site-packages/grinder/DistroInfo.py", line 42, in prepareTrees
return self.__prepareTrees(tree_manifest)
File "/usr/lib/python2.6/site-packages/grinder/DistroInfo.py", line 126, in __prepareTrees
os.makedirs(info['pkgpath'])
File "/usr/lib64/python2.6/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.4-x86_64'
getting rid of 6.0.0 version since that doesn't exist Closing old bugs which are not relevant based on new UI and CLI |