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

man page provides not-permanent solution

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.5
    • rhel-9.4
    • insights-client
    • None
    • insights-client-3.2.8-1.el9
    • No
    • Low
    • rhel-sst-csi-client-tools
    • 26
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

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

      disable Red Hat insight MOTD according to:

      $ man insights-client
      ...
      MOTD
             A message will be displayed on login about insights-client if installed but has not
             yet  been  used  at least once. To change or remove this message, edit the /etc/in‐
             sights-client/insights-client.motd file.
      ...

      Please provide the package NVR for which bug is seen:

      insights-client-3.2.2-2.el9.noarch

      How reproducible: 100%

      Steps to reproduce

      1. ssh SERVER # which does not use Red Hat Insights;  # Red Hat Insights MOTD is shown
      2. echo -n "" > /etc/insights-client/insights-client.motd
      3. exit ; ssh SERVER # works, but only until update or reinstall of package
      4. `dnf update insights-client` and `dnf reinstall insights-client`
      5. exit ; ssh $SERVER

      Expected results

      no MOTD when solution from man page is applied

      Actual results

      Red Hat Insights MOTD printed again:

      Register this system with Red Hat Insights: insights-client --register
      Create an account or view all your systems at https://red.ht/insights-dashboard

      WORKAROUND

      Solution on RHEL9 is for me (seems like that is what `insights-client --register` (or some such) does too):
      $ sudo ln -sf /dev/null /etc/motd.d/insights-client

      I did not test RHEL8.

      This is the first time I am using issue.redhat.com.

              ptoscano@redhat.com Pino Toscano
              marco.ehlert@mpikg.mpg.de Marco Ehlert (Inactive)
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Jan Stavel Jan Stavel
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: