Bug 1948581

Summary: system does not appear in the inventory if the SELINUX config file has a typo error
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Amar Huchchanavar <ahuchcha>
Component: InventoryAssignee: Greg McCullough <gmccullo>
Status: CLOSED CURRENTRELEASE QA Contact: fstavela
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: achadha, lphiri, robwilli
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-01 14:44:47 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 Amar Huchchanavar 2021-04-12 14:08:59 UTC
Description of problem:
If - /etc/selinux/config this file has any typo error, insights registration works fine, however, system does not appear in the Invntory.

Example: [from cu case]
$ cat data/etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disable                                   <<<<<
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 




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

{
  "Username": "sbr-insights-pnq",
  "CurrentApp": "Landing",
  "ApplicationPath": "/",
  "apps": [
    {
      "name": "Chrome",
      "path": "apps/chrome/app.info.json",
      "version": "fe2d766cb4214f86019f2a1d703de243e053fc93.41"
    },
    {
      "name": "Dashboard",
      "path": "apps/dashboard/app.info.json",
      "version": "abb7efd1eed95e3385596bfee8bb06caf1f27649.78"
    },
    {
      "name": "Inventory",
      "path": "apps/inventory/app.info.json",
      "version": "e4fa90c8e4c2900f68de750c0e716fad31d4dfb1.34"
    },
    {
      "name": "Remediations",
      "path": "apps/remediations/app.info.json",
      "version": "db6236b2cd8acacbe7be94f66d36ec5f6abe9329.14"
    },
    {
      "name": "Vulnerability",
      "path": "apps/vulnerability/app.info.json",
      "version": "c892b319f0a5d34b1e99b16474d26e13d360a613.39"
    },
    {
      "name": "Compliance",
      "path": "apps/compliance/app.info.json",
      "version": "ff26f01eee80665f6eb7eb5c21ac29cc33c93edb.63"
    },
    {
      "name": "Cost Management",
      "path": "apps/cost-management/app.info.json",
      "version": "d111a5e382d89182777137a446786f8799100cae.22"
    },
    {
      "name": "Advisor",
      "path": "apps/advisor/app.info.json",
      "version": "e857b9eb4c4f7fd351790b3d519b55d8680b2241.222"
    },
    {
      "name": "Drift",
      "path": "apps/drift/app.info.json",
      "version": "ffd062b81d8304542d0ae7f14c3a3bfd6316e47a.31"
    },
    {
      "name": "Migration Analytics",
      "path": "apps/migration-analytics/app.info.json",
      "version": "0d3e6ed385c4607ecd9991f4dfe5d47e1ea5937e.5"
    },
    {
      "name": "Automation Hub",
      "path": "apps/automation-hub/app.info.json",
      "version": "8845682728197756f8bc2a233cf34f6489811e21.33"
    },
    {
      "name": "Automation Analytics",
      "path": "apps/automation-analytics/app.info.json",
      "version": "5a7adfbad53828fe59802707b70d513a0f7820dd.19"
    },
    {
      "name": "Policies",
      "path": "apps/policies/app.info.json",
      "version": "6c0bbcf6a269f7d94160064ef0ab7e611155e661.26"
    },
    {
      "name": "Patch",
      "path": "apps/patch/app.info.json",
      "version": "c32e7c61451bcbcc208e024f5bf7ea401e883576.28"
    },
    {
      "name": "Automation Services Catalog",
      "path": "apps/catalog/app.info.json",
      "version": "ecf2ba72e3fe0dadd73ebce80c69a3a2bae5ab0e.27"
    },
    {
      "name": "Approval",
      "path": "apps/approval/app.info.json",
      "version": "9307e24a1059d35fe25bcf48f7585512193bbc94.25"
    },
    {
      "name": "Sources",
      "path": "apps/sources/app.info.json",
      "version": "8dbbbe3c3ee4c9da90871014beb98c88df4d36dc.29"
    }
  ]
}
How reproducible:


Steps to Reproduce:
1. Install 'insights-client'
2. Edit /etc/selinux/config  and set it to    SELINUX=disable 
3. #insights-client --register

Actual results:
registration works fine but system not listed on the portal.

Expected results:
It should appear with a warning message.
OR
Insights-client should be able to detect the typo issues.