Bug 744250 - Error deleting a repo after we ran into a relative path conflict with a published repo
Summary: Error deleting a repo after we ran into a relative path conflict with a publi...
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: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On: 761205
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-07 15:32 UTC by John Matthews
Modified: 2013-09-09 16:33 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description John Matthews 2011-10-07 15:32:06 UTC
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'

Comment 1 Jay Dobies 2011-12-07 21:15:36 UTC
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.

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

Comment 3 Preethi Thomas 2011-12-19 20:41:14 UTC
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

Comment 4 Preethi Thomas 2012-02-24 20:11:36 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.