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.

Bug 1708295

Summary: insights-client --display-name returns 404 when routed through satellite
Product: Red Hat Satellite Reporter: Jeff Needle <jneedle>
Component: RH Cloud - InsightsAssignee: Rex White <rexwhite>
Status: CLOSED ERRATA QA Contact: Radovan Drazny <rdrazny>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.5CC: egolov, ktordeur, lphiri, molasaga, peter.vreman, robwilli, zhunting
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-redhat_access-2.2.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1726823 (view as bug list) Environment:
Last Closed: 2019-10-22 19:51:42 UTC Type: Bug
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: 1708694    

Description Jeff Needle 2019-05-09 14:30:43 UTC
Description of problem:
when routed via satelltite 6.4 and 6.5 (possibly 6.3 as well) the insights-client --display-name option fails with a 404 error after the cutover to cloud.redhat.com. 

Version-Release number of selected component (if applicable):
6.3 and up

How reproducible:
100%

Steps to Reproduce:
1. insights-client --display-name=BugsInSatellitePluginFor1000Alex!
2.
3.

Actual results:
HTTP Status Code: 404 and display name not changed


Expected results:
Display name updated to BugsInSatellitePluginFor1000Alex!

Additional info:

Comment 3 Jeff Needle 2019-05-09 14:38:57 UTC
*** Bug 1708293 has been marked as a duplicate of this bug. ***

Comment 4 Jeff Needle 2019-05-09 15:17:06 UTC
*** Bug 1708291 has been marked as a duplicate of this bug. ***

Comment 5 Jeff Needle 2019-05-09 15:17:51 UTC
*** Bug 1708292 has been marked as a duplicate of this bug. ***

Comment 6 Jeff Needle 2019-05-09 15:18:37 UTC
*** Bug 1708294 has been marked as a duplicate of this bug. ***

Comment 7 Lindani Phiri 2019-05-09 16:40:00 UTC
Fix for this issue is available in this PR : https://github.com/redhataccess/foreman-plugin/pull/37

Comment 11 Peter Vreman 2019-06-04 15:58:40 UTC
With egg 3.0.102 it works again also on Sat6.2 and Sat6.5

Comment 12 Radovan Drazny 2019-06-26 11:26:58 UTC
Tested with tfm-rubygem-redhat_access-2.2.6-1.el7sat.noarch and Satellite 6.6 Snap 7

[root@rhel7-client ~]# insights-client --register
You successfully registered a0449649-5088-4206-b2ca-cd010518cb3b to account 5779551.
Successfully registered host rhel7-client.example.com
Automatic scheduling for Insights has been enabled.
Starting to collect Insights data for rhel7-client.example.com
Uploading Insights data.
Successfully uploaded report from rhel7-client.example.com to account 5779551.
[root@rhel7-client ~]# insights-client --status                                                                                                                                                                                      
System is registered locally via .registered file. Registered at 2019-06-26T13:08:39.079251
Insights API confirms registration.
# insights-client --display-name='WhatIsABug?'
System display name changed from BugsInSatellitePluginFor1000Alex to WhatIsABug?

The system is now displayed under Insights -> Inventory with the new name.

VERIFIED

Comment 15 Bryan Kearney 2019-10-22 19:51:42 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, 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/RHSA-2019:3172