Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
During a Satellite 6.2 upgrade, as part of the host unification feature, if a host and content host are found with the same name but within different organizations, the content host will be unregistered. This will remove the content host from the Satellite. Consequently, once the content host has been unregistered by the upgrade process, it is possible that errors will be observed in /var/log/foreman/production.log as the content host may still attempt to interact with the Satellite via Red Hat Subscription Manager (RHSM).
The errors can include ones similar to the following:
2016-06-20 04:02:30 [app] [E] RestClient::Unauthorized: Katello::Resources::Candlepin::Consumer: 401 Unauthorized {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32)
2016-06-20 04:22:23 [app] [E] RestClient::Gone: Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit c1d5c956-b9c5-4088-914b-fd5e0e828c32 has been deleted","requestUuid":"4d433cb8-e94a-49dc-9d2f-eebdc7066e55","deletedId":"c1d5c956-b9c5-4088-914b-fd5e0e828c32"}
Workaround
Prior to performing the Satellite 6.2 upgrade, the user should execute the pre-upgrade script on the Satellite 6.1 Server to obtain a summary of the content hosts that will be unregistered. The script may be executed as:
foreman-rake katello:upgrade_check
Prior to the upgrade, the user should then update the hosts and content hosts to ensure that they are in the correct organizations. If this is not done prior to the upgrade, the user will need to re-register each of those content hosts using the Red Hat Subscription Manager command-line tool after the upgrade has completed.
Description of problem:
I found following exceptions in logs while performing upgrade from sat6.1.9 -> sat6.2 GA snap16 on rhel7:
==> /var/log/foreman/production.log <==
2016-06-20 04:02:29 [app] [I] Started GET "/rhsm/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32" for 10.8.193.1 at 2016-06-20 04:02:29 -0400
2016-06-20 04:02:29 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2016-06-20 04:02:29 [app] [I] Parameters: {"id"=>"c1d5c956-b9c5-4088-914b-fd5e0e828c32"}
==> /var/log/foreman/production.log <==
2016-06-20 04:02:30 [app] [E] RestClient::Unauthorized: Katello::Resources::Candlepin::Consumer: 401 Unauthorized {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32)
| Body: {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"}
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in `block in transmit'
| /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:44:in `transmit'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/lib/katello/http_resource.rb:84:in `get'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/lib/katello/resources/candlepin.rb:100:in `get'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:277:in `block in find_host'
Version-Release number of selected component (if applicable):
upgrade from sat6.1.9 -> sat6.2 GA snap16 on rhel7:
How reproducible:
Steps to Reproduce:
1. set sat6.2 repo
2. katello-service stop
3. yum update -y
4. satellite-installer --scenario satellite --upgrade
Actual results:
==> /var/log/foreman/production.log <==
2016-06-20 04:02:30 [app] [E] RestClient::Unauthorized: Katello::Resources::Candlepin::Consumer: 401 Unauthorized {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32)
| Body: {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"}
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
Later, following exception keep on throwing in production.log:
==> /var/log/foreman/production.log <==
2016-06-20 04:22:23 [app] [I] Started GET "/rhsm/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32" for 10.8.193.1 at 2016-06-20 04:22:23 -0400
2016-06-20 04:22:23 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON
2016-06-20 04:22:23 [app] [I] Parameters: {"id"=>"c1d5c956-b9c5-4088-914b-fd5e0e828c32"}
==> /var/log/foreman/production.log <==
2016-06-20 04:22:23 [app] [E] RestClient::Gone: Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit c1d5c956-b9c5-4088-914b-fd5e0e828c32 has been deleted","requestUuid":"4d433cb8-e94a-49dc-9d2f-eebdc7066e55","deletedId":"c1d5c956-b9c5-4088-914b-fd5e0e828c32"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32)
| Body: {"displayMessage":"Unit c1d5c956-b9c5-4088-914b-fd5e0e828c32 has been deleted","requestUuid":"4d433cb8-e94a-49dc-9d2f-eebdc7066e55","deletedId":"c1d5c956-b9c5-4088-914b-fd5e0e828c32"}
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in `block in transmit'
|
Expected results:
No exception should be thrown in production.log while upgrade is on going.
Additional info:
Also, as per logs, we got the reported issue with "Upgrade_step: migrate_foreman", through upgrade was completed successfully. I don't see any issue/error on stdout.
I guess this consumer is our external capsule. When satellite upgrade is completed and I re-regsitered the capsule with satellite, that exception was completely gone.
Hi Sachin, this bug falls in to a similar category as bug 1344215. These type of errors can be observed when a host has been unregistered from the Satellite server side. This is another one that we should document in release notes.
Hey Brad: thanks for confirming the issue. But this exception is ugly as I saw this exception a bunch of times while performing the upgrade. Since same reason as mentioned here https://bugzilla.redhat.com/show_bug.cgi?id=1344215#c6 applies to this issue. So let's document in release notes.
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, 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-2016:1501
Description of problem: I found following exceptions in logs while performing upgrade from sat6.1.9 -> sat6.2 GA snap16 on rhel7: ==> /var/log/foreman/production.log <== 2016-06-20 04:02:29 [app] [I] Started GET "/rhsm/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32" for 10.8.193.1 at 2016-06-20 04:02:29 -0400 2016-06-20 04:02:29 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON 2016-06-20 04:02:29 [app] [I] Parameters: {"id"=>"c1d5c956-b9c5-4088-914b-fd5e0e828c32"} ==> /var/log/foreman/production.log <== 2016-06-20 04:02:30 [app] [E] RestClient::Unauthorized: Katello::Resources::Candlepin::Consumer: 401 Unauthorized {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32) | Body: {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result' | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in `block in transmit' | /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start' | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:44:in `transmit' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in `get' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/lib/katello/http_resource.rb:84:in `get' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/lib/katello/resources/candlepin.rb:100:in `get' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.49/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:277:in `block in find_host' Version-Release number of selected component (if applicable): upgrade from sat6.1.9 -> sat6.2 GA snap16 on rhel7: How reproducible: Steps to Reproduce: 1. set sat6.2 repo 2. katello-service stop 3. yum update -y 4. satellite-installer --scenario satellite --upgrade Actual results: ==> /var/log/foreman/production.log <== 2016-06-20 04:02:30 [app] [E] RestClient::Unauthorized: Katello::Resources::Candlepin::Consumer: 401 Unauthorized {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32) | Body: {"displayMessage":"Invalid oauth unit or secret","requestUuid":"56562131-15b1-482b-86c3-a74da4b19491"} | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' Later, following exception keep on throwing in production.log: ==> /var/log/foreman/production.log <== 2016-06-20 04:22:23 [app] [I] Started GET "/rhsm/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32" for 10.8.193.1 at 2016-06-20 04:22:23 -0400 2016-06-20 04:22:23 [app] [I] Processing by Katello::Api::Rhsm::CandlepinProxiesController#consumer_show as JSON 2016-06-20 04:22:23 [app] [I] Parameters: {"id"=>"c1d5c956-b9c5-4088-914b-fd5e0e828c32"} ==> /var/log/foreman/production.log <== 2016-06-20 04:22:23 [app] [E] RestClient::Gone: Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit c1d5c956-b9c5-4088-914b-fd5e0e828c32 has been deleted","requestUuid":"4d433cb8-e94a-49dc-9d2f-eebdc7066e55","deletedId":"c1d5c956-b9c5-4088-914b-fd5e0e828c32"} (GET /candlepin/consumers/c1d5c956-b9c5-4088-914b-fd5e0e828c32) | Body: {"displayMessage":"Unit c1d5c956-b9c5-4088-914b-fd5e0e828c32 has been deleted","requestUuid":"4d433cb8-e94a-49dc-9d2f-eebdc7066e55","deletedId":"c1d5c956-b9c5-4088-914b-fd5e0e828c32"} | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result' | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/restclient_ext/request.rb:50:in `block in transmit' | Expected results: No exception should be thrown in production.log while upgrade is on going. Additional info: