Bug 1835582

Summary: [abrt] rpmconf: filecmp.py:51:cmp:FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'
Product: [Fedora] Fedora EPEL Reporter: Frank Büttner <bugzilla>
Component: rpmconfAssignee: Miroslav Suchý <msuchy>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: bugzilla, msuchy, xjakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c3863ef3801dcd0291b606e4836e4c3035e99a80
Whiteboard: abrt_hash:16b3858608e52b110a2b9fb756edc3920f1bd9b1
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ
none
File: machineid none

Description Frank Büttner 2020-05-14 05:59:48 UTC
Description of problem:
When no new config file exits, the it will crash.
In this case, /etc/xinetd.d/check_mk.rpmsave exits.
But no file /etc/xinetd.d/check_mk.

Version-Release number of selected component:
rpmconf-1.0.22-1.el7

Additional info:
reporter:       libreport-2.1.11.1
cmdline:        /usr/bin/python3 /sbin/rpmconf -a
executable:     /sbin/rpmconf
kernel:         3.10.0-1127.el7.x86_64
pkg_fingerprint: 6A2F AEA2 352C 64E5
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 3
type:           Python3
uid:            0

Truncated backtrace:
filecmp.py:51:cmp:FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'

Traceback (most recent call last):
  File "/sbin/rpmconf", line 80, in <module>
    main()
  File "/sbin/rpmconf", line 71, in main
    rconf.run()
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 97, in run
    tested_files += self._handle_package(pkg_hdr)
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 334, in _handle_package
    tmp.format(conf_file, "rpmsave"))
  File "/usr/lib/python3.6/site-packages/rpmconf/rpmconf.py", line 396, in _handle_rpmsave
    and filecmp.cmp(conf_file, other_file):
  File "/usr/lib64/python3.6/filecmp.py", line 51, in cmp
    s1 = _sig(os.stat(f1))
FileNotFoundError: [Errno 2] No such file or directory: '/etc/xinetd.d/check_mk'

Local variables in innermost frame:
shallow: True
f2: '/etc/xinetd.d/check_mk.rpmsave'
f1: '/etc/xinetd.d/check_mk'

Comment 1 Frank Büttner 2020-05-14 05:59:51 UTC
Created attachment 1688316 [details]
File: backtrace

Comment 2 Frank Büttner 2020-05-14 05:59:53 UTC
Created attachment 1688317 [details]
File: environ

Comment 3 Frank Büttner 2020-05-14 05:59:54 UTC
Created attachment 1688318 [details]
File: machineid