Bug 690635

Summary: Error message on filter delete should say to use --force if associated to the 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
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 12:10:05 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-03-24 21:10:12 UTC
Description of problem:


If the filter you are trying to delete is attached to a repo , the message says as follows

[root@preethi ~]# pulp-admin filter delete --id=filter-black
error: operation failed: PulpException: u"Filter [filter-black] cannot be deleted because of it's association with repos [u'pulp-clone1', u'f14-clone2']"


Is should also suggest that to use --force if you still want to go ahead with the delete

Comment 1 Sayli Karmarkar 2011-03-25 05:43:04 UTC
$ sudo pulp-admin filter delete --id=foo 
error: operation failed: PulpException: u"Filter [foo] cannot be deleted because of it's association with following repos: [u'test2']. You can use --force to force deletion of filter by removing it's association with repositories."

Comment 2 Jeff Ortel 2011-03-29 17:32:40 UTC
Build: 0.158

Comment 3 Preethi Thomas 2011-03-31 15:27:31 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.159-1.fc14.noarch

[root@preethi ~]# pulp-admin filter delete --id=fliter-black
error: operation failed: PulpException: u"Filter [fliter-black] cannot be deleted because of it's association with following repos: [u'f14-clone']. You can use --force to force deletion of filter by removing it's association with repositories."

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

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:14 UTC
Closing with Community Release 15

pulp-0.0.223-4.