How to remove the 'System Not Registered' notification from GNOME and Subscription-Manager Cockpit?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 8, 9
  • Red Hat Subscription Manager (RHSM)

Issue

  • Multiple places in the GNOME shows System Not Registered notification.

    GNOME Popup:
    alt text

    About Notification:
    alt text

    RHSM Cockpit Notification:
    alt text

  • How to get rid of the System Not Registered notification from GNOME?

  • We still get the popup System Not Registered asking to register on an offline RHEL system that is registered using an Offline Method.

Resolution

Be warned that Red Hat does not recommend disabling the System Not Registered notification.

For RHEL 9 systems

  • Masquerade the user service globally, running this command as root:

    # systemctl --global mask org.gnome.SettingsDaemon.Subscription.service
    
  • Alternatively, masquerade the service for a single user, running this command as that user:

    $ systemctl --user mask org.gnome.SettingsDaemon.Subscription.service
    
  • Remove the subscription-manager-cockpit package to disable RHSM cockpit UI notification:

    # yum remove subscription-manager-cockpit
    

For RHEL 8 systems

  • Edit /etc/xdg/autostart/org.gnome.SettingsDaemon.Subscription.desktop and comment out the line containing Exec=/usr/libexec/gsd-subman as shown below:

    # sed -i -e '/^Exec=/s/^/#/' /etc/xdg/autostart/org.gnome.SettingsDaemon.Subscription.desktop
    

    Note: The above change may be reverted if the gnome-settings-daemon and subscription-managerpackages are updated on the system.

  • Remove the subscription-manager-cockpit package to disable RHSM cockpit UI notification:

    # yum remove subscription-manager-cockpit
    

Root Cause

  • In RHEL 9 systems, the System Not Registered notification is managed by the GNOME Subscription Management service which is triggered by the file /lib/systemd/user/org.gnome.SettingsDaemon.Subscription.service.

  • In RHEL 8 systems, the System Not Registered notification is managed by the GNOME Subscription Management service which is triggered by the file /etc/xdg/autostart/org.gnome.SettingsDaemon.Subscription.desktop.

  • The Subscription-Manager Cockpit UI is provided by the subscription-manager-cockpit package.

Diagnostic Steps

  • Install RHEL 8 or RHEL 9, login to GNOME session without registering the system OR register it using Offline Method and login to GNOME session, the following notification is shown:

    System Not Registered
        Please register your system to receive software updates
    
  • Login to GNOME session, Click on Activities and Search About, the following message is displayed:

    System Not Registered
    
  • Login to GNOME session, Click on Activities and Search subscription-manager cockpit, the following message is displayed.at different places in GNOME :

    subscription status  Not Registered
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments