RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1829470 - `sssd.api.conf` and `sssd.api.d` should belong to `python-sssdconfig` package
Summary: `sssd.api.conf` and `sssd.api.d` should belong to `python-sssdconfig` package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexey Tikhonov
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-29 15:32 UTC by Alexey Tikhonov
Modified: 2020-11-04 02:09 UTC (History)
8 users (show)

Fixed In Version: sssd-2.3.0-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:05:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 1038 0 None closed `sssd.api.conf` and `sssd.api.d` should belong to `python-sssdconfig` package 2021-02-16 16:22:28 UTC
Red Hat Product Errata RHBA-2020:4569 0 None None None 2020-11-04 02:05:21 UTC

Description Alexey Tikhonov 2020-04-29 15:32:12 UTC
This bug was initially created as a copy of Bug #1800564

I am copying this bug because: to track fix for RHEL8



Description of problem:
python-sssd package should have a weak dependency on sssd-config because the call to SSSDConfig() requires the file /usr/share/sssd/sssd.conf.api to be present, and this file is provided by sssd-common.

Version-Release number of selected component (if applicable):
sssd-1.16.4-35.el7.x86_64

How reproducible:
always

Steps to Reproduce:

freeipa tests are using SSSDConfig() python API to  modify sssd.conf from another node.
On host A (=the test controller), only python-sssd package is installed. On host B (=freeipa master), sssd is configured (with python-sssd, sssd-common, sssd-client).
The host A is copying sssd.conf from host B, then locally uses SSSDConfig() to modify the conf and later copies the modified sssd.conf file to host B.

The following error happens when host A calls SSSDConfig():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pytest_ipa/integration/tasks.py:741: in modify_sssd_conf
    sssd_config = SSSDConfig()
../SSSDConfig/__init__.py:1424: in __init__
    self.schema = SSSDConfigSchema(schemafile, schemaplugindir)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <SSSDConfig.SSSDConfigSchema object at 0x7f3fc57a9ed0>
schemafile = '/usr/share/sssd/sssd.api.conf'
schemaplugindir = '/usr/share/sssd/sssd.api.d'

    def __init__(self, schemafile, schemaplugindir):
        SSSDChangeConf.__init__(self)
        #TODO: get these from a global setting
        if not schemafile:
            schemafile = '/usr/share/sssd/sssd.api.conf'
        if not schemaplugindir:
            schemaplugindir = '/usr/share/sssd/sssd.api.d'
    
        try:
            # Read the primary config file
>           with open(schemafile, 'r') as fd:
E           IOError: [Errno 2] No such file or directory: '/usr/share/sssd/sssd.api.conf'

schemafile = '/usr/share/sssd/sssd.api.conf'
schemaplugindir = '/usr/share/sssd/sssd.api.d'
self       = <SSSDConfig.SSSDConfigSchema object at 0x7f3fc57a9ed0>

../SSSDConfig/__init__.py:508: IOError


Actual results:
IOError when calling SSSDConfig() if the package sssd-common is not installed.

Expected results:
No IOError.

Comment 1 Alexey Tikhonov 2020-04-29 15:37:34 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/1039

Comment 2 Alexey Tikhonov 2020-05-07 15:03:00 UTC
  * master
        5379fdd - SPEC: 'sssd.api.*' should belong python-sssdconfig
  * sssd-1-16
        0ecc498 - SPEC: 'sssd.api.*' should belong python-sssdconfig

Comment 7 Niranjan Mallapadi Raghavender 2020-07-13 11:16:35 UTC
[root@auto-hv-02-guest08 ~]# rpm -qa | grep sssd
sssd-client-2.3.0-4.el8.x86_64
python3-sssdconfig-2.3.0-4.el8.noarch
 

$ cat a.py

from SSSDConfig import SSSDConfig
sssd_config = SSSDConfig()
print(type(sssd_config))


[root@auto-hv-02-guest08 ~]# python3 a.py 
<class 'SSSDConfig.SSSDConfig'>

Comment 10 errata-xmlrpc 2020-11-04 02:05:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sssd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4569


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