Bug 1668168

Summary: com.redhat.idm.trust-fetch-domains:36:retrieve_keytab:FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/sss/keytabs/ipaad2016.test.keytab'
Product: Red Hat Enterprise Linux 8 Reporter: anuja <amore>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: abokovoy, amore, ksiddiqu, lvrabec, mmalik, mthacker, plautrba, pvoborni, rcritten, ssekidde, tscherf, zpytela
Target Milestone: rcKeywords: Regression
Target Release: 8.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-14 01:54:21 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:

Description anuja 2019-01-22 06:16:00 UTC
This bug has been created based on an anonymous crash report requested by the package maintainer.


time:           Fri 18 Jan 2019 11:57:57 PM CET
package:        ipa-server-trust-ad-4.7.1-10.module+el8+2699+aa606a46
reason:         com.redhat.idm.trust-fetch-domains:36:retrieve_keytab:FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/sss/keytabs/ipaad2016.test.keytab'
crash_function: retrieve_keytab
cmdline:        /usr/libexec/platform-python -E /usr/libexec/ipa/oddjob/com.redhat.idm.trust-fetch-domains ipaad2016.test
executable:     /usr/libexec/ipa/oddjob/com.redhat.idm.trust-fetch-domains
component:      ipa
uid:            0
username:       root
hostname:       kvm-01-guest12.automount2k16.test
os_release:     Red Hat Enterprise Linux release 8.0 Beta (Ootpa)
architecture:   x86_64
kernel:         4.18.0-61.el8.x86_64
abrt_version:   2.10.9

Reports:
uReport: BTHASH=8080759745c5eaab35335022e39ff4a997defb9f
ABRT Server: URL=http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/8080759745c5eaab35335022e39ff4a997defb9f
ABRT Server: URL=http://faf.lab.eng.brq.redhat.com/faf/reports/10225/
CI Job: https://platform-stg-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/ipa-rhel-8.0.0-candidate-runtest-trust-automount-win2k16/7/

Full Backtrace:
com.redhat.idm.trust-fetch-domains:36:retrieve_keytab:FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/sss/keytabs/ipaad2016.test.keytab'

Traceback (most recent call last):
 File "/usr/libexec/ipa/oddjob/com.redhat.idm.trust-fetch-domains", line 161, in <module>
   retrieve_keytab(api, ccache_name, oneway_keytab_name, oneway_principal)
 File "/usr/libexec/ipa/oddjob/com.redhat.idm.trust-fetch-domains", line 36, in retrieve_keytab
   os.chown(oneway_keytab_name, sssd[2], sssd[3])
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/sss/keytabs/ipaad2016.test.keytab'

Local variables in innermost frame:
sssd: pwd.struct_passwd(pw_name='sssd', pw_passwd='x', pw_uid=996, pw_gid=993, pw_gecos='User for sssd', pw_dir='/', pw_shell='/sbin/nologin')
getkeytab_args: ['/usr/sbin/ipa-getkeytab', '-s', 'kvm-01-guest12.automount2k16.test', '-p', 'AUTOMOUNT2K16$@IPAAD2016.TEST', '-k', '/var/lib/sss/keytabs/ipaad2016.test.keytab', '-r']
oneway_principal: 'AUTOMOUNT2K16$@IPAAD2016.TEST'
oneway_keytab_name: '/var/lib/sss/keytabs/ipaad2016.test.keytab'
ccache_name: '/var/run/ipa/krb5cc_oddjob_trusts'
api: <ipalib.API object at 0x7f4ed238d630>

Additional information:
environ:
:LANG=en_US.UTF-8
:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
:INVOCATION_ID=beaf970b0ab24a59a8a55dc85c9a0a13
:JOURNAL_STREAM=9:91701
:ODDJOB_SERVICE_NAME=com.redhat.idm.trust
:ODDJOB_OBJECT_PATH=/
:ODDJOB_INTERFACE_NAME=com.redhat.idm.trust
:ODDJOB_METHOD_NAME=fetch_domains
:ODDJOB_CALLING_USER=ipaapi