| Summary: | Local sync from a mount point fails with permission errors | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Pradeep Kilambi <pkilambi> |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Target Release: | Sprint 29 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
fixed!
commit f68f0efcd90a2e129d60d427edce0a69639e1b0d
Author: Pradeep Kilambi <pkilambi>
Date: Thu Oct 27 15:49:14 2011 -0400
Sync Enhancements for #744021, #749289
* import the pkg and file information before metadata is regenerated
* modify the checksum to use the pkg checksum from metadata
* rewrote local sync metadata to import all the metadata under repodata
* new method call update_metadata to regenerate metadata if
preserve_metadata is set
build: 0.243 [root@preethi ~]# rpm -q pulp pulp-0.0.244-5.fc15.noarch [root@preethi disk]# pulp-admin -u admin -p admin repo sync --id=local -F Sync for repository local started Sync: Finished 3113/3113 new items downloaded 0/3113 existing items processed Item Details: Tree Files: 6/6 RPMs: 3107/3107 [root@preethi ~]# pulp-admin -u admin -p admin repo create --id=local --feed=file:///mnt/disk --preserve_metadata Successfully created repository [ local ] [root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=local -F Sync for repository local started Sync: Finished 3113/3113 new items downloaded 0/3113 existing items processed Item Details: Tree Files: 6/6 RPMs: 3107/3107 Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |
Description of problem: Mount an iso and perform a local sync with file:// path, sync will error with similar permission error at the metadata creation time 2011-10-25 14:41:32,159 15958:140712431568640: pulp.server.api.synchronizers:ERROR: synchronizers:1084 Unable to create repo directory /var/lib/pulp//repos/home-tsanders-Downloads-mount-Server 2011-10-25 14:41:32,250 15958:140712431568640: pulp.server.tasking.task:ERROR: task:455 Task failed: Task f4dcd035-ff38-11e0-a86f-0024d7051914: _sync(home-tsanders-Downloads-mount-Server, synchronizer=<pulp.server.api.synchronizers.YumSynchronizer object at 0x7ffa204c3dd0>, skip_dict={}, max_speed=None, threads=None, progress_callback=<bound method RepoSyncTask.progress_callback of <pulp.server.api.repo_sync_task.RepoSyncTask object at 0x7ffa20116050>>) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 404, in run result = self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 266, in _sync progress_callback, synchronizer, max_speed, threads) File "/usr/lib/python2.7/site-packages/pulp/server/api/repo_sync.py", line 344, in fetch_content progress_callback, max_speed, threads) File "/usr/lib/python2.7/site-packages/pulp/server/api/synchronizers.py", line 153, in sync max_speed=max_speed, threads=threads) File "/usr/lib/python2.7/site-packages/pulp/server/api/synchronizers.py", line 1014, in local os.path.join(dst_repo_dir, os.path.basename(src_groups))) File "/usr/lib64/python2.7/shutil.py", line 116, in copy copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: u'/var/lib/pulp//repos/home-tsanders-Downloads-mount-Server/5819e9580b5a81a9eec9e2c6e91fc9992a7ccadaa3bcd5ecb2e87a8669eefcec-comps-rhel6-Server.xml'