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

yggdrasil needs rhcd compatibility fix

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • rhel-10.0
    • None
    • yggdrasil
    • None
    • yggdrasil-0.4.5-2.el10_0
    • Yes
    • Important
    • subs-client-tools
    • 31
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      yggdrasil is now shipped separately from rhc, and therefore rhcd no longer exists.

      This breaks use-case for redhat-cloud-client-configuration.
      This needs a fix before cloud image builds, in order to support the entire automatic registration process.

      The systemd alias for rhcd only works with yggdrasil.service is already enabled, which is not the case.

      I tested using a symbolic link for rhcd.service -> yggdrasil.service:

      [root@ip-10-31-51-216 system]# pwd
      /usr/lib/systemd/system
      
      [root@ip-10-31-51-216 system]# ln -s yggdrasil.service rhcd.service
      
      [root@ip-10-31-51-216 system]# ll yggdrasil* rhc*
      -rw-r--r--. 1 root root 382 Feb  2 19:00 rhc-canonical-facts.service
      -rw-r--r--. 1 root root 193 Feb  2 19:00 rhc-canonical-facts.timer
      -rw-r--r--. 1 root root 388 Jan 23 19:00 rhccc-disable-rhui-repos.service
      -rw-r--r--. 1 root root 544 Jan 23 19:00 rhcd-stop.path
      -rw-r--r--. 1 root root 790 Jan 23 19:00 rhcd-stop.service
      -rw-r--r--. 1 root root 550 Jan 23 19:00 rhcd.path
      lrwxrwxrwx. 1 root root  17 Mar 10 05:52 rhcd.service -> yggdrasil.service
      -rw-r--r--. 1 root root 403 Feb  2 19:00 yggdrasil-bus@.service
      -rw-r--r--. 1 root root 118 Feb  2 19:00 yggdrasil-bus@.socket
      -rw-r--r--. 1 root root 441 Feb  2 19:00 yggdrasil.service
      -rw-r--r--. 1 root root 533 Feb  2 19:00 yggdrasil@.service
      
      yggdrasil.service.d:
      total 4
      -rw-r--r--. 1 root root 29 Feb  2 19:00 rhcd.conf
      
      [root@ip-10-31-51-216 system]# cat yggdrasil.service.d/rhcd.conf
      [Install]
      Alias=rhcd.service
      
      [root@ip-10-31-51-216 system]# systemctl status rhcd
      ○ yggdrasil.service - yggdrasil system service
           Loaded: loaded (/usr/lib/systemd/system/yggdrasil.service; disabled; preset: disabled)
          Drop-In: /usr/lib/systemd/system/yggdrasil.service.d
                   └─rhcd.conf
           Active: inactive (dead)
      TriggeredBy: ● rhcd.path
             Docs: https://github.com/RedHatInsights/yggdrasilMar 10 04:40:24 ip-10-31-51-216.us-east-1.aws.redhat.com systemd[1]: Starting yggdrasil.service - yggdrasil system service...
      Mar 10 04:40:27 ip-10-31-51-216.us-east-1.aws.redhat.com yggd[1094]: [yggd] 2025/03/10 04:40:27 starting yggd version 0.4.5
      Mar 10 04:40:27 ip-10-31-51-216.us-east-1.aws.redhat.com yggd[1094]: cannot parse certificate: open /etc/pki/consumer/cert.pem: no such file or directory
      Mar 10 04:40:27 ip-10-31-51-216.us-east-1.aws.redhat.com systemd[1]: yggdrasil.service: Main process exited, code=exited, status=1/FAILURE
      Mar 10 04:40:27 ip-10-31-51-216.us-east-1.aws.redhat.com systemd[1]: yggdrasil.service: Failed with result 'exit-code'.
      Mar 10 04:40:27 ip-10-31-51-216.us-east-1.aws.redhat.com systemd[1]: Failed to start yggdrasil.service - yggdrasil system service.
      
      [root@ip-10-31-51-216 system]# systemctl enable rhcd
      Created symlink '/etc/systemd/system/yggd.service''/usr/lib/systemd/system/yggdrasil.service'.
      Created symlink '/etc/systemd/system/rhcd.service''/usr/lib/systemd/system/yggdrasil.service'.
      Created symlink '/etc/systemd/system/multi-user.target.wants/yggdrasil.service''/usr/lib/systemd/system/yggdrasil.service'. 

      We should ship a symbolic link for rhcd.service pointing to yggdrasil.service in /usr/lib/systemd/system inside the yggdrasil package in order to support backward compatibility.

              jvlcek@redhat.com Joe VLcek
              rhn-support-cdonnell Craig Donnelly
              Craig Donnelly Craig Donnelly
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: