Bug 708369
Summary: | After deleting all repos, rpm's under the "packages" directory should also be removed | ||
---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> |
Component: | Upstream | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED NOTABUG | QA Contact: | wes hayutin <whayutin> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 | CC: | kbidarka, sghai, tsanders |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-07-27 11:37:31 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: | 711223 |
Description
Sachin Ghai
2011-05-27 13:22:12 UTC
added to rhui-20 tracker rhui (repo) => d Select one or more repositories: Custom Repositories Red Hat Repositories - 1 : Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more repositories: Custom Repositories Red Hat Repositories x 1 : Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be deleted: Red Hat Repositories Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64) Proceed? (y/n) y Deleting Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64)... ------------------------------------------------------------------------------ rhui (repo) => [root@dhcp193-163 packages]# cd .. [root@dhcp193-163 pulp]# du -h --max-depth=1 3.5G ./packages 180K ./published 4.0K ./repos 3.5G . [root@dhcp193-163 pulp]# cd p packages/ published/ [root@dhcp193-163 pulp]# cd packages/ Display all 2085 possibilities? (y or n) [root@dhcp193-163 pulp]# cd packages/libwvstreams libwvstreams/ libwvstreams-devel/ [root@dhcp193-163 pulp]# cd packages/libwvstreams/4.6/6.el6/i686/5e0/ [root@dhcp193-163 5e0]# ls libwvstreams-4.6-6.el6.i686.rpm [root@dhcp193-163 5e0]# In new build ( pulp 0.190 and rhui-tools 2.0.30 ), I found the same behaviour. I created one repo of rhel6 optional RPMs and removed it. However I can still see the packages under /var/lib/pulp/packages directry. Is it intentional ? Im pointing this because a single repo occupies around 3.5G of space even after deletion. Request to change the repo API to automatically handle this made in bugzilla 713912. Moving to ON_QA, this is the behavior of the Pulp server. I tested this again with pulp 0.211. I added following repos: Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64) Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64) Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) And size was as below. [root@dhcp201-127 pulp]# du -h --max-depth=1 33G ./packages 152K ./published 489M ./repos 34G . I removed all rhui-managed repos. And checked the size of "packages" folder. Its about 3.1G. [root@dhcp201-127 pulp]# du -h --max-depth=1 3.1G ./packages 204K ./published 435M ./repos 3.5G . Since this is the behaviour of pulp-server, closing this defect. |