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.
Sorry, but no. I normally use KDE, but just now have logged in using GNOME (taken from login screen gear wheel).
$ dnf list subscription-manager
Last metadata expiration check: 0:00:13 ago on Tue 14 Mar 2023 15:06:12 GMT.
Available Packages
subscription-manager.x86_64 1.29.30.1-1.el9_1.alma baseos
Note that it is available, but not installed. This is on a VM running Alpha 9.1 hosted by an Alpha 8.7 box.
$ dnf rq --groupmember subscription-manager
Last metadata expiration check: 2:34:15 ago on Tue 14 Mar 2023 15:06:12 GMT.
subscription-manager-1.29.30-1.el9.alma.x86_64
subscription-manager-1.29.30.1-1.el9_1.alma.x86_64
$ dnf rq --whatrequires subscription-manager
Last metadata expiration check: 2:34:39 ago on Tue 14 Mar 2023 15:06:12 GMT.
subscription-manager-plugin-ostree-0:1.29.30-1.el9.alma.x86_64
subscription-manager-plugin-ostree-0:1.29.30.1-1.el9_1.alma.x86_64
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:
I think the problem is simply that AlmaLinux de-branded the packages (as explained by torcat). So the certificates shouldn’t be available in the first place.
Anyhow, I setup Insights in a different way:
I installed the relevant packages (available in baseos repository):
being able to talk to subscription manager is a requirement of GNOME in RHEL 9
RHEL 9.
I have GNOME session in in AL9 right now. No subscription manager installed.
Granted, logs do show:
systemd[1611]: org.gnome.SettingsDaemon.Subscription.service: Scheduled restart job, restart counter is at 1.
systemd[1611]: Stopped GNOME subscription management service.
systemd[1611]: Starting GNOME subscription management service...
gsd-subman[2340]: Failed to start: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
systemd[1611]: org.gnome.SettingsDaemon.Subscription.service: Main process exited, code=exited, status=1/FAILURE
systemd[1611]: org.gnome.SettingsDaemon.Subscription.service: Failed with result 'exit-code'.
systemd[1611]: 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:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc
# 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
fi
xinitrc just runs gnome-session, that process terminates and then the script kills VNC.
Oh yes, I was thinking of /usr/libexec/gnome-session-binary.
I still don’t understand why it doesn’t exit for you when it failed to activate the subscription-manager service. But I have only tried VNC or FastX sessions on AL9.
subscription-manager is not installed by default in Alma
GNOME is the default (and only) DE in Alma – default GUI
There must be quite many Alma GNOME users, even though part of community has “strong feelings” about GNOME.
If that default combo (GDM - GNOME - no subs) would crash, then there surely would be loud uproar among users. (Just like el8.6 update and Qt rebuild in el8.7&el9.1 had among KDE users.)