Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1829806

Summary: [Bug] Reduce logging about flat names
Product: Red Hat Enterprise Linux 7 Reporter: Oliver Falk <ofalk>
Component: sssdAssignee: Paweł Poławski <ppolawsk>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: atikhono, grajaiya, jhrozek, lslebodn, mniranja, mzidek, pbrezina, peter.vreman, sgoveas, thalman, tscherf
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: sync-to-jira
Fixed In Version: sssd-1.16.5-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1845009 (view as bug list) Environment:
Last Closed: 2020-09-29 19:50:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832, 1845009    

Description Oliver Falk 2020-04-30 12:11:16 UTC
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 8 Pavel Březina 2020-05-05 10:49:52 UTC
* `master`
    * 4c93aa76d93fa786d52f78cd76d3afd94ee75ea2 - DOMAIN: Downgrade log message type

Comment 10 Pavel Březina 2020-05-05 11:07:03 UTC
* `sssd-1-16`
  * 5774526cf66d1e48b2226050e4dfeff394849771 - DOMAIN: Downgrade log message type

Comment 18 Niranjan Mallapadi Raghavender 2020-05-27 09:01:40 UTC
Versions:
========
python-sssdconfig-1.16.4-21.el7_7.1.noarch
sssd-client-1.16.4-21.el7_7.1.x86_64
sssd-krb5-common-1.16.4-21.el7_7.1.x86_64
sssd-ldap-1.16.4-21.el7_7.1.x86_64
sssd-dbus-1.16.4-21.el7_7.1.x86_64
sssd-1.16.4-21.el7_7.1.x86_64
sssd-common-1.16.4-21.el7_7.1.x86_64
sssd-common-pac-1.16.4-21.el7_7.1.x86_64
sssd-ipa-1.16.4-21.el7_7.1.x86_64
sssd-krb5-1.16.4-21.el7_7.1.x86_64
sssd-tools-1.16.4-21.el7_7.1.x86_64
sssd-kcm-1.16.4-21.el7_7.1.x86_64
sssd-winbind-idmap-1.16.4-21.el7_7.1.x86_64
sssd-ad-1.16.4-21.el7_7.1.x86_64
sssd-proxy-1.16.4-21.el7_7.1.x86_64


sssd.conf
[sssd]
config_file_version = 2
services = nss, pam
domains = files, example1

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

[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


[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-guest10.idmqe.lab.eng.bos.redhat.com
ldap_tls_cacert = /etc/openldap/cacerts/cacert.pem
use_fully_qualified_names = True
debug_level = 9


1. Start sssd service following messages is noticied


[root@qe-blade-01 sssd]# grep -i "flat name" -R *
sssd_nss.log:(Wed May 27 04:57:41 2020) [sssd[nss]] [calc_flat_name] (0x0080): Flat name requested but domain has noflat name set, falling back to domain name
[root@qe-blade-01 sssd]# rpm -q sssd

2. Update sssd to sssd-1.16.5-7.el7.x86_64 

3. Remove sssd log files 

4. [root@auto-hv-02-guest10 sssd]# grep -i "flat name" -R *
[root@auto-hv-02-guest10 sssd]# 

only log message seen in sssd_nss.log is below:
[root@auto-hv-02-guest10 sssd]# cat sssd_nss.log 
(2020-05-27  5:00:27): [nss] [expand_homedir_template] (0x0020): Missing template.

Comment 24 errata-xmlrpc 2020-09-29 19:50:00 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:3904