Bug 982509 - When removing an rpm from an repository the link to the rpm under /var/lib/pulp/working/repos/<repo-name>/distributors/yum_distributor/ is not removed.
Summary: When removing an rpm from an repository the link to the rpm under /var/lib/pu...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 2.1.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: 2.4.0
Assignee: Mike McCune
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-09 08:29 UTC by pgustafs
Modified: 2014-08-09 06:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-09 06:56:05 UTC
Embargoed:


Attachments (Terms of Use)

Description pgustafs 2013-07-09 08:29:11 UTC
Description of problem:
When removing an rpm from an repository the link to the rpm under /var/lib/pulp/working/repos/<repo-name>/distributors/yum_distributor/ is not removed.


Version-Release number of selected component (if applicable):
pulp-selinux-2.1.3-1.el6.noarch
pulp-builtins-admin-extensions-2.1.3-1.el6.noarch
pulp-rpm-admin-extensions-2.1.3-1.el6.noarch
pulp-server-2.1.3-1.el6.noarch
pulp-rpm-plugins-2.1.3-1.el6.noarch
pulp-puppet-plugins-2.1.3-1.el6.noarch
pulp-admin-client-2.1.3-1.el6.noarch
pulp-puppet-admin-extensions-2.1.3-1.el6.noarch



How reproducible:
Always


Steps to Reproduce:
1. Upload an rpm to an repo:
pulp-admin rpm repo uploads rpm -f /tmp/test-1.0-1.noarch.rpm --repo-id=foo
2. Publish the rpm:
pulp-admin rpm repo publish run --repo-id=foo

3.# ls -l /var/lib/pulp/working/repos/foo/distributors/yum_distributor/test-1.0-1.noarch.rpm
lrwxrwxrwx. 1 apache apache 164 Jul  9 09:32 /var/lib/pulp/working/repos/foo/distributors/yum_distributor/test-1.0-1.noarch.rpm -> /var/lib/pulp/content/rpm/ipa-python/1.0/1/noarch/c1fe260f1e486b4784e326e6fca5d99618253a25b44ee75318dd8e4576090bcf/test-1.0-1.noarch.rpm

3. Remove the rpm:
# pulp-admin rpm repo remove rpm --repo-id foo --str-eq="filename=test-1.0-1.noarch.rpm"


# pulp-admin repo tasks list --repo-id NetEnt-rhel-6-server-x86_64-appdev-game-execution-environment
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

Operations:  unassociate
Resources:   foo
             (repository)
State:       Successful
Start Time:  2013-07-09T08:22:25Z
Finish Time: 2013-07-09T08:22:25Z
Result:      N/A
Task Id:     5f4fedd4-34a8-4d4e-9521-c5661afbb74e

# pulp-admin rpm repo publish run --repo-id=foo

#  ls -l /var/lib/pulp/working/repos/foo/distributors/yum_distributor/test-1.0-1.noarch.rpm
lrwxrwxrwx. 1 apache apache 164 Jul  9 09:32 /var/lib/pulp/working/repos/foo/distributors/yum_distributor/test-1.0-1.noarch.rpm -> /var/lib/pulp/content/rpm/ipa-python/1.0/1/noarch/c1fe260f1e486b4784e326e6fca5d99618253a25b44ee75318dd8e4576090bcf/test-1.0-1.noarch.rpm
Actual results:


Expected results:

The link to the rpm under /var/lib/pulp/working/repos/<repo name>/distributors/yum_distributor/ should be removed when removing an rpm from an repository.


Additional info:

Comment 2 Jason Connor 2013-11-13 20:01:46 UTC
This has been fixed as part of the new yum distributor

Comment 4 Jeff Ortel 2014-04-03 13:35:41 UTC
build: 2.4.0-0.7.beta

Comment 5 Preethi Thomas 2014-04-15 15:42:01 UTC
verified
[root@pulp-24-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.9.beta.el6.noarch
[root@pulp-24-server ~]#

Comment 6 Randy Barlow 2014-08-09 06:56:05 UTC
This has been fixed in Pulp 2.4.0-1.


Note You need to log in before you can comment on or make changes to this bug.