Bug 673229 - Deleting consumer is not deleting the pulp.repo
Summary: Deleting consumer is not deleting the pulp.repo
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: Sprint 20
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-27 19:00 UTC by Preethi Thomas
Modified: 2011-08-16 12:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:09:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-01-27 19:00:01 UTC
Description of problem:

[root@preethi ~]# rpm -q pulp
pulp-0.0.132-1.fc14.noarch

Looks like if you delete a consumer that is bound to a repo, the consumer gets deleted, but the pulp.repo remains in /et/yum.repos.d and yum repolist list the repo




[root@pulp2 ~]# pulp-client -u admin -p admin consumer unbind --repoid=f14
Successfully unsubscribed consumer [10.16.79.226] from repo [f14]

[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# cat /etc/yum.repos.d/pulp.repo 
#
# Pulp Repositories
# Managed by Pulp client
#
[root@pulp2 ~]# pulp-client -u admin -p admin consumer bind --repoid=f14
Successfully subscribed consumer [10.16.79.226] to repo [f14]

[root@pulp2 ~]# cat /etc/yum.repos.d/pulp.repo 
#
# Pulp Repositories
# Managed by Pulp client
#

[f14]
name = f14
baseurl = https://preethi.usersys.redhat.com/pulp/repos/released/F-14/GOLD/Fedora/x86_64/os
enabled = 1
sslverify = 0
gpgcheck = 0[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# pulp-client -u admin -p admin consumer delete --id=10.16.79.226
Successfully deleted consumer [10.16.79.226]

[root@pulp2 ~]# cat /etc/yum.repos.d/pulp.repo 
#
# Pulp Repositories
# Managed by Pulp client
#

[f14]
name = f14
baseurl = https://preethi.usersys.redhat.com/pulp/repos/released/F-14/GOLD/Fedora/x86_64/os
enabled = 1
sslverify = 0
gpgcheck = 0[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# cat /etc/yum.repos.d/pulp.repo 
#
# Pulp Repositories
# Managed by Pulp client
#

[f14]
name = f14
baseurl = https://preethi.usersys.redhat.com/pulp/repos/released/F-14/GOLD/Fedora/x86_64/os
enabled = 1
sslverify = 0
gpgcheck = 0[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# 
[root@pulp2 ~]# yum repolist
f14                                                      | 3.7 kB     00:00     
repo id                     repo name                                     status
f14                         f14                                            2,766
fedora                      Fedora 14 - x86_64                            22,161
fedora-pulp                 Pulp Testing Builds                               10
updates                     Fedora 14 - x86_64 - Updates                   5,736
repolist: 30,673


Expected results:


Additional info:

Comment 1 Jeff Ortel 2011-02-01 19:05:30 UTC
Fixed with 673518.

Comment 2 Jay Dobies 2011-02-02 20:07:05 UTC
Fixed in 0.134.

Comment 3 Preethi Thomas 2011-02-03 17:25:44 UTC
verified
[root@10 ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch

[root@10 ~]# pulp-client -u admin -p admin consumer bind --id=remote_client --repoid=f14-update
Successfully subscribed consumer [remote_client] to repo [f14-update]

[root@10 ~]# cat /etc/yum.repos.d/pulp.repo #
# Pulp Repositories
# Managed by Pulp client
#

[f14-update]
name = f14-updates
baseurl = https://preethi.usersys.redhat.com/pulp/repos/pub/fedora/linux//updates/14/x86_64
enabled = 1
sslverify = 0
gpgcheck = 0[pulp-client -u admin -p admin consumer unbind --id=remote_client --repoid=f14-update
Successfully unsubscribed consumer [remote_client] from repo [f14-update]

[root@10 ~]# cat /etc/yum.repos.d/pulp.repo #
# Pulp Repositories
# Managed by Pulp client
#
[root@10 ~]#

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.


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