Bug 1990857

Summary: Insights-client not registered on Satellite after `Configure Cloud Connector`
Product: Red Hat Satellite Reporter: Petr Pochop <ppochop>
Component: RH Cloud - Cloud ConnectorAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ahumbe, aruzicka, lhellebr, osousa, pcreech
Target Milestone: 6.10.0Keywords: AutomationBlocker, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansiblerole-satellite-receptor-installer-0.6.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:02 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: 1833033    

Description Petr Pochop 2021-08-06 12:57:00 UTC
Description of problem:
When remediating a vulnerability through receptor while verifying https://bugzilla.redhat.com/show_bug.cgi?id=1985287, the remediation fails with this in /var/log/insights-client/insights-client.log:
"""
2021-08-06 07:14:22,038    DEBUG insights.client.support Registration status: None
2021-08-06 07:14:22,039    DEBUG insights.client.client System is NOT registered locally via .registered file.
2021-08-06 07:14:22,039    DEBUG insights.client.client Insights API says this machine is NOT registered.
2021-08-06 07:14:22,041     INFO insights.client.client This machine has not yet been registered. Use --register to register this machine.
2021-08-06 07:14:22,044    DEBUG metrics Metrics: authmethod not defined in insights-client config. Defaulting to CERT
2021-08-06 07:14:22,044    DEBUG metrics Metrics: Posting event...
2021-08-06 07:14:22,044    DEBUG metrics Metrics: POST https://cert.cloud.redhat.com:443/api/module-update-router/v1/event
2021-08-06 07:14:22,803    DEBUG metrics Metrics: HTTP Status Code: 201 Created
"""

and this in `journalctl -u "receptor@*"`:
"""
Aug 06 06:53:56 systemd[1]: Started Receptor Node for rh_1212729.
Aug 06 07:14:22 receptor[1183]: ERROR 2021-08-06 07:14:22,854 b18792c5-a51d-45ff-bf85-23d946825300 run Playbook run 8dd6e09d-03bb-4ccf-88e0
Aug 06 07:14:22 receptor[1183]: This machine has not yet been registered. Use --register to register this machine.
Aug 06 07:14:22 receptor[1183]: ', aborting.
"""


Version-Release number of selected component (if applicable):
Satellite 6.10.0 snap 12.0

How reproducible:
Always

Steps to Reproduce:
1. Configure cloud connector, have a remediable host and inventory uploaded
2. On CRC, create a remediation
3. Attempt to apply that remediation

Actual results:
Remediation fails with mentioned messages in logs

Expected results:
Successful remediation

Comment 4 Petr Pochop 2021-08-19 09:23:37 UTC
Verified on Satellite 6.10.0 snap 14

The Satellite host is now registered to Insights after running `Configure Cloud Connector`.

Comment 6 Lukáš Hellebrandt 2021-09-13 15:38:04 UTC
Sat 6.10.0 snap 18.0:

```
# insights-client --status
System is registered locally via .registered file. Registered at 2021-09-13T10:35:51.226820
Insights API confirms registration.

```

Also, the receptor service is running.

Comment 11 errata-xmlrpc 2021-11-16 14:13:02 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 (Moderate: Satellite 6.10 Release), 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-2021:4702