Bug 665457 - Need a better error message when trying to delete a repo that is associated with a cds
Summary: Need a better error message when trying to delete a repo that is associated w...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: Sprint 22
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 688298
TreeView+ depends on / blocked
 
Reported: 2010-12-23 21:26 UTC by Preethi Thomas
Modified: 2011-08-16 14:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:01:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-12-23 21:26:37 UTC
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"

Comment 1 Jeff Ortel 2011-04-18 18:42:08 UTC
CDS automatically unassociated when repo is deleted.

Comment 2 Jeff Ortel 2011-04-19 18:49:15 UTC
build: 0.168

Comment 3 Preethi Thomas 2011-05-31 19:34:10 UTC
[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 ~]#

Comment 4 Preethi Thomas 2011-08-16 14:01:00 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.