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 1855280 - rhsmcertd will update the syspurpose to the Satellite/RHSM server on every certCheck even there is no change [rhel-7.8.z]
Summary: rhsmcertd will update the syspurpose to the Satellite/RHSM server on every ce...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 7.8
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1838012
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-09 12:49 UTC by RAD team bot copy to z-stream
Modified: 2024-12-20 19:09 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1838012
Environment:
Last Closed: 2020-08-06 15:38:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2264 0 None closed 1838012: prevent redundant remote syspurpose sync 2021-02-04 12:59:49 UTC
Red Hat Product Errata RHBA-2020:3355 0 None None None 2020-08-06 15:38:15 UTC

Description RAD team bot copy to z-stream 2020-07-09 12:49:58 UTC
This bug has been copied from bug #1838012 and has been proposed to be backported to 7.8 z-stream (EUS).

Comment 5 Craig Donnelly 2020-07-13 21:20:06 UTC
Verifying against RHEL 7.8.z with subscription-manager-1.24.26-4.el7_8:

Reproducing issues with 7.8.z sub-man (1.24.26-3.el7_8)

Trigger with syspurpose put of already known attributes:

splay = 0;restart rhsmcertd ->

foreman/production.log
2020-07-13T17:08:02 [I|app|946305f4] Started PUT "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9" for 10.8.29.112 at 2020-07-13 17:08:02 -0400
2020-07-13T17:08:02 [I|app|946305f4] Processing by Katello::Api::Rhsm::CandlepinProxiesController#facts as JSON
2020-07-13T17:08:02 [I|app|946305f4]   Parameters: {"usage"=>"", "addOns"=>[], "role"=>"RHEL Potato", "serviceLevel"=>"", "id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}

Updating to new version:

[root@dhcp-8-29-112 ~]# yum update --disablerepo rhel-7-server-rpms
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package python-syspurpose.x86_64 0:1.24.26-3.el7_8 will be updated
---> Package python-syspurpose.x86_64 0:1.24.26-4.el7_8 will be an update
---> Package subscription-manager.x86_64 0:1.24.26-3.el7_8 will be updated
---> Package subscription-manager.x86_64 0:1.24.26-4.el7_8 will be an update
---> Package subscription-manager-rhsm.x86_64 0:1.24.26-3.el7_8 will be updated
---> Package subscription-manager-rhsm.x86_64 0:1.24.26-4.el7_8 will be an update
---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.26-3.el7_8 will be updated
---> Package subscription-manager-rhsm-certificates.x86_64 0:1.24.26-4.el7_8 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                                  Arch     Version              Repository                                             Size
====================================================================================================================================
Updating:
 python-syspurpose                        x86_64   1.24.26-4.el7_8      brew-task-repo-subscription-manager-1.24.26-4.el7_8   268 k
 subscription-manager                     x86_64   1.24.26-4.el7_8      brew-task-repo-subscription-manager-1.24.26-4.el7_8   1.1 M
 subscription-manager-rhsm                x86_64   1.24.26-4.el7_8      brew-task-repo-subscription-manager-1.24.26-4.el7_8   327 k
 subscription-manager-rhsm-certificates   x86_64   1.24.26-4.el7_8      brew-task-repo-subscription-manager-1.24.26-4.el7_8   236 k

Transaction Summary
====================================================================================================================================
Upgrade  4 Packages

Total download size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/4): python-syspurpose-1.24.26-4.el7_8.x86_64.rpm                                                          | 268 kB  00:00:00     
(2/4): subscription-manager-1.24.26-4.el7_8.x86_64.rpm                                                       | 1.1 MB  00:00:00     
(3/4): subscription-manager-rhsm-1.24.26-4.el7_8.x86_64.rpm                                                  | 327 kB  00:00:00     
(4/4): subscription-manager-rhsm-certificates-1.24.26-4.el7_8.x86_64.rpm                                     | 236 kB  00:00:00     
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                               2.2 MB/s | 1.9 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : subscription-manager-rhsm-certificates-1.24.26-4.el7_8.x86_64                                                    1/8 
  Updating   : subscription-manager-rhsm-1.24.26-4.el7_8.x86_64                                                                 2/8 
  Updating   : python-syspurpose-1.24.26-4.el7_8.x86_64                                                                         3/8 
  Updating   : subscription-manager-1.24.26-4.el7_8.x86_64                                                                      4/8 
  Cleanup    : subscription-manager-1.24.26-3.el7_8.x86_64                                                                      5/8 
  Cleanup    : subscription-manager-rhsm-1.24.26-3.el7_8.x86_64                                                                 6/8 
  Cleanup    : subscription-manager-rhsm-certificates-1.24.26-3.el7_8.x86_64                                                    7/8 
  Cleanup    : python-syspurpose-1.24.26-3.el7_8.x86_64                                                                         8/8 
Loaded plugins: product-id, subscription-manager
  Verifying  : python-syspurpose-1.24.26-4.el7_8.x86_64                                                                         1/8 
  Verifying  : subscription-manager-rhsm-certificates-1.24.26-4.el7_8.x86_64                                                    2/8 
  Verifying  : subscription-manager-1.24.26-4.el7_8.x86_64                                                                      3/8 
  Verifying  : subscription-manager-rhsm-1.24.26-4.el7_8.x86_64                                                                 4/8 
  Verifying  : subscription-manager-rhsm-certificates-1.24.26-3.el7_8.x86_64                                                    5/8 
  Verifying  : python-syspurpose-1.24.26-3.el7_8.x86_64                                                                         6/8 
  Verifying  : subscription-manager-1.24.26-3.el7_8.x86_64                                                                      7/8 
  Verifying  : subscription-manager-rhsm-1.24.26-3.el7_8.x86_64                                                                 8/8 

Updated:
  python-syspurpose.x86_64 0:1.24.26-4.el7_8                 subscription-manager.x86_64 0:1.24.26-4.el7_8                          
  subscription-manager-rhsm.x86_64 0:1.24.26-4.el7_8         subscription-manager-rhsm-certificates.x86_64 0:1.24.26-4.el7_8        

Complete!
================

restart rhsmcertd; wait 120 ->

Full output of checkin to satellite from production.log:

2020-07-13T17:12:47 [I|app|c46299fd] Started GET "/rhsm/" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|c46299fd] Processing by Katello::Api::V2::RootController#rhsm_resource_list as JSON
2020-07-13T17:12:47 [I|app|c46299fd]   Parameters: {"root"=>{}}
2020-07-13T17:12:47 [I|app|c46299fd]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/views/katello/api/v2/root/resource_list.json.rabl within katello/api/v2/layouts/collection
2020-07-13T17:12:47 [I|app|c46299fd]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/views/katello/api/v2/root/resource_list.json.rabl within katello/api/v2/layouts/collection (4.4ms)
2020-07-13T17:12:47 [I|app|c46299fd] Completed 200 OK in 45ms (Views: 6.6ms | ActiveRecord: 6.4ms)
2020-07-13T17:12:47 [I|app|b36c652c] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/certificates/serials" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|b36c652c] Processing by Katello::Api::Rhsm::CandlepinProxiesController#serials as JSON
2020-07-13T17:12:47 [I|app|b36c652c]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:47 [I|app|b36c652c] Completed 200 OK in 78ms (Views: 0.5ms | ActiveRecord: 10.6ms)
2020-07-13T17:12:47 [I|app|1b281a84] Started GET "/rhsm/status" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|1b281a84] Processing by Katello::Api::Rhsm::CandlepinProxiesController#server_status as JSON
2020-07-13T17:12:47 [I|app|1b281a84] Completed 200 OK in 30ms (Views: 0.6ms | ActiveRecord: 4.2ms)
2020-07-13T17:12:47 [I|app|2cc73abc] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|2cc73abc] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2020-07-13T17:12:47 [I|app|2cc73abc]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:47 [I|app|2cc73abc] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:47 [I|app|2cc73abc] Completed 200 OK in 97ms (Views: 5.9ms | ActiveRecord: 6.3ms)
2020-07-13T17:12:47 [I|app|b6eb15a5] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/content_overrides" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|b6eb15a5] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
2020-07-13T17:12:47 [I|app|b6eb15a5]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:47 [I|app|b6eb15a5] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:47 [I|app|b6eb15a5] Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 5.2ms)
2020-07-13T17:12:47 [I|app|d82e2daa] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/release" for 10.8.29.112 at 2020-07-13 17:12:47 -0400
2020-07-13T17:12:47 [I|app|d82e2daa] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
2020-07-13T17:12:47 [I|app|d82e2daa]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:47 [I|app|d82e2daa] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:47 [I|app|d82e2daa] Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 5.8ms)
2020-07-13T17:12:48 [I|app|137843b8] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/certificates/serials" for 10.8.29.112 at 2020-07-13 17:12:48 -0400
2020-07-13T17:12:48 [I|app|137843b8] Processing by Katello::Api::Rhsm::CandlepinProxiesController#serials as JSON
2020-07-13T17:12:48 [I|app|137843b8]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:48 [I|app|137843b8] Completed 200 OK in 69ms (Views: 0.3ms | ActiveRecord: 9.7ms)
2020-07-13T17:12:48 [I|app|9c24098d] Started GET "/rhsm/status" for 10.8.29.112 at 2020-07-13 17:12:48 -0400
2020-07-13T17:12:48 [I|app|9c24098d] Processing by Katello::Api::Rhsm::CandlepinProxiesController#server_status as JSON
2020-07-13T17:12:48 [I|app|9c24098d] Completed 200 OK in 30ms (Views: 0.5ms | ActiveRecord: 4.5ms)
2020-07-13T17:12:48 [I|app|63ddfefa] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/content_overrides" for 10.8.29.112 at 2020-07-13 17:12:48 -0400
2020-07-13T17:12:48 [I|app|63ddfefa] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
2020-07-13T17:12:48 [I|app|63ddfefa]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:48 [I|app|63ddfefa] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:48 [I|app|63ddfefa] Completed 200 OK in 38ms (Views: 0.3ms | ActiveRecord: 5.0ms)
2020-07-13T17:12:48 [I|app|aa51c708] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9/release" for 10.8.29.112 at 2020-07-13 17:12:48 -0400
2020-07-13T17:12:48 [I|app|aa51c708] Processing by Katello::Api::Rhsm::CandlepinProxiesController#get as JSON
2020-07-13T17:12:48 [I|app|aa51c708]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:48 [I|app|aa51c708] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:48 [I|app|aa51c708] Completed 200 OK in 42ms (Views: 0.3ms | ActiveRecord: 5.2ms)
2020-07-13T17:12:48 [I|app|30e6696f] Started GET "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9" for 10.8.29.112 at 2020-07-13 17:12:48 -0400
2020-07-13T17:12:48 [I|app|30e6696f] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2020-07-13T17:12:48 [I|app|30e6696f]   Parameters: {"id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}
2020-07-13T17:12:48 [I|app|30e6696f] Current user set to ba2f1ea1-4cef-448a-ab9a-509667aec8e9 (regular)
2020-07-13T17:12:48 [I|app|30e6696f] Completed 200 OK in 94ms (Views: 7.1ms | ActiveRecord: 7.3ms)

>> No PUT made for consumer syspurpose attributes.

>> No PUT observed during sub-man status run.

>> PUT Observed when needed> updating attributes:

[root@dhcp-8-29-112 ~]# syspurpose set-sla Premium
service_level_agreement set to "Premium".
[root@dhcp-8-29-112 ~]# syspurpose show
{
  "role": "RHEL Potato", 
  "service_level_agreement": "Premium"
}

2020-07-13T17:15:02 [I|app|d12b1084] Started PUT "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9" for 10.8.29.112 at 2020-07-13 17:15:02 -0400
2020-07-13T17:15:02 [I|app|d12b1084] Processing by Katello::Api::Rhsm::CandlepinProxiesController#facts as JSON
2020-07-13T17:15:02 [I|app|d12b1084]   Parameters: {"usage"=>"", "addOns"=>[], "role"=>"RHEL Potato", "serviceLevel"=>"Premium", "id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}


>> PUT Observed when removing attributes:

[root@dhcp-8-29-112 ~]# syspurpose unset-sla
service_level_agreement unset.
[root@dhcp-8-29-112 ~]# syspurpose show
{
  "role": "RHEL Potato"
}

2020-07-13T17:16:39 [I|app|b8577035] Started PUT "/rhsm/consumers/ba2f1ea1-4cef-448a-ab9a-509667aec8e9" for 10.8.29.112 at 2020-07-13 17:16:39 -0400
2020-07-13T17:16:39 [I|app|b8577035] Processing by Katello::Api::Rhsm::CandlepinProxiesController#facts as JSON
2020-07-13T17:16:39 [I|app|b8577035]   Parameters: {"usage"=>"", "addOns"=>[], "role"=>"RHEL Potato", "serviceLevel"=>"", "id"=>"ba2f1ea1-4cef-448a-ab9a-509667aec8e9"}


VERIFIED.

Comment 7 errata-xmlrpc 2020-08-06 15:38:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (subscription-manager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3355


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