Bug 1885231

Summary: [RFE] Hammer Control Of Red Hat Access Insights
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Bernie Hoefer <bhoefer>
Component: Insights - Satellite IntegrationAssignee: Rex White <rexwhite>
Status: CLOSED DEFERRED QA Contact: Eduardo <ecerqueira>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: lphiri, mpusater, robwilli, sokeeffe
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-31 16:01:19 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:

Description Bernie Hoefer 2020-10-05 13:32:48 UTC
With Insights having become a large selling-point of Red Hat's portfolio, the lack of a command line interface (CLI) to control it is seen as a deficiency.  This RFE seeks a CLI interface (preferably through hammer) to administer Insights clients in relation to Satellite.

A Red Hat customer does not have sole control over their provisioned machines.  Sometimes the application teams will decommission a server without running:
  insights-client --unregister
  subscription-manager remove --all
  subscription-manager unregister
Although that procedural oversight is being corrected, the operating system team still runs scripts to check for systems that have not checked in for 30 days and unregisters them.  Although they can use the cloud.redhat.com API to remove such machines from cloud.redhat.com, there is no CLI or API way to unregister an Insights client from Satellite.

The customer believes there should be an insights sub-command to Satellite's hammer command to do this (and other Insight-related work).  At a minimum, the customer would like to see a command like "hammer insights unregister --name client.example.com".  This command would unregister the client.example.com Insights client from Satellite *and* from cloud.redhat.com.