Bug 665457
| Summary: | Need a better error message when trying to delete a repo that is associated with a cds | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Jeff Ortel <jortel> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 22 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 14:01:00 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, 688298 | ||
CDS automatically unassociated when repo is deleted. build: 0.168
[root@preethi ~]# rpm -q pulp
pulp-0.0.181-1.fc14.noarch
[root@preethi ~]# pulp-admin cds associate_repo --hostname=pulp-cds.usersys.redhat.com --repoid=f15-clone
Successfully associated CDS [pulp-cds.usersys.redhat.com] with repo [f15-clone]
[root@preethi ~]# pulp-admin cds list
+------------------------------------------+
CDS Instances
+------------------------------------------+
Name pulp-cds.usersys.redhat.com
Hostname pulp-cds.usersys.redhat.com
Description None
Group None
Sync Schedule None
Repos f15, f15-clone
Last Sync 2011-05-31 15:36:58-04:00
Status:
Responding Yes
Last Heartbeat 2011-05-31 19:46:06.685754+00:00
[root@preethi ~]# pulp-admin repo delete --id=f15-clone
Successful deleted repository [ f15-clone ]
Unassociated with CDS(s):
pulp-cds.usersys.redhat.com
[root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4. |
Description of problem: [root@preethi ~]# rpm -q pulp pulp-0.0.119-1.fc14.noarch [root@preethi ~]# pulp-admin repo delete --id=f14 error: operation failed: "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/base.py\", line 53, in report_error\n return method(self, *args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/role_check.py\", line 130, in check_roles\n result = f(instance, *fargs, **kw)\n File \"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/repositories.py\", line 172, in DELETE\n api.delete(id=id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/event/dispatcher.py\", line 79, in call\n retval = fn(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/compat.py\", line 38, in _decorator\n return decorator(*args,**kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/auditing.py\", line 204, in _audit\n result = method(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/api/repo.py\", line 426, in delete\n raise PulpException('Repo [%s] cannot be deleted until it is unassociated from the CDS instances [%s]' % (id, ', '.join(hostnames)))\nPulpException: u'Repo [f14] cannot be deleted until it is unassociated from the CDS instances [pulp-cds]'\n"