Bug 1505741

Summary: [gssproxy] Error when reading config directory: File /etc/gssproxy/gssproxy.conf did not match provided patterns
Product: Red Hat Enterprise Linux 7 Reporter: Yongcheng Yang <yoyang>
Component: gssproxyAssignee: Robbie Harwood <rharwood>
Status: CLOSED ERRATA QA Contact: Ganna Kaihorodova <gkaihoro>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: fs-qe, gkaihoro, jiyin, pasik, xzhou
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://pagure.io/gssproxy/pull-request/219
Whiteboard:
Fixed In Version: gssproxy-0.7.0-21.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 08:07:58 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: 1507607, 1507608    
Bug Blocks:    

Description Yongcheng Yang 2017-10-24 08:28:02 UTC
Description of problem:

Getting the warning after updating gssproxy to 0.7.0-9.el7:
"Oct 24 04:03:59 xxx.redhat.com gssproxy[710]: Error when reading config directory: File /etc/gssproxy/gssproxy.conf did not match provided patterns. Skipping."


Version-Release number of selected component (if applicable):
gssproxy-0.7.0-9.el7.x86_64


How reproducible:
100% easy

Steps to Reproduce:
1. systemctl restart gssproxy
2. systemctl status gssproxy

Actual results:
[root@bkr-hv01-guest14 ~]# rpm -q gssproxy
gssproxy-0.7.0-4.el7.x86_64
[root@bkr-hv01-guest14 ~]# systemctl restart gssproxy
[root@bkr-hv01-guest14 ~]# systemctl status gssproxy
● gssproxy.service - GSSAPI Proxy Daemon
   Loaded: loaded (/usr/lib/systemd/system/gssproxy.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-10-24 04:03:21 EDT; 4s ago
  Process: 630 ExecStart=/usr/sbin/gssproxy -D (code=exited, status=0/SUCCESS)
 Main PID: 631 (gssproxy)
   CGroup: /system.slice/gssproxy.service
           └─631 /usr/sbin/gssproxy -D

Oct 24 04:03:20 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Starting GSSAPI Proxy Daemon...
Oct 24 04:03:21 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Started GSSAPI Proxy Daemon.
^^^^^^^^^^^^^^^^^^^^^ NO warning with 7.4 default version gssproxy-0.7.0-4.el7
[root@bkr-hv01-guest14 ~]# yum update gssproxy >/dev/null
[root@bkr-hv01-guest14 ~]# rpm -q gssproxy
gssproxy-0.7.0-9.el7.x86_64
[root@bkr-hv01-guest14 ~]# systemctl restart gssproxy
[root@bkr-hv01-guest14 ~]# systemctl status gssproxy
● gssproxy.service - GSSAPI Proxy Daemon
   Loaded: loaded (/usr/lib/systemd/system/gssproxy.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-10-24 04:03:48 EDT; 3s ago
  Process: 695 ExecStart=/usr/sbin/gssproxy -D (code=exited, status=0/SUCCESS)
 Main PID: 696 (gssproxy)
   CGroup: /system.slice/gssproxy.service
           └─696 /usr/sbin/gssproxy -D

Oct 24 04:03:48 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Starting GSSAPI Proxy Daemon...
Oct 24 04:03:48 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com gssproxy[695]: Error when reading config directory: File /etc/gssproxy/gssproxy.conf di...pping.
Oct 24 04:03:48 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Started GSSAPI Proxy Daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@bkr-hv01-guest14 ~]# systemctl restart gssproxy
[root@bkr-hv01-guest14 ~]# systemctl status gssproxy -l
● gssproxy.service - GSSAPI Proxy Daemon
   Loaded: loaded (/usr/lib/systemd/system/gssproxy.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-10-24 04:03:59 EDT; 2s ago
  Process: 710 ExecStart=/usr/sbin/gssproxy -D (code=exited, status=0/SUCCESS)
 Main PID: 711 (gssproxy)
   CGroup: /system.slice/gssproxy.service
           └─711 /usr/sbin/gssproxy -D

Oct 24 04:03:59 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Starting GSSAPI Proxy Daemon...
Oct 24 04:03:59 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com gssproxy[710]: Error when reading config directory: File /etc/gssproxy/gssproxy.conf did not match provided patterns. Skipping.
Oct 24 04:03:59 bkr-hv01-guest14.dsal.lab.e
^^^^^^^^^^^^^^^^^^^^^^^^^ Warning occurs if updating to gssproxy-0.7.0-9.el7
[root@bkr-hv01-guest14 ~]# yum downgrade -y gssproxy-0.7.0-8.el7.x86_64.rpm 
[root@bkr-hv01-guest14 ~]# rpm -q gssproxy
gssproxy-0.7.0-8.el7.x86_64
[root@bkr-hv01-guest14 ~]# systemctl restart gssproxy
[root@bkr-hv01-guest14 ~]# systemctl status gssproxy
● gssproxy.service - GSSAPI Proxy Daemon
   Loaded: loaded (/usr/lib/systemd/system/gssproxy.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-10-24 04:22:22 EDT; 5s ago
  Process: 1059 ExecStart=/usr/sbin/gssproxy -D (code=exited, status=0/SUCCESS)
 Main PID: 1060 (gssproxy)
   CGroup: /system.slice/gssproxy.service
           └─1060 /usr/sbin/gssproxy -D

Oct 24 04:22:22 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Starting GSSAPI Proxy Daemon...
Oct 24 04:22:22 bkr-hv01-guest14.dsal.lab.eng.bos.redhat.com systemd[1]: Started GSSAPI Proxy Daemon.
^^^^^^^^^^^^^^^^^^^^^ NO warning with 7.4 previous version gssproxy-0.7.0-8.el7
[root@bkr-hv01-guest14 ~]# 


Expected results:
No warning

Additional info:
gssproxy-0.7.0-9.el7 is to fix bug 1458913:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ bugzilla query --fixed_in=gssproxy-0.7.0-9.el7
#1458913 ON_QA      - rharwood - gssproxy silently dies at startup if config files contain duplicate sections

Comment 1 Robbie Harwood 2017-10-27 17:59:42 UTC
Filed ding-libs issue in https://pagure.io/SSSD/ding-libs/issue/3182

Will also work around in our own code.

Comment 6 Ganna Kaihorodova 2018-08-08 12:59:21 UTC
Bugzilla verified with package version:

[root@hp-dl380pgen8-02-vm-5 ~]# rpm -q ipa-server gssproxy
ipa-server-4.6.4-3.el7.x86_64
gssproxy-0.7.0-21.el7.x86_64

Comment 8 errata-xmlrpc 2018-10-30 08:07:58 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, 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-2018:3070