Bug 713776
Summary: | CreateRepoError: when sync was in "running" state for two repos | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
Component: | z_other | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | sghai, skarmark, tsanders |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 25 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:06:51 UTC | Type: | --- |
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: | 647488, 688298 |
Description
Jay Dobies
2011-06-16 14:35:30 UTC
Reassigning to Prad. Based on my initial investigation its createrepo that's exiting. I can reproduce this outside of pulp as well.. $ sudo createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os/repodata/1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os Spawning worker 0 with 3391 pkgs Worker 0: Worker 0: Traceback (most recent call last): Worker 0: iso-8859-1 encoding on Ville Skytt� <ville.skytta> - 2.8.2-2 Worker 0: File "/usr/share/createrepo/worker.py", line 101, in <module> Worker exited with non-zero value: 1. Fatal. Worker exited with non-zero value: 1. Fatal. You have new mail in /var/spool/mail/pkilambi In another window: $ sudo createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/repodata/comps-rhel-x86_64-server-6.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os Spawning worker 0 with 5043 pkgs Cannot access/write repodata files: [Errno 12] Cannot allocate memory The out of memory error is essentially kills the createrepo process and results in CreateRepoError: sh: line 1: 28480 Killed createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/repodata/comps-rhel-x86_64-server-6.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os Got same CreateRepoError with new build ( pulp 0.194 and rhui-tools 2.0.32) 2011-06-23 13:55:48,800 3970:140208043001616: pulp.server.util:ERROR: util:366 createrepo on /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os failed 2011-06-23 13:55:52,036 3970:140208043001616: pulp.server.tasking.task:ERROR: task:380 Task failed: Task b55df6f8-9cef-11e0-a722-525400734a2e: _sync(rhel-server-6-updates-6Server-x86_64, synchronizer=<pulp.server.api.synchronizers.YumSynchronizer object at 0x7f84b45c93d0>, skip_dict={}, max_speed=None, threads=None) Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 329, in run result = self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 224, in _sync progress_callback, synchronizer, max_speed, threads) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 302, in fetch_content progress_callback, max_speed, threads) File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 448, in sync pulp.server.util.create_repo(store_path, groups=groups_xml_path, checksum_type=repo['checksum_type']) File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line 383, in create_repo _create_repo(dir, groups=groups, checksum_type=checksum_type) File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line 367, in _create_repo raise CreateRepoError(out) CreateRepoError: sh: line 1: 5127 Killed createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/repodata/comps-rhel-x86_64-server-6.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os Not sure if this is the issue with rhel6 upadates (x86_64) repo, because earlier I got this against same repo. build: 0.198 verified [root@preethi ~]# rpm -q pulp pulp-0.0.223-1.fc14.noarch [root@preethi ~]# 1. created and synced f14-updates repo with --preserve_metadata 2. created an f14 repo with --preserve_metadata 3. sync f14-updates again while its syncing syncing f14 [root@preethi ~]# pulp-admin -u admin -p admin repo create --id=f14 --feed=http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os --preserve_metadata Successfully created repository [ f14 ] [root@preethi ~]# pulp-admin repo sync --id=f14 -FSync for repository f14 started Sync: Finished 2773/2773 new items downloaded 0/2773 existing items processed Item Details: Tree_Files: 7/7 Rpms: 2766/2766 [root@preethi ~]# pulp-admin repo sync --id=f14-updates -FSync for repository f14-updates started Sync: Finished 9214/17069 new items downloaded 7855/17069 existing items processed Item Details: Rpms: 9214/9214 Delta_Rpms: 7855/7855 [root@preethi ~]# pulp-admin repo sync --id=f14-updates -F Sync for repository f14-updates started Sync: Finished 0/17069 new items downloaded 17069/17069 existing items processed Item Details: Rpms: 9214/9214 Delta_Rpms: 7855/7855 Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |