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 1834181 - [Bug] Reduce logging about flat names
Summary: [Bug] Reduce logging about flat names
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: Paweł Poławski
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-11 09:06 UTC by Alexey Tikhonov
Modified: 2023-10-06 20:00 UTC (History)
9 users (show)

Fixed In Version: sssd-2.3.0-1.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 1032 0 None closed Wrong debug level in calc_flat_name()? 2020-10-21 12:40:30 UTC
Red Hat Issue Tracker SSSD-6801 0 None None None 2023-10-06 20:00:16 UTC
Red Hat Product Errata RHBA-2020:4569 0 None None None 2020-11-04 02:05:21 UTC

Description Alexey Tikhonov 2020-05-11 09:06:34 UTC
This bug was initially created as a copy of Bug #1829806

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



Description of problem:
sssd keeps logging the following message at debug level 'SSSDBG_MINOR_FAILURE':
    (Mon Apr 20 15:11:02 2020) [sssd[nss]] [calc_flat_name] (0x0080): Flat name requested but domain has noflat name set, falling back to domain name


Version-Release number of selected component (if applicable): n/a


How reproducible:
In most cases with sssd connected to AD.


Steps to Reproduce: n/a

Actual results:
Message is logged way too often.


Expected results:
Message is (eventually) logged once, at eg. startup and not on a regular basis.


Additional info:
* Linked upstream issue
* Linked upstream PR - not yet merged, but Sumit has basically agreed on it already
* Linked customer case

I'd be happy if we could get this fixed in RHEL7/8 + all active EUS/E4S z-streams as soon as the PR is has been merged. Please clone as necessary for these different releases.

Comment 1 Alexey Tikhonov 2020-05-11 09:09:31 UTC
* `master`
    * 4c93aa76d93fa786d52f78cd76d3afd94ee75ea2 - DOMAIN: Downgrade log message type
* `sssd-1-16`
  * 5774526cf66d1e48b2226050e4dfeff394849771 - DOMAIN: Downgrade log message type

Comment 4 Niranjan Mallapadi Raghavender 2020-07-14 06:01:44 UTC
python3-sssdconfig-2.3.0-4.el8.noarch
sssd-common-2.3.0-4.el8.x86_64
sssd-winbind-idmap-2.3.0-4.el8.x86_64
sssd-2.3.0-4.el8.x86_64
sssd-client-2.3.0-4.el8.x86_64
sssd-nfs-idmap-2.3.0-4.el8.x86_64
sssd-kcm-2.3.0-4.el8.x86_64
sssd-dbus-2.3.0-4.el8.x86_64
sssd-krb5-common-2.3.0-4.el8.x86_64
sssd-krb5-2.3.0-4.el8.x86_64
sssd-ad-2.3.0-4.el8.x86_64
sssd-ipa-2.3.0-4.el8.x86_64
sssd-tools-2.3.0-4.el8.x86_64
sssd-common-pac-2.3.0-4.el8.x86_64
sssd-ldap-2.3.0-4.el8.x86_64
sssd-proxy-2.3.0-4.el8.x86_64


sssd.conf

[sssd]
config_file_version = 2
services = nss, pam
domains = files, example1
debug_level = 9


[domain/files]
id_provider = files
full_name_format = %1$s
debug_level = 3

[domain/example1]
ldap_search_base = dc=example,dc=test
id_provider = ldap
auth_provider = ldap
ldap_user_home_directory = /home/%u
ldap_uri = ldaps://auto-hv-02-guest08.idmqe.lab.eng.bos.redhat.com
ldap_tls_cacert = /etc/openldap/cacerts/cacert.pem
use_fully_qualified_names = True
debug_level = 9

[nss]
default_shell = /bin/bash
memcache_timeout = 600
enum_cache_timeout = 5400
entry_cache_nowait_percentage = 75
entry_negative_timeout = 5400
# Default debug_level of nss shall be max 5 because it is logging every uid lookup and can generate 5+GB/day
debug_level = 3




1. Start sssd service following messages is noticied
 
2. Lookup users 
[root@ibm-x3650m4-01-vm-11 sssd]# for i in `seq 1 20`; do getent passwd foo$i@example1; done
foo1@example1:*:14583101:14564100:foo1 User::/bin/bash
foo2@example1:*:14583102:14564100:foo2 User::/bin/bash
foo3@example1:*:14583103:14564100:foo3 User::/bin/bash
foo4@example1:*:14583104:14564100:foo4 User::/bin/bash
foo5@example1:*:14583105:14564100:foo5 User::/bin/bash
foo6@example1:*:14583106:14564100:foo6 User::/bin/bash
foo7@example1:*:14583107:14564100:foo7 User::/bin/bash
foo8@example1:*:14583108:14564100:foo8 User::/bin/bash
foo9@example1:*:14583109:14564100:foo9 User::/bin/bash

Verify if the message "Flat name requested but domain has noflat name set, falling back to domain name" is seen in logs. 
[root@ibm-x3650m4-01-vm-11 sssd]# pwd
/var/log/sssd
[root@ibm-x3650m4-01-vm-11 sssd]# grep -i "flat name" -R *
[root@ibm-x3650m4-01-vm-11 sssd]# grep -i "flat name" -R *
[root@ibm-x3650m4-01-vm-11 sssd]#

Comment 8 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.