I have installed subscription-manager which also installs subscription-manager-rhsm-certificates as a dependency, but the latter failed to install the certificates in /etc/rhsm and /etc/rhsm/ca. Both directories are empty.
Why are you installing the subscription manager into Alma in the first place? The SM is for RHEL subscriptions. I’ve just run dnf list subscription-manager subscription-manager-rhsm-certificates on both my host Alma 8.7 and the 9.1 VM. Both return the packages as available, but not installed.
FYI, if you want to run the GNOME desktop on AL9, you need to install the subscription-manager package. The gnome-session daemon is activating the rhsm service via d-bus and failing so just terminates.
$ dnf rq --groupmember subscription-manager
Last metadata expiration check: 2:34:15 ago on Tue 14 Mar 2023 15:06:12 GMT.
$ dnf rq --whatrequires subscription-manager
Last metadata expiration check: 2:34:39 ago on Tue 14 Mar 2023 15:06:12 GMT.
The first says that subscription-manager is not in any “yum group” (only the name of package, no name of any group).
Therefore, the “dnf group install xxx” type of thing that the installer does won’t install that package.
The second says that only when you do install ‘subscription-manager-plugin-ostree’, the ‘subscription-manager’ will be co-installed as dependency.
Now, we could follow the rabbit by checking the same things for subscription-manager-plugin-ostree, but there are enough holes elsewhere to get lost in.
If one has the subscription-manager already installed, then one can test what actually do depend on it with:
being able to talk to subscription manager is a requirement of GNOME in RHEL 9
I have GNOME session in in AL9 right now. No subscription manager installed.
Granted, logs do show:
systemd: org.gnome.SettingsDaemon.Subscription.service: Scheduled restart job, restart counter is at 1.
systemd: Stopped GNOME subscription management service.
systemd: Starting GNOME subscription management service...
gsd-subman: Failed to start: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
systemd: org.gnome.SettingsDaemon.Subscription.service: Main process exited, code=exited, status=1/FAILURE
systemd: org.gnome.SettingsDaemon.Subscription.service: Failed with result 'exit-code'.
systemd: Failed to start GNOME subscription management service.
but that does not cause observable issues.
The subscription manager may be necessary in RHEL, because it populates the RHEL repository definitions (at least in RHEL 7). Access to Alma’s repositories does not require subscriptions.
So does the gnome-session process terminate for you at that point? The GNOME desktop should continue to run then. You might have seen that in my upstream bug report, I had started my GNOME session from vncserver script. It terminates after gnome-session ended.
Just take a look at xstartup as generated from vncserver:
# Assume either Gnome will be started by default when installed
# We want to kill the session automatically in this case when user logs out. In case you modify
# /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should
# be responsible to modify below code to avoid that your session will be automatically killed
if [ -e /usr/bin/gnome-session ]; then
vncserver -kill $DISPLAY
xinitrc just runs gnome-session, that process terminates and then the script kills VNC.