| Summary: | Error deleting a repo after we ran into a relative path conflict with a published repo | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | John Matthews <jmatthew> |
| Component: | user-experience | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | CC: | skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:11:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 761205 | ||
| Bug Blocks: | |||
This bug depends on what's decided in 761205. If it turns out that nested repositories are determined to be bad and prevented by Pulp, this becomes a non-issue. build: 0.255 verified Not able to created repositories with same relative paths [root@preethi ~]# pulp-admin -u admin -p admin repo create --id=f15-1 --preserve_metadata --feed=http://download.devel.redhat.com/released/F-15/GOLD/Fedora/x86_64/os error: error: operation failed: PulpException: New relative path [released/F-15/GOLD/Fedora/x86_64/os] conflicts with existing relative path [released/F-15/GOLD/Fedora/x86_64/os]; paths may not be a parent or child directory of another relative path Pulp v1.0 is released Closed Current Release. |
Description of problem: Sync 2 repos: something/foo/bar/baz something/foo/ Try to delete "something/foo" and you will see a similar traceback to below. 2011-10-07 11:12:33,331 6270:139764988626688: pulp.server.api.repo:INFO: repo:470 Delete API call invoked pulp-F15 2011-10-07 11:12:33,336 6270:139764988626688: 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 346, in DELETE api.delete(id=id) File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 498, in delete self._delete_published_link(repo) File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 324, in _delete_published_link os.unlink(link_path) OSError: [Errno 21] Is a directory: '/var/lib/pulp/published/repos/repos/pulp/pulp/fedora-15/x86_64'