Hide Forgot
Description of problem: On a RHV (engine+hypervisor) deployment with insights enabled, puppet-agent installs the redhat-access-insights rpm successfully, but the upload of insights data to the Satellite during registration fails: # rpm -q redhat-access-insights redhat-access-insights-1.0.11-0.el7.noarch # grep puppet /var/log/messages Nov 22 20:30:44 mac5254005a6b19 puppet-agent[1040]: Starting Puppet client version 3.8.6 Nov 22 20:31:02 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Package[redhat-access-insights]/ensure) created Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Successfully registered mac5254005a6b19.cfme.lab.eng.rdu2.redhat.com Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Automatic daily scheduling for Insights has been enabled. Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Starting to collect Insights data Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Uploading Insights data, this may take a few minutes Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Upload attempt 1 of 1 failed! Status Code: 404 Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) All attempts to upload have failed! Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) Please see /var/log/redhat-access-insights/redhat-access-insights.log for additional information Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: /usr/bin/redhat-access-insights --register returned 1 instead of one of [0] Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/Exec[/usr/bin/redhat-access-insights --register]/returns) change from notrun to 0 failed: /usr/bin/redhat-access-insights --register returned 1 instead of one of [0] Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: (/Stage[main]/Access_insights_client/File[/etc/redhat-access-insights/redhat-access-insights.conf]/content) content changed '{md5}233fcc663e47646e266ff6225ec174d8' to '{md5}9636ddb503bf0bf77f141b8ea2408ae5' Nov 22 20:31:10 mac5254005a6b19 puppet-agent[3630]: Finished catalog run in 20.15 seconds # cat /var/log/redhat-access-insights/redhat-access-insights.log [...] 2016-11-22 20:47:59,593 INFO Uploading Insights data, this may take a few minutes 2016-11-22 20:47:59,594 DEBUG Found /etc/redhat-access-insights/machine-id 2016-11-22 20:47:59,594 DEBUG Uploading /var/tmp/rVrkiv/insights-mac5254005a6b19.cfme.lab.eng.rdu2.redhat.com-20161122204755.tar.gz to https://dhcp-8-59-172.cfme.lab.eng.rdu2.redhat.com:443/redhat_access/r/insights/uploads/2e6eba08-8c73-4c22-b9af-88c3719074a7 2016-11-22 20:48:00,294 DEBUG Upload status: 404 Not Found {"client_error":{"message":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /r/insights/uploads/2e6eba08-8c73-4c22-b9af-88c3719074a7 was not found on this server.</p>\n</body></html>\n","reference":"19ef0001-f852-4ad5-aa90-aa69ed40da7a"}} 2016-11-22 20:48:00,295 DEBUG Upload duration: 0:00:00.697684 2016-11-22 20:48:00,295 ERROR Upload attempt 1 of 1 failed! Status Code: 404 2016-11-22 20:48:00,295 ERROR All attempts to upload have failed! 2016-11-22 20:48:00,295 ERROR Please see /var/log/redhat-access-insights/redhat-access-insights.log for additional information 2016-11-22 20:48:00,295 DEBUG Deleting: /var/tmp/rVrkiv # The same issue occurs on both the hypervisor and the engine. Version-Release number of selected component (if applicable): QCI-1.1-RHEL-7-20161121.t.0. How reproducible: 100% so far Steps to Reproduce: 1.) Deploy RHV (engine+hypervisor) with insights enabled. 2.) See errors in /var/log/messages. 3.) No systems appear under Red Hat Insights > Inventory in the Satellite web UI. Actual results: Failed insights registration. Expected results: Successful insights registration. Additional info:
Seems to be fixed in QCI-1.1-RHEL-7-20161205.t.0-QCI-x86_64-dvd1.iso. RHV engine and hypervisor registered successfully, visible from Satellite.
Verified in QCI-1.1-RHEL-7-20161212.t.2
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/RHEA-2017:0335