Bug 673229

Summary: Deleting consumer is not deleting the pulp.repo
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jortel, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 20   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:09:12 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: 647488    

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.