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_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | 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 | ||
$ 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. 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 ~]# Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |
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'