Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-56159

[rhel-9] new insights-client service autorestart breaks cockpit "broken upload" detection

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • subscription-manager-cockpit-6-2.el9
    • No
    • Low
    • ZStream
    • subs-client-tools
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Approved Blocker
    • Bug Fix
    • Hide
      .RHEL web console Subscription Manager plugin now detects Insights data upload failures

      Before this update, the `systemd` service manager automatically restarted `insights-client` service in the case of failure, which broke the built-in detection in the Subscription Manager plugin in the RHEL web console. This detection checked for the failed service state, which was correctly prevented. Consequently, the RHEL web console did not display any warning when an Insights data upload failed. With this update, the detection of the status of `insights-client` has been improved to account for the new status when an upload fails. As a result, Subscription Manager in the web console detects Insights data upload failures correctly.
      Show
      .RHEL web console Subscription Manager plugin now detects Insights data upload failures Before this update, the `systemd` service manager automatically restarted `insights-client` service in the case of failure, which broke the built-in detection in the Subscription Manager plugin in the RHEL web console. This detection checked for the failed service state, which was correctly prevented. Consequently, the RHEL web console did not display any warning when an Insights data upload failed. With this update, the detection of the status of `insights-client` has been improved to account for the new status when an upload fails. As a result, Subscription Manager in the web console detects Insights data upload failures correctly.
    • Done
    • All
    • None

      What were you trying to do that didn't work?

      As result of CCT-463, now the insights-client systemd service is automatically restarted in case of failure (which is good). The cockpit plugin for subscription-manager has a detection for failed uploads, which checks the state of the systemd service as main criteria; this detection is now broken, since the systemd service is never set as failed anymore.

      Please provide the package NVR for which bug is seen:

      subscription-manager-cockpit-6-1.el9.noarch
      insights-client-3.2.8-1.el9.noarch

      How reproducible:

      Always

      Steps to reproduce

      1. Register a system also to Insights
      2. Open the Subscriptions page in cockpit
      3. Wait for a failed upload of insights-client, maybe forcing one somehow (e.g. adding broken hosts in /etc/hosts)
      4. Observe the status of Insights in the plugin

      Expected results

      • the plugin shows a yellow warning icon (similar to ) next to the "Connected to Insights" text
      • clicking on the "Connected to Insights" text shows a popup with the status of Insights, showing a text "The last Insights data upload has failed."

      Actual results

      The plugin does not show anything about the last failed upload.

              ptoscano@redhat.com Pino Toscano
              ptoscano@redhat.com Pino Toscano
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Jan Stavel Jan Stavel
              Mirek Jahoda Mirek Jahoda
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: