| Summary: | [RFE] We need some sort of mechanism to clean out /var/lib/upload | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | skarmark |
| Target Milestone: | --- | Keywords: | FutureFeature, Reopened, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-09 17:08:28 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jay Dobies
2011-06-22 14:39:46 UTC
I added a DELETE URL in v2 for this. QA can try this out. Cancel an upload during the uploading bits step. Notice in /var/lib/pulp/uploads there's a directory created for it (it has a UUID). Cancel the upload through the CLI and make sure that dir is deleted on the server. verified
[root@preethi uploads]# pulp-admin -u admin -p admin rpm repo uploads rpm --repo-id upload2 --dir /root/uploads/ -v
+----------------------------------------------------------------------+
Puppet Module Upload
+----------------------------------------------------------------------+
Files to be uploaded:
grinder-0.1.5-2.fc17.noarch.rpm
pulp-large_1mb_test-packageB-0.1.1-1.fc14.noarch.rpm
gofer-0.71-1.fc17.noarch.rpm
pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
Extracting necessary metdata for each request...
[==================================================] 100%
Analyzing: pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
... completed
Creating upload requests on the server...
[==================================================] 100%
Initializing: pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
... completed
Starting upload of selected packages. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
cancelled entirely using the cancel command.
Uploading: grinder-0.1.5-2.fc17.noarch.rpm
[==================================================] 100%
148189/148189 bytes
... completed
Importing into the repository...
^CUploading paused
[root@preethi ~]# ll /var/lib/pulp/uploads/
total 148
-rw-r--r--. 1 apache apache 0 Nov 7 10:28 49a60e81-484c-4dda-83d3-7505a6e7be28
-rw-r--r--. 1 apache apache 0 Nov 7 10:28 76c12d4f-5b14-44a8-a3c3-c9a158ea2d07
-rw-r--r--. 1 apache apache 148189 Nov 7 10:28 ae2c4600-65e2-449e-ae87-5af3da3898ba
-rw-r--r--. 1 apache apache 0 Nov 7 10:28 eb040cb9-1072-41e6-aaa6-b210eb490089
[root@preethi uploads]# pulp-admin rpm repo uploads list
+----------------------------------------------------------------------+
Upload Requests
+----------------------------------------------------------------------+
[ Paused ] pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
[ Paused ] pulp-large_1mb_test-packageB-0.1.1-1.fc14.noarch.rpm
[ Paused ] gofer-0.71-1.fc17.noarch.rpm
[ Paused ] grinder-0.1.5-2.fc17.noarch.rpm
[root@preethi uploads]# pulp-admin login -u admin -p admin
Successfully logged in. Session certificate will expire at Nov 14 15:30:56 2012
GMT.
[root@preethi uploads]# pulp-admin rpm repo uploads cancel
+----------------------------------------------------------------------+
Upload Requests
+----------------------------------------------------------------------+
Select one or more uploads to cancel:
- 1 : pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
- 2 : pulp-large_1mb_test-packageB-0.1.1-1.fc14.noarch.rpm
- 3 : gofer-0.71-1.fc17.noarch.rpm
- 4 : grinder-0.1.5-2.fc17.noarch.rpm
Enter value (1-4) to toggle selection, 'c' to confirm selections, or '?' for
more commands: 1-4
Select one or more uploads to cancel:
x 1 : pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
x 2 : pulp-large_1mb_test-packageB-0.1.1-1.fc14.noarch.rpm
x 3 : gofer-0.71-1.fc17.noarch.rpm
x 4 : grinder-0.1.5-2.fc17.noarch.rpm
Enter value (1-4) to toggle selection, 'c' to confirm selections, or '?' for
more commands: c
Successfully deleted pulp-large_1mb_test-packageA-0.1.1-1.fc14.noarch.rpm
Successfully deleted pulp-large_1mb_test-packageB-0.1.1-1.fc14.noarch.rpm
Successfully deleted gofer-0.71-1.fc17.noarch.rpm
Successfully deleted grinder-0.1.5-2.fc17.noarch.rpm
[root@preethi uploads]#
[root@preethi ~]# ll /var/lib/pulp/uploads/
total 0
[root@preethi ~]#
Pulp v2.0 released |