Bug 675807 - Need a better error message when trying to update relative path of a synced repo
Summary: Need a better error message when trying to update relative path of a synced repo
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-07 20:02 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:07:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-02-07 20:02:04 UTC
Description of problem:


1. Create a repo A
2. Sync content
3. Create a consumer
4. Bind the consumer --repoid=A
5. Update the 'A' repo feed changing the relative path


[root@preethi ~]# pulp-admin repo update --id=mypulp --name=mypulp --relativepath=/tmp/mypulp/
error: operation failed: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py", line 57, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/role_check.py", line 131, in check_roles
    result = f(instance, *fargs, **kw)
  File "/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py", line 162, in PUT
    api.update(repo_data)
  File "/usr/lib/python2.7/site-packages/pulp/server/compat.py", line 40, in _decorator
    return decorator(*args,**kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/auditing.py", line 207, in _audit
    result = method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/server/api/repo.py", line 593, in update
    "Repository has content, relative path cannot be changed")
PulpException: 'Repository has content, relative path cannot be changed'

Comment 1 Sayli Karmarkar 2011-03-14 23:47:04 UTC
$ sudo pulp-admin repo update --id=test1 --name=mypulp --relativepath=/tmp/mypulp/
error: operation failed: PulpException: 'Repository has content, relative path cannot be changed'

Moving to on_qa.

Comment 2 Preethi Thomas 2011-03-25 19:46:28 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.157-1.git.1.1ea502c.fc14.noarch


[root@preethi ~]# pulp-admin repo update --id=pulp-repo --relative=/tmp/mypulp
error: operation failed: PulpException: 'Repository has content, relative path cannot be changed'
[root@preethi ~]#

Comment 3 Preethi Thomas 2011-08-16 12:07:02 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 4 Preethi Thomas 2011-08-16 12:20:51 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.