RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1200723 - repos --list displays content/repo overriden at SKU level as enabled even after that subscription is removed
Summary: repos --list displays content/repo overriden at SKU level as enabled even aft...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
: 1201764 (view as bug list)
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2015-03-11 09:44 UTC by Shwetha Kallesh
Modified: 2015-05-15 19:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-07 18:25:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shwetha Kallesh 2015-03-11 09:44:46 UTC
Description of problem:
Observed that when you attach a subscription that is overridden at SKU level and a subscription with different SKU that is not overridden ,both provide subscription for the same installed product,remove the  subscription tht is overridden at SKU level,repos --list still shows the overridden value even though that subscription is removed

Version-Release number of selected component (if applicable):
[root@dhcp35-236 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.45-1
subscription management rules: 5.14
subscription-manager: 1.14.1-1.git.84.66aafd7.el6
python-rhsm: 1.14.2-1.git.0.fafb02d.el6



How reproducible:


Steps to Reproduce:
[root@dhcp35-236 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Stackable guest limit 4
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-guestlimit-4-stackable
Contract:            1
Account:             12331131231
Serial:              1045074050018573100
Pool ID:             8ac681e44bf828b6014bf829e7c91897
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Stackable
Starts:              03/08/2015
Ends:                03/07/2016
System Type:         Physical


[root@dhcp35-236 ~]# curl --stderr /dev/null --insecure --user admin:admin --request GET https://10.70.1.100:8443/candlepin/content/ | python -mjson.tool | grep never-enabled-content -B6
    {
        "arches": null, 
        "contentUrl": "/foo/path/never", 
        "created": "2015-03-08T06:53:25.214+0000", 
        "gpgUrl": "/foo/path/never/gpg", 
        "id": "0", 
        "label": "never-enabled-content", 
        "metadataExpire": 600, 
        "modifiedProductIds": [], 
        "name": "never-enabled-content", 

Now override the content for the SKU awesomeos-guestlimit-4-stackable

[root@dhcp35-236 ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT --data '{"attributes":[{"name":"version","value":"1.0"},{"name":"variant","value":"ALL"},{"name":"support_type","value":"Self-Support"},{"name":"sockets","value":"2"},{"name":"arch","value":"ALL"},{"name":"management_enabled","value":"0"},{"name":"type","value":"MKT"},{"name":"support_level","value":"None"},{"name":"warning_period","value":"30"},{"name":"vcpu","value":"4"},{"name":"multi-entitlement","value":"no","name":"content_override_enabled","value":"0"}]}' --header 'accept:application/json' --header 'content-type: application/json' https://10.70.1.100:8443/candlepin/products/awesomeos-guestlimit-4-stackable
{
  "id" : "awesomeos-guestlimit-4-stackable",
  "name" : "Awesome OS Stackable guest limit 4",
  "multiplier" : 1,
  "attributes" : [ {
    "name" : "version",
    "value" : "1.0",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "variant",
    "value" : "ALL",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "content_override_enabled",
    "value" : "0",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "support_type",
    "value" : "Self-Support",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "sockets",
    "value" : "2",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "arch",
    "value" : "ALL",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "management_enabled",
    "value" : "0",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "type",
    "value" : "MKT",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "support_level",
    "value" : "None",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "warning_period",
    "value" : "30",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  }, {
    "name" : "vcpu",
    "value" : "4",
    "created" : "2015-03-11T07:35:17.077+0000",
    "updated" : "2015-03-11T07:35:17.077+0000"
  } ],
  "productContent" : [ ],
  "dependentProductIds" : [ ],
  "href" : "/products/awesomeos-guestlimit-4-stackable",
  "created" : "2015-03-08T06:53:57.656+0000",
  "updated" : "2015-03-08T06:53:57.656+0000"
}[root@dhcp35-236 ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT https://10.70.1.100:8443/candlepin/owners/admin/subscriptions 
{
  "id" : "refresh_pools_f6d71136-1cb4-4c91-a9e9-d57e3c1e00ee",
  "state" : "CREATED",
  "startTime" : null,
  "finishTime" : null,
  "result" : null,
  "principalName" : "admin",
  "targetType" : "owner",
  "targetId" : "admin",
  "statusPath" : "/jobs/refresh_pools_f6d71136-1cb4-4c91-a9e9-d57e3c1e00ee",
  "done" : false,
  "group" : "async group",
  "created" : "2015-03-11T07:35:34.576+0000",
  "updated" : "2015-03-11T07:35:34.576+0000"
}[root@dhcp35-236 ~]# 
[root@dhcp35-236 ~]# subscription-manager remove --all
1 subscription removed at the server.
1 local certificate has been deleted.
[root@dhcp35-236 ~]# subscription-manager attach --pool 8ac681e44bf828b6014bf829e7c91897
Successfully attached a subscription for: Awesome OS Stackable guest limit 4
[root@dhcp35-236 ~]#  subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   never-enabled-content
Repo Name: never-enabled-content
Repo URL:  https://cdn.redhat.com/foo/path/never
Enabled:   1                                          ------------> Never-enabled-content is now enabled

Repo ID:   content-label-no-gpg
Repo Name: content-nogpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0
  
[root@dhcp35-236 ~]# rct cat-cert /etc/pki/entitlement/7592683036189706705.pem 

+-------------------------------------------+
	Entitlement Certificate
+-------------------------------------------+

Certificate:
	Path: /etc/pki/entitlement/7592683036189706705.pem
	Version: 3.2
	Serial: 7592683036189706705
	Start Date: 2015-03-08 00:00:00+00:00
	End Date: 2016-03-07 00:00:00+00:00
	Pool ID: 8ac681e44bf828b6014bf829e7c91897

Subject:
	CN: 8ac681e44bf828b6014c07c2dc7b4da4

Issuer:
	C: US
	CN: 10.70.1.100
	L: Raleigh

Product:
	ID: 37060
	Name: Awesome OS Server Bits
	Version: 6.1
	Arch: ALL
	Tags: 
	Brand Type: OS
	Brand Name: Branded Awesome OS Stackable guest limit 4

Order:
	Name: Awesome OS Stackable guest limit 4
	Number: order-8675309
	SKU: awesomeos-guestlimit-4-stackable
	Contract: 1
	Account: 12331131231
	Service Level: None
	Service Type: Self-Support
	Quantity: 10
	Quantity Used: 1
	Socket Limit: 2
	RAM Limit: 
	Core Limit: 
	Virt Only: False
	Stacking ID: 
	Warning Period: 30
	Provides Management: False

Content:
	Type: yum
	Name: content
	Label: content-label
	Vendor: test-vendor
	URL: /foo/path
	GPG: /foo/path/gpg/
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: content-emptygpg
	Label: content-label-empty-gpg
	Vendor: test-vendor
	URL: /foo/path
	GPG: 
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: content-nogpg
	Label: content-label-no-gpg
	Vendor: test-vendor
	URL: /foo/path
	GPG: 
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: never-enabled-content
	Label: never-enabled-content
	Vendor: test-vendor
	URL: /foo/path/never
	GPG: /foo/path/never/gpg
	Enabled: True                      ---------------------------> Value is now overriden at SKU level
	Expires: 600
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: tagged-content
	Label: tagged-content
	Vendor: test-vendor
	URL: /foo/path/always
	GPG: /foo/path/always/gpg
	Enabled: False
	Expires: 
	Required Tags: TAG1, TAG2
	Arches: ALL
[root@dhcp35-236 ~]# 
[root@dhcp35-236 ~]# subscription-manager list --avail --match-installed
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Stackable guest limit 4
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-guestlimit-4-stackable
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829e59317e1
Provides Management: No
Available:           5
Suggested:           1
Service Level:       None
Service Type:        Self-Support
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Basic (multi-entitlement)
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-server-basic-me
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829bb620c0b
Provides Management: No
Available:           10
Suggested:           1
Service Level:       None
Service Type:        Self-Support
Subscription Type:   Multi-Entitleable
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS with up to 4 virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-4
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829d74813ff
Provides Management: No
Available:           5
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Multi-Entitleable
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS with unlimited virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlimited
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829ea311948
Provides Management: No
Available:           5
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS with up to 4 virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-4
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829e65e181e
Provides Management: No
Available:           10
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Multi-Entitleable
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Basic
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-server-basic
Contract:            0
Pool ID:             8ac681e44bf828b6014bf8299bd907c4
Provides Management: No
Available:           5
Suggested:           1
Service Level:       None
Service Type:        Self-Support
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Bundled
Provides:            Management Bits
                     Load Balancing Bits
                     Shared Storage Bits
                     Clustering Bits
                     Awesome OS Server Bits
                     Large File Support Bits
SKU:                 awesomeos-server
Contract:            0
Pool ID:             8ac681e44bf828b6014bf8299d4007e2
Provides Management: Yes
Available:           5
Suggested:           1
Service Level:       Premium
Service Type:        Level 3
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS with unlimited virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlimited
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829d8d7146f
Provides Management: No
Available:           10
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical



Subscription Name:   Awesome OS physical with unlimited guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlmtd-phys
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829ed2c1a52
Provides Management: No
Available:           5
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical


Subscription Name:   Awesome OS Server Bundled (2 Sockets, Standard Support)
Provides:            Management Bits
                     Load Balancing Bits
                     Shared Storage Bits
                     Clustering Bits
                     Awesome OS Server Bits
                     Large File Support Bits
SKU:                 awesomeos-server-2-socket-std
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829965a06dc
Provides Management: Yes
Available:           5
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Basic
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-server-basic
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829a5780920
Provides Management: No
Available:           10
Suggested:           1
Service Level:       None
Service Type:        Self-Support
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Basic (multi-entitlement)
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-server-basic-me
Contract:            0
Pool ID:             8ac681e44bf828b6014bf829b1830a59
Provides Management: No
Available:           5
Suggested:           1
Service Level:       None
Service Type:        Self-Support
Subscription Type:   Multi-Entitleable
Ends:                03/07/2016
System Type:         Physical


Subscription Name:   Awesome OS Server Bundled (2 Sockets, Standard Support)
Provides:            Management Bits
                     Load Balancing Bits
                     Shared Storage Bits
                     Clustering Bits
                     Awesome OS Server Bits
                     Large File Support Bits
SKU:                 awesomeos-server-2-socket-std
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829b6100b05
Provides Management: Yes
Available:           10
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS physical with unlimited guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlmtd-phys
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829d982149c
Provides Management: No
Available:           10
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Server Bundled
Provides:            Management Bits
                     Load Balancing Bits
                     Shared Storage Bits
                     Clustering Bits
                     Awesome OS Server Bits
                     Large File Support Bits
SKU:                 awesomeos-server
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829a6f80955
Provides Management: Yes
Available:           10
Suggested:           1
Service Level:       Premium
Service Type:        Level 3
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Virtual Datacenter
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-datacenter
Contract:            1
Pool ID:             8ac681e44bf828b6014bf829f9c81d86
Provides Management: No
Available:           10
Suggested:           1
Service Level:       
Service Type:        
Subscription Type:   Standard
Ends:                03/07/2016
System Type:         Physical

Now attach a subscription with different SKU for the same installed product

[root@dhcp35-236 ~]# subscription-manager attach --pool 8ac681e44bf828b6014bf829a6f80955
Successfully attached a subscription for: Awesome OS Server Bundled

[root@dhcp35-236 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   never-enabled-content
Repo Name: never-enabled-content
Repo URL:  https://cdn.redhat.com/foo/path/never
Enabled:   1

Repo ID:   content-label-no-gpg
Repo Name: content-nogpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

[root@dhcp35-236 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Server Bundled
Provides:            Clustering Bits
                     Awesome OS Server Bits
                     Load Balancing Bits
                     Large File Support Bits
                     Shared Storage Bits
                     Management Bits
SKU:                 awesomeos-server
Contract:            1
Account:             12331131231
Serial:              1867737516182455858
Pool ID:             8ac681e44bf828b6014bf829a6f80955
Provides Management: Yes
Active:              True
Quantity Used:       1
Service Level:       Premium
Service Type:        Level 3
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/08/2015
Ends:                03/07/2016
System Type:         Physical

Subscription Name:   Awesome OS Stackable guest limit 4
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-guestlimit-4-stackable
Contract:            1
Account:             12331131231
Serial:              7592683036189706705
Pool ID:             8ac681e44bf828b6014bf829e7c91897
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       None
Service Type:        Self-Support
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/08/2015
Ends:                03/07/2016
System Type:         Physical

[root@dhcp35-236 ~]# subscription-manager remove --serial 7592683036189706705
Serial numbers successfully removed at the server:
   7592683036189706705
1 local certificate has been deleted.
[root@dhcp35-236 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   never-enabled-content
Repo Name: never-enabled-content
Repo URL:  https://cdn.redhat.com/foo/path/never
Enabled:   1                                         --------------------> observe that repo is still in enabled state even after removing the 
                                                                            subscription 
Repo ID:   content-label-no-gpg
Repo Name: content-nogpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

[root@dhcp35-236 ~]# rct cat-cert /etc/pki/entitlement/1867737516182455858.pem 

+-------------------------------------------+
	Entitlement Certificate
+-------------------------------------------+

Certificate:
	Path: /etc/pki/entitlement/1867737516182455858.pem
	Version: 3.2
	Serial: 1867737516182455858
	Start Date: 2015-03-08 00:00:00+00:00
	End Date: 2016-03-07 00:00:00+00:00
	Pool ID: 8ac681e44bf828b6014bf829a6f80955

Subject:
	CN: 8ac681e44bf828b6014c07d59f974dbe

Issuer:
	C: US
	CN: 10.70.1.100
	L: Raleigh

Product:
	ID: 37060
	Name: Awesome OS Server Bits
	Version: 6.1
	Arch: ALL
	Tags: 
	Brand Type: 
	Brand Name: 

Product:
	ID: 37065
	Name: Clustering Bits
	Version: 1.0
	Arch: ALL
	Tags: 
	Brand Type: OS
	Brand Name: Branded Awesome OS Server Bundled

Product:
	ID: 37067
	Name: Shared Storage Bits
	Version: 1.0
	Arch: ALL
	Tags: 
	Brand Type: 
	Brand Name: 

Product:
	ID: 37068
	Name: Large File Support Bits
	Version: 1.0
	Arch: ALL
	Tags: 
	Brand Type: 
	Brand Name: 

Product:
	ID: 37069
	Name: Management Bits
	Version: 1.0
	Arch: ALL
	Tags: 
	Brand Type: 
	Brand Name: 

Product:
	ID: 37070
	Name: Load Balancing Bits
	Version: 1.0
	Arch: ALL
	Tags: 
	Brand Type: 
	Brand Name: 

Order:
	Name: Awesome OS Server Bundled
	Number: order-8675309
	SKU: awesomeos-server
	Contract: 1
	Account: 12331131231
	Service Level: Premium
	Service Type: Level 3
	Quantity: 10
	Quantity Used: 1
	Socket Limit: 2
	RAM Limit: 
	Core Limit: 
	Virt Only: False
	Stacking ID: 
	Warning Period: 30
	Provides Management: True

Content:
	Type: yum
	Name: content
	Label: content-label
	Vendor: test-vendor
	URL: /foo/path
	GPG: /foo/path/gpg/
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: content-emptygpg
	Label: content-label-empty-gpg
	Vendor: test-vendor
	URL: /foo/path
	GPG: 
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: content-nogpg
	Label: content-label-no-gpg
	Vendor: test-vendor
	URL: /foo/path
	GPG: 
	Enabled: False
	Expires: 0
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: never-enabled-content
	Label: never-enabled-content
	Vendor: test-vendor
	URL: /foo/path/never
	GPG: /foo/path/never/gpg
	Enabled: False                 ---------------------> observe that repo is disabled
	Expires: 600
	Required Tags: 
	Arches: ALL

Content:
	Type: yum
	Name: tagged-content
	Label: tagged-content
	Vendor: test-vendor
	URL: /foo/path/always
	GPG: /foo/path/always/gpg
	Enabled: False
	Expires: 
	Required Tags: TAG1, TAG2
	Arches: ALL


[root@dhcp35-236 ~]# subscription-manager refresh
All local data refreshed
[root@dhcp35-236 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   never-enabled-content
Repo Name: never-enabled-content
Repo URL:  https://cdn.redhat.com/foo/path/never
Enabled:   1                                           --->value is still enabled

Repo ID:   content-label-no-gpg
Repo Name: content-nogpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0



Actual results:


Expected results:


Additional info:

Comment 2 Devan Goodwin 2015-04-07 18:25:59 UTC
I believe this is an issue we cannot fix, what is happening is the new content definition comes down to client, it now sees the old value and thinks it's a manual edit which must be preserved, there's no way for us to know it was from some since removed sku override. 

Has to be worked around manually if this is hit, just edit the value, remove the content set, add a system override for it, etc. Regeneration of the file or re-adding that content set should fix the issue.

Comment 3 Devan Goodwin 2015-04-07 18:31:37 UTC
*** Bug 1201764 has been marked as a duplicate of this bug. ***


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