This site requires JavaScript to be enabled to function correctly, please enable it.
Bug 2255725 - realmd claims 'sssd' is required to join realms, but it's a metapackage that is not in the Server tree (cannot join a realm when installing from Server DVD without additional repo)
Summary: realmd claims 'sssd' is required to join realms, but it's a metapackage that ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: realmd
Version: rawhide
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Sumit Bose
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: openqa
Depends On:
Blocks: F40BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2023-12-23 20:41 UTC by Adam Williamson
Modified: 2024-02-05 12:16 UTC (History)
9 users (show)

Fixed In Version: realmd-0.17.1-8.fc40
Clone Of:
Environment:
Last Closed: 2024-02-05 10:24:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2023-12-23 20:41:34 UTC
In Fedora-20231207.n.1 , I believe sssd disappeared from the Server tree. Unfortunately that compose and the previous one have been garbage collected (I should have looked into this sooner), but you can see it's still not there:

https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20231223.n.0/compose/Server/x86_64/os/Packages/s/

by rights everything in the server-product-environment env group ought to be in the Server tree, because that's how it's defined in pungi-fedora variants.xml:

https://pagure.io/pungi-fedora/blob/main/f/variants-fedora.xml#_63

But...that's not the case. I do see this in the compose log:

2023-12-23 05:19:56 [WARNING ] Variant Server.x86_64 requires comps group ^server-product-environment which does not match anything in input comps file

which might be the issue, if the filtered comps file is what's used to ultimately decide what packages go into the tree. But that code has not changed in some time...

Comment 1 Adam Williamson 2023-12-23 20:42:39 UTC
The consequence of this is that you can't install the server-product-environment group from the Server tree (and hence from the Server DVD), because anaconda complains that sssd isn't there. This is breaking some of openQA's kickstart install tests.

Comment 2 Lubomír Sedlář 2024-01-02 08:22:01 UTC
There are some subpackages from the sssd build:
sssd-ad-2.9.3-1.fc40.x86_64.rpm
sssd-client-2.9.3-1.fc40.x86_64.rpm
sssd-common-2.9.3-1.fc40.x86_64.rpm
sssd-common-pac-2.9.3-1.fc40.x86_64.rpm
sssd-dbus-2.9.3-1.fc40.x86_64.rpm
sssd-idp-2.9.3-1.fc40.x86_64.rpm
sssd-ipa-2.9.3-1.fc40.x86_64.rpm
sssd-kcm-2.9.3-1.fc40.x86_64.rpm
sssd-krb5-2.9.3-1.fc40.x86_64.rpm
sssd-krb5-common-2.9.3-1.fc40.x86_64.rpm
sssd-nfs-idmap-2.9.3-1.fc40.x86_64.rpm
sssd-proxy-2.9.3-1.fc40.x86_64.rpm
sssd-tools-2.9.3-1.fc40.x86_64.rpm

The sssd-2.9.3-1.fc40.x86_64.rpm metapackage is indeed missing, but it's also not mentioned in comps.

The warning seems correct to me. The variants.xml file contains both  <environment display_order="2">server-product-environment</environment> and <group default="true">^server-product-environment</group>.
The comps file defines the environment with a bunch of groups, but there is no group called ^server-product-environment. Hence the warning.
All of the groups listed in the environment are given as input to the depsolver: https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20231223.n.0/work/x86_64/pungi/Server.x86_64.comps.conf

Comment 3 Adam Williamson 2024-01-02 16:25:14 UTC
> The sssd-2.9.3-1.fc40.x86_64.rpm metapackage is indeed missing, but it's also not mentioned in comps.

Huh. You're right. I am sure when I filed this bug I checked comps and it did have sssd in it, but I'm looking now and it sure doesn't. Don't know how that happened. Looking at the anaconda logs again, it's anaconda itself that adds the sssd requirement into the list, because of the output of `realm list`, apparently. So we need to get realmd to stop saying that sssd needs to be installed to join realms.

Comment 4 Adam Williamson 2024-01-02 16:27:59 UTC
> The comps file defines the environment with a bunch of groups, but there is no group called ^server-product-environment. Hence the warning.

Well, I can see what that is trying to say. For dnf "specs" - that is, strings you can pass to e.g. `dnf install` - the `@` prefix means "this is a group", and `@^` means "this is an environment group". So `dnf install @^server-product-environment` means "install the environment group server-product-environment". So, in a sense, if we're considering a string meant to refer to a group, then you can see that a prefix of "^" would mean "this is an environment group".

I don't know if that's actually valid syntax for anything that reads the variants.xml file, however, or what that line is actually intended to do (or if it's intended to do anything more than the `<environment` line already does). It's clearly not the issue here, though.

Comment 5 Adam Williamson 2024-01-02 16:53:59 UTC
Presumably we want realmd to report that 'sssd-ipa' is required for joining a FreeIPA domain, and 'sssd-ad' is required for joining an AD domain?

Comment 6 Sumit Bose 2024-01-08 15:18:32 UTC
(In reply to Adam Williamson from comment #5)
> Presumably we want realmd to report that 'sssd-ipa' is required for joining
> a FreeIPA domain, and 'sssd-ad' is required for joining an AD domain?

Hi,

yes, I will try to prepare a fix. The `sssd` package is a meta-package which just installs all SSSD related packages. Due to the number of dependencies of all the different SSSD features it was removed from the group to encourage to use the more specific packages as you described.

bye,
Sumit

Comment 7 Adam Williamson 2024-02-02 17:52:16 UTC
Proposing as a Beta blocker per "It must be possible to join the system to a FreeIPA or Active Directory domain at install time and post-install, and the system must respect the identity, authentication and access control configuration provided by the domain" - https://fedoraproject.org/wiki/Basic_Release_Criteria . This causes kickstart installs as FreeIPA or AD client from the Server DVD to fail.

Comment 8 Fedora Update System 2024-02-05 10:22:58 UTC
FEDORA-2024-bc9a8bb87e has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-bc9a8bb87e

Comment 9 Fedora Update System 2024-02-05 10:24:24 UTC
FEDORA-2024-bc9a8bb87e has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Sumit Bose 2024-02-05 12:16:12 UTC
Hi,

I'm sorry I forgot about this issue. I pushed a patch which fixd the issue for me and created a new build, please let me if there are still issues here.

bye,
Sumit


Note You need to log in before you can comment on or make changes to this bug.