Bug 675807

Summary: Need a better error message when trying to update relative path of a synced repo
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, skarmark, tsanders
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: 2011-08-16 12:07:02 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    

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.