Bug 790285

Summary: Deleting a file and deleting a package associated to a repo behave differently
Product: [Retired] Pulp Reporter: Sayli Karmarkar <skarmark>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: cperry, 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: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 790288    

Description Sayli Karmarkar 2012-02-14 06:24:10 UTC
Description of problem:

$ sudo pulp-admin content list --repoid test
pulp-large_100k_test-packageB-0.1.1-1.fc14.noarch.rpm,1952d421409af01b13d8a111a0b5a18431e6c21a00c10dc032e4da84d6bfd1bf
pulp-large_100k_test-packageA-0.1.1-1.fc14.noarch.rpm,32762001d6e314a44b71c1b6f6bb8c01e2224d4b2f2b84e46a8550d96b2bbd4e
pulp-dot-2.0-test-0.1.2-1.fc11.x86_64.rpm,435d92e6c09248b501b8d2ae786f92ccfad69fab8b1bc774e2b66ff6c0d83979
pulp-test-package-0.2.1-1.fc11.x86_64.rpm,4dbde07b4a8eab57e42ed0c9203083f1d61e0b13935d1a569193ed8efc9ecfd7
fileA.txt,22603a94360ee24b7034c74fa13d70dd122aa8c4be2010fc1361e1e6b0b410ab
fileC.iso,099f2bafd533e97dcfee778bc24138c40f114323785ac1987a0db66e07086f74
updateinfo.xml,03776aa0d5d0ed3b3dd6d0a89171a90bf3102970c808845bd0c00a5c74f3c7c2
fileB.txt,8dc89e9883c098443f6616e60a8e489254bf239eeade6e4b4943b7c8c0c345a4
fileB.txt.1,8dc89e9883c098443f6616e60a8e489254bf239eeade6e4b4943b7c8c0c345a4


$ sudo pulp-admin content delete -f fileB.txt.1
Successfully deleted content [fileB.txt.1] from pulp server


$ sudo pulp-admin content delete -f pulp-large_100k_test-packageB-0.1.1-1.fc14.noarch.rpm
Content with filename [pulp-large_100k_test-packageB-0.1.1-1.fc14.noarch.rpm] is currently associated a repository; skipping delete

Comment 1 Pradeep Kilambi 2012-02-15 16:14:36 UTC
commit 6d1a00cffbea8f76cd026dc901512a561dbdb565

Comment 2 Jeff Ortel 2012-02-17 17:17:41 UTC
build: 0.267

Comment 3 Preethi Thomas 2012-02-20 14:34:46 UTC
fails_qa

The message is different for file delete and package delete, it would be better if we can have the same type of error message.

[root@preethi ~]# pulp-admin content delete -f test.txt
error:  operation failed: FileHasReferences: file [884c4aea-6a22-43f9-b681-5c69dff6112c] has references, delete not permitted

[root@preethi ~]# pulp-admin content delete -f pulp-0.0.168-1.fc14.noarch.rpm
Content with filename [pulp-0.0.168-1.fc14.noarch.rpm] is currently associated a repository; skipping delete

Comment 4 Pradeep Kilambi 2012-02-20 17:27:41 UTC
commit b2eae8efff047cf71623cdd0fc46a3ca4ce0c0ce

Comment 5 Jeff Ortel 2012-02-21 23:13:51 UTC
build: 0.267-2

Comment 6 Preethi Thomas 2012-02-22 13:41:32 UTC
verified
[root@katello-test ~]# pulp-admin content delete -f test1.txt
Filename [test1.txt] is currently associated with one or more repositories; skipping delete
[root@katello-test ~]# pulp-admin content delete -f pulp-common-0.0.254-8.noarch.rpm
Filename [pulp-common-0.0.254-8.noarch.rpm] is currently associated with one or more repositories; skipping delete
[root@katello-test ~]# rpm -q pulp
pulp-0.0.267-2.el6.noarch

Comment 7 Preethi Thomas 2012-02-24 20:17:35 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 8 Preethi Thomas 2012-02-24 20:18:32 UTC
Pulp v1.0 is released.