Bug 1648516

Summary: [abrt] setroubleshoot-server: results(): typeattrquery.py:65:results:AttributeError: 'NoneType' object has no attribute 'typeattributes'
Product: [Fedora] Fedora Reporter: Stephen Baber <sbaber_66>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dwalsh, mgrepl, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/be12c4dfe99818f68abcfafcb132c4942e22dc0e
Whiteboard: abrt_hash:6cea73593a0b597c73a3a7978ad6a3ebe7e54f5b;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-29 12:25:49 UTC 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: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Stephen Baber 2018-11-10 07:58:06 UTC
Version-Release number of selected component:
setroubleshoot-server-3.3.17-1.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 -Es /usr/bin/sealert -b
crash_function: results
exception_type: AttributeError
executable:     /usr/bin/sealert
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.18.17-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
typeattrquery.py:65:results:AttributeError: 'NoneType' object has no attribute 'typeattributes'

Traceback (most recent call last):
  File "/usr/bin/sealert", line 56, in <module>
    from setroubleshoot.util import get_identity, load_plugins, log_init, log_debug
  File "/usr/lib/python3.6/site-packages/setroubleshoot/util.py", line 326, in <module>
    file_types =  get_all_file_types()
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 914, in get_all_file_types
    file_types = list(sorted(info(ATTRIBUTE, "file_type"))[0]["types"])
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 197, in <genexpr>
    return ({
  File "/usr/lib64/python3.6/site-packages/setools/typeattrquery.py", line 65, in results
    for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'

Local variables in innermost frame:
self: <setools.typeattrquery.TypeAttributeQuery object at 0x7f26ff5b9e48>

Potential duplicate: bug 1528993

Comment 1 Stephen Baber 2018-11-10 07:58:10 UTC
Created attachment 1503948 [details]
File: backtrace

Comment 2 Stephen Baber 2018-11-10 07:58:11 UTC
Created attachment 1503949 [details]
File: cgroup

Comment 3 Stephen Baber 2018-11-10 07:58:12 UTC
Created attachment 1503950 [details]
File: cpuinfo

Comment 4 Stephen Baber 2018-11-10 07:58:13 UTC
Created attachment 1503951 [details]
File: environ

Comment 5 Stephen Baber 2018-11-10 07:58:14 UTC
Created attachment 1503952 [details]
File: mountinfo

Comment 6 Stephen Baber 2018-11-10 07:58:15 UTC
Created attachment 1503953 [details]
File: namespaces

Comment 7 Stephen Baber 2018-11-10 07:58:15 UTC
Created attachment 1503954 [details]
File: open_fds

Comment 8 Vit Mojzis 2018-11-29 12:25:49 UTC

*** This bug has been marked as a duplicate of bug 1558861 ***